Arpitthumar
Posts: 32
Joined: Sat Jun 29, 2019 5:39 am

How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 5:33 am

Hi
I am using a 20x4 lcd. I want to display incoming serial data(ex. 0x02 0x04 0xff)on lcd in a scrolling manner. How do i do that?

pcmanbob
Posts: 7060
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 8:03 am

From the little information supplied all that I can offer in the way of help is,
experiment with you LCD and get it displaying some sample text using which ever driver you have decided to use ,
then once you have an understanding of how it works convert you serial data to a string of text and display that on the LCD,
scrolling of the text will have to be done in the part of the program that's handing the writing of the text to the LCD.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

scotty101
Posts: 3733
Joined: Fri Jun 08, 2012 6:03 pm

Re: How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 8:44 am

pcmanbob wrote:
Wed Jul 31, 2019 8:03 am
scrolling of the text will have to be done in the part of the program that's handing the writing of the text to the LCD.
Depending on the exact model of the LCD, it may support scrolling without having to write any code to do this.

Arpitthumar, there are many thousands of LCD displays available. You will get better answers if you provide a model number or a link to the device you are using.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

PhatFil
Posts: 1406
Joined: Thu Apr 13, 2017 3:55 pm
Location: Oxford UK

Re: How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 8:57 am

Find a couple of basic example projects 1 using a 20x4 lcd display, and another that reads serial input. Python projects and examples would probably be the easiest to find and follow.
Ypu may find something VERY close to what you want too ;)


With 2 x example projects you can study and learn how the programs work and use the h/w or input that you are interested in. After a couple of kettle boils and cuppas you should understand the code enough to start hacking the 2 projects together to create something that fits your requirements.

If you struggle to follow or understand the examples, or hit a hurdle with the mashup come back with specific Q's

a couple of projects from the top of the google results when searching using basic keywords
(20x4 lcd Pi)
https://pypi.org/project/RPLCD/0.4.0/
(serial input Pi)
https://www.instructables.com/id/Read-a ... pberry-Pi/
Last edited by PhatFil on Wed Jul 31, 2019 9:03 am, edited 1 time in total.

Arpitthumar
Posts: 32
Joined: Sat Jun 29, 2019 5:39 am

Re: How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 9:01 am

Hi

I am using JHD629-204A 20x4 LCD display. Kindly share code example links If you have any.

scotty101
Posts: 3733
Joined: Fri Jun 08, 2012 6:03 pm

Re: How do i display incoming serial data on 20x4lcd?

Wed Jul 31, 2019 9:06 am

Arpitthumar wrote:
Wed Jul 31, 2019 9:01 am
Hi

I am using JHD629-204A 20x4 LCD display. Kindly share code example links If you have any.
Let me google that for you.
"JHD629-204A raspberry pi"
https://www.raspberrypi-spy.co.uk/2012/ ... ng-python/
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Python”