SoftwareSerial.h is used in the Tutorial for the USB + Serial RGB Backlight Character LCD Backpack.
Is there an equivalent library ( and /or ) tutorial which can be used with the Raspberry Pi?
What would you suggest as the easiest way to get my Pi sending data to the LCD?
Thanks
serial library for Pi
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: serial library for Pi
This tutorial will tell you how to get I2C running on a RasPi: http://learn.adafruit.com/adafruits-ras ... guring-i2c
Then this one will show you how to talk to the LCD: http://learn.adafruit.com/adafruit-16x2 ... y-pi/usage
Then this one will show you how to talk to the LCD: http://learn.adafruit.com/adafruit-16x2 ... y-pi/usage
- petert1
- Posts: 10
- Joined: Wed Jan 02, 2013 2:53 pm
Re: serial library for Pi
Mike,
Thanks for those suggestions. The LCD I have is not the USB + Serial RGB Backlight Character LCD Backpack - that is just where I found the SoftwareSerial.h.
My LCD is not for I2C, rather, it expects a serial connection ( rx and gnd). Parallax #27977.
What I'm looking for is an easy way to configure the Pi UART Serial bus and a library for sending the messages to the LCD
Peter
Thanks for those suggestions. The LCD I have is not the USB + Serial RGB Backlight Character LCD Backpack - that is just where I found the SoftwareSerial.h.
My LCD is not for I2C, rather, it expects a serial connection ( rx and gnd). Parallax #27977.
What I'm looking for is an easy way to configure the Pi UART Serial bus and a library for sending the messages to the LCD
Peter
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: serial library for Pi
Ah.. I was thinking of the other LCD backpack.
The RasPi's UART shows up as /dev/ttyAMA0, and by default is used as the machine's serial console. To suspend the console and free the UART for communication with other devices, you need to use some boot-time options.
This page describes that process, starting about halfway down the page: http://elinux.org/RPi_Serial_Connection
The RasPi's UART shows up as /dev/ttyAMA0, and by default is used as the machine's serial console. To suspend the console and free the UART for communication with other devices, you need to use some boot-time options.
This page describes that process, starting about halfway down the page: http://elinux.org/RPi_Serial_Connection
- petert1
- Posts: 10
- Joined: Wed Jan 02, 2013 2:53 pm
Re: serial library for Pi
Mike,
That is just the information I needed.
Also , I found pyserial for Python which is similar to SoftwareSerial.h for the Arduino.
http://pyserial.sourceforge.net/pyserial.html
Currently writing successfully to the Parallax LCD.
Thanks
That is just the information I needed.
Also , I found pyserial for Python which is similar to SoftwareSerial.h for the Arduino.
http://pyserial.sourceforge.net/pyserial.html
Currently writing successfully to the Parallax LCD.
Thanks
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/