Re: Using NMEA 0183 or 2000 with an Arduino
Posted: Dec 13th, 2013, 7:16 am
@kenl,
If the voltages are different you can get a logic level converter.
I have found some for 3.3vdc<>5vdc (bi-directional)
The theory is this: It's specifically designed to deal with bi-directional serial communication (although in this case you only need one direction since you presumably won't be sending anything to the depth sensor) across a network or wires with two different logic levels.
Here is one from Adafruit that lets you connect 3.3vdc devices to 5vdc serial bus or vice versa:
http://www.adafruit.com/products/395
Here is another one, slightly different with different features (still not 12vdc though) I think this one does I2C but the previous doesn't. I'm not sure how you'd communication in the program with the protocol described above for a transducer.
http://www.adafruit.com/products/757
In that case you would (I think) connect the serial pair from the 12vdc device into the 12vdc logic side, and the lower voltage pair (TX/RX) to the side of your Arduino, Beaglebone, RaspPi or whatever.
You would have to power the devices separately and this would be the only connection between them.
There is a 'how-to' and help forum at Adafruit too. When I did a google search on '12v to 5v logic level converter' the second hit was pointing me back to the forum from Adafruit wherein they describe a way to use one of the ones above with resistors.
http://forums.adafruit.com/viewtopic.php?f=8&t=43642
HTH
If the voltages are different you can get a logic level converter.
I have found some for 3.3vdc<>5vdc (bi-directional)
The theory is this: It's specifically designed to deal with bi-directional serial communication (although in this case you only need one direction since you presumably won't be sending anything to the depth sensor) across a network or wires with two different logic levels.
Here is one from Adafruit that lets you connect 3.3vdc devices to 5vdc serial bus or vice versa:
http://www.adafruit.com/products/395
Here is another one, slightly different with different features (still not 12vdc though) I think this one does I2C but the previous doesn't. I'm not sure how you'd communication in the program with the protocol described above for a transducer.
http://www.adafruit.com/products/757
In that case you would (I think) connect the serial pair from the 12vdc device into the 12vdc logic side, and the lower voltage pair (TX/RX) to the side of your Arduino, Beaglebone, RaspPi or whatever.
You would have to power the devices separately and this would be the only connection between them.
There is a 'how-to' and help forum at Adafruit too. When I did a google search on '12v to 5v logic level converter' the second hit was pointing me back to the forum from Adafruit wherein they describe a way to use one of the ones above with resistors.
http://forums.adafruit.com/viewtopic.php?f=8&t=43642
HTH