[PD] Pduino and the AD5206 digital potentiometer
Martin Peach
martin.peach at sympatico.ca
Wed Mar 5 17:05:48 CET 2008
A lot of chips use SPI (DACs, EEPROMs, etc.). It would be good to have a
function that sends/receives SPI bytes, but it's complicated because there
are 4 different modes based on the clock polarity and the clock active edge.
Also you would need to specify which three pins (data in, data out and
clock) to use. I think it would be easier to just program the Arduino to do
SPI (there's already a library for it) and use [comport] to transfer data
to/from pd. That is, have a generic way of sending data between pd and
arduino, but program the arduino for the specific hardware. It might be
possible to use OSC over the serial connection, for instance.
Martin
Hans-Christoph Steiner wrote:
>
>I am unlikely to write software for that chip unless I have a use for it.
>But a firmware supporting it sounds useful. Firmata is an Arduino
>library, so the easiest route would probably make a dedicated firmware for
>that chip then use the Firmata to handle the communications.
>
>.hc
>
>On Mar 5, 2008, at 4:43 AM, nick burge wrote:
>
>>I got my AD206 chip as a free sample from analog devices
>>http://www.analog.com/commerce/index.html
>>It would be great to have support within Firmata for SPI - (serial
>>peripheral interface) allowing control over this digital potentiometer or
>>other devices and sensors that work with that protocol when connected to
>>an arduino.
>>Could it possibly work to simply copy sections of the code from the
>>arduino tutorial into the firmata firmware , first the definitions, then
>>the void setup section and then the write_pot(0,0) command to control the
>>device into the loop section.? As you can tell I have little idea how to
>>do this.
>>Nick.
>>
>>From: Hans-Christoph Steiner [mailto:hans at eds.org]
>>Sent: 04 March 2008 14:39
>>To: nick burge
>>Cc: 'Pd List'
>>Subject: Re: [PD] Pduino and the AD5206 digital potentiometer
>>
>>
>>It would be possible to add support to Firmata for this, but it's not
>>currently there. I don't have any of these chips, any volunteers? Patches
>>welcome :D
>>
>>.hc
>>
>>On Feb 26, 2008, at 8:54 AM, nick burge wrote:
>>
>>>Dear PD list. I would like to be able to control the AD5206 chip (a 6
>>>channel digital potentiometer) from within the Pduino object written by
>>>Hans-Christoph Steiner. The idea comes from one of the tutorial
>>>exercises in the C++ arduino program.
>>>http://www.arduino.cc/en/Tutorial/SPIDigitalPot
>>>Is this relatively simple to do, or simply impossible? The aim in the
>>>long run is to be able to be able to calibrate 6 force sensors remotely
>>>using the digital potentiometers for an art installation project.
>>>I have got the above mentioned tutorial project up and running
>>>succesfully using the arduino program, and I am also able to get
>>>Pduino communicating with the arduino quite happily on my Windows Vista
>>>system, but I would imagine to have control over the the digital
>>>potentiometer device from within PD would require a revision to the
>>>Firmata firmware would it not? I would be most grateful for a clue.
>>>thank you for your attention, sincerely, Nick Burge.
>>>_______________________________________________
>>>PD-list at iem.at mailing list
>>>UNSUBSCRIBE and account-management -> http://lists.puredata.info/
>>>listinfo/pd-list
>>
>>
>>
>>----------------------------------------------------------------------
>>------
>>
>>All information should be free. - the hacker ethic
>>
>>
>>
>>
>
>
>
>------------------------------------------------------------------------
>----
>
>Man has survived hitherto because he was too ignorant to know how to
>realize his wishes. Now that he can realize them, he must either change
>them, or perish. -William Carlos Williams
>
>
>_______________________________________________
>PD-list at iem.at mailing list
>UNSUBSCRIBE and account-management ->
>http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list
mailing list