Project:Nanode/Applications: Difference between revisions

From London Hackspace Wiki

Line 345: Line 345:
Paul has written a very thorough guide at [http://openenergymonitor.org/emon/node/235 Open Energy Monitor]
Paul has written a very thorough guide at [http://openenergymonitor.org/emon/node/235 Open Energy Monitor]


===Programming with a CP2102 module===
[[File:Arduino-cp2102.jpg| an example of a CP2102 module. Warning: wiring may be different depending on board revision, read the text below.]]
USB to UART, (CP2102 module)
Look for a green or blue-coloured circuit board with a USB connector at one end and 6 pins at the other end.
This device enables your desktop or laptop machine to communicate with the Shrimp, for example to send new programs to it with the free Arduino IDE, or to exchange other information with a program when it’s running on the Shrimp.
For the latest Baite CP2102 modules, (with DTR as sixth pin on the front) attach the rainbow wires from the 9pin header to the CP2102’s labelled pins like…
    Red -> 5V
    Orange -> RXD
    Yellow -> TXD
    Green -> GND
    Brown -> DTR
For older Baite CP2102 modules (with DTR pin labelled on the back) exchange TX and RX to be like…
    Orange -> TXD
    Yellow -> RXD


===Programming with a PL2303 cable===
===Programming with a PL2303 cable===
[[File:Arduino-cp2102.jpg|CP2102]]


There are cheaper cables available than the FTDI. Many generic serial cables use the Prolific PL2303 chip, but these usually have RS232 converters and a 9-pin D-type connector.
There are cheaper cables available than the FTDI. Many generic serial cables use the Prolific PL2303 chip, but these usually have RS232 converters and a 9-pin D-type connector.