Displaying text from serial port

The LCD and Keypad Shield gives you a handy 16-character by 2-line display, 5 buttons and a controllable backlight.
Post Reply
Posts: 1
Joined: Fri Apr 12, 2013 8:06 am

Displaying text from serial port

Post by afalout » Fri Apr 12, 2013 8:18 am

Hi there,

I'm wondering if anyone had luck with reading from (USB) serial port (TTY) and displaying that on this model of LCD?

I tried using example from http://swantron.com/command-line-lcd-arduino-interface

I just replaced the loop() from one or FreeTronics examples with:

Code: Select all

void loopSerial()
    // when characters arrive over the serial port…
    if (Serial.available()) {
		lcd.setCursor( 0, 0 );   //top left
		lcd.print( "Got serial coms..." );

		// clear the screen
		lcd.setCursor( 0, 0 );   //top left
		// read all the available characters
		while (Serial.available() > 0) {
			// display each character to the LCD

And added " Serial.begin(9600);" to the end of setup()

I configure TTY with stty and then run : echo "Hello Arduino" > /dev/ttyACM0

LED on main board blinks indicating USB traffic, and when it stops blinking, then LCD screen "blinks" - but displayed characters on it do not change....

Any suggestions very much appreciated!


Post Reply