Tag Archive for 'serial'

Simple Serial String Parsing

One of the initial requirements I came across whilst developing with the Arduino platform, as with the Netduino platform, was the need for effective 2 way serial communication between both the Arduino(s) and my desktop. Luckily, the Arduino software provides several examples that can get you up and running with serial communication in no time.

These examples can be found dotted around the File>Examples> within the Arduino IDE. However, the example primarily used for basis of this  tutorial (also available online here) can be located via File>Examples>Communication>SerialEvent. SerialEvent() is a function which is called after loop() whenever  new data has been recieved over serial RX.

With minimal expansion to this example code its quite an easy task to add methods for data parsing via use of delimiters, thus affording functional instructions and/or commands to be sent between devices.

Continue reading ‘Simple Serial String Parsing’

Arduino Xbee Shield mod for Netduino

Update: For an alternative method check out the following post: http://www.dyadica.net/journal/xbee-explorer-regulated-netduino

This is a very quick post detailing how I modded my netduino to be compatible with the arduino xbee shield. I utilize this shield in conjunction with a Sparkfun Xbee Explorer USB to provide wireless serial communication between netduino and PC. To find out more about that check out my SerialPortHelper to WinForm post.

The following image shows the completed mod in action.

The good news is that there is not much to this one, however some might find the thought off using a soldering iron on there netduino a bit scary. If this is you then there are always other options.

Continue reading ‘Arduino Xbee Shield mod for Netduino’