Spy on serial data – Arduino

arduinoserial

I have a basic Arduino sketch. It reads from the serial port and prints the chars onto an LCD.

If I use the Arduino's serial monitor and start typing stuff in, it works great and displays each character to the display.

However, I'm trying to use this library to write to the port: https://github.com/voodootikigod/node-serialport

When I try to write to the port, I can see the tx light flashing but nothing appears on the screen at all.

Is there a way to spy on the data being sent down the wire to do what is different between the 2 cases? I apologise for my bad terminology.

Best Answer

Your problem is most likely related to the library that you are using. Make sure that you have correctly set up baud rate, parity, data bits and stop bits. You can write a simple program for adruino that sends back the received character over UART. This way you can test whether or not you have correctly configured your serial port.