September 10, 2013

Better debugging for Arduino

When developing more complex Arduino sketches, or trying to nail down a spot where trouble just can't be found - more than one of us have been guilty of throwing around random Serial.println() funtions to allow some simple progress reports to be monitored from the serial monitor. However this can be a troublesome method and also possibly waste valuable sketch space. An interesting solution to debugging has been created to counter the simpler methods, by Arduino forum member "aarondc".

His dbg.h Arduino library offers some interesting and useful functions to allow debug messages to be sent to the serial monitor, however with a greater level of control. For example you can monitor a variable and only receive updates when it has changed value - much neater than lines of the same data. And the results can be monitored with the neat Tellerium monitor:

Hopefully this will help make some Arduino enthusiasts' life easier, so visit the Arduino forum for more information about the library and Tellerium. And for more, we're on twitter and Google+, so follow us for news and product updates as well.

Have you been reading about Arduino and the types of projects created, but not sure where to start? Then order one our Experimenter's Kit for Arduino:

The package includes a wide variety of parts, sensors and modules including: a servo motor, lights, buttons, switches, sound, sensors, breadboard, wires and more. Furthermore a Freetronics Eleven Arduino-compatible board is included to make this an extensive hobby experimenter, inventor and starter kit. However we don't leave you alone to figure it all out, included is a great project and instruction booklet, plus access to a supporting web page and software examples. In other words - this is everything you need to get started for a fun range of electronics and Arduino related projects! So to get started or for more information and to order, check out the product page.

Leave a comment

Comments have to be approved before showing up.