Javelin as I2C Slave?
theoatvecna
Posts: 20
I would like my javelin to act as an I2C slave. Is this possible and if so, is there any existing code?
Thanks,
Daniel
Thanks,
Daniel
Comments
The only way to have the javelin be a slave device
is by using the Uart VP (javelin can receive data in the background).
regards peter
What I want to do is to control multiple javelins (about 6) from a single CPU (using an aardvark usb->I2C/SPI adapter) on a single bus.
Am I just out of luck or is there a way this can be accomplished on a single bus?
Any suggestions?
thanks,
Daniel
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
instead of usb->I2C.
The RS485 is a multidrop connection, requiring two wires A and B.
So instead of a bus with SDA and SCL (I2C) you get a bus with A and B (RS485)
The MAX487 is a halfduplex RS485 chip (dip8) that requires
two pins from the javelin (data and direction). The Uart VP is
used to control the max487.
regards peter
http://byterunner.com/byterunner/new_frontpage=usbcom
They offer several converters and I believe these all use FTDI chips
(which is the chip Parallax advises) and they have direct Linux support.
regards peter
That page shows USB->RS485.
Here are rs232 to rs485 adapters:
http://scmstore.com/english/adap485/
regards peter
Thanks
Daniel
The A and B terminal are the RS485 bus. All Javelins have a RS232 (Javelin side) to RS485 (AB-bus)
converter. Tie all A's together, and also all B's.
Then you must give each Javelin a unique ID, for example 'A' to 'D' for 4 javelins.
Then you must decide on a protocol.
For example, start each message with a '!' followed by the target id and origin id.
So·javelin 'A' would send '!','B','A',"message string",<CR>
to send a message to javelin 'B'.
You may find this interesting:
http://members.home.nl/bzijlstra/software/communication/Benbus.htm
regards peter
The manual of the converter should explain the use
of the +5V and -5V terminals.
regards peter
·