hi ,
im new in rasp world,
i have some question in connecting 4x20 LCD on raspberry pi 2 model b GPIO,
i cannot post a display on LCD , i dont know if my connection are not correct
im just replacing my old system MCU to Raspberry
-
- Posts: 7
- Joined: Tue Sep 22, 2015 8:37 am
Re: 4x20 lcd connection
please describe how you are attempting to connect the 4x20 display to the Pi.
Pictures would be useful (you will need to post them on an image hosting site and supply a link to the picture in the thread).
Pictures would be useful (you will need to post them on an image hosting site and supply a link to the picture in the thread).
Doug.
Building Management Systems Engineer.
Building Management Systems Engineer.
Re: 4x20 lcd connection
Hmm. What can I put here?
Re: 4x20 lcd connection
if it's a hd44780 based display, you can find tons of schematics and code on google..februariusx wrote:hi ,
im new in rasp world,
i have some question in connecting 4x20 LCD on raspberry pi 2 model b GPIO,
i cannot post a display on LCD , i dont know if my connection are not correct
im just replacing my old system MCU to Raspberry
(one example is the link ame posted)
-
- Posts: 7
- Joined: Tue Sep 22, 2015 8:37 am
Re: 4x20 lcd connection
hi everyone ,
ill show you my current w/ PIC Microchip
https://lh3.googleusercontent.com/-JfTB ... 525201.jpg
https://lh3.googleusercontent.com/-v_ju ... 525202.jpg
https://lh3.googleusercontent.com/-mLUI ... 525203.jpg
ill post soon once i get back to office w/ the current RPI wirings
----
updates :
here my raspberry wiring
https://lh3.googleusercontent.com/-4ewh ... 102555.jpg
https://lh3.googleusercontent.com/-EiFE ... 102655.jpg
https://lh3.googleusercontent.com/-S8Om ... 102705.jpg
and here were i follow the wiring
https://lh3.googleusercontent.com/-Y6r2 ... .13-pm.png
ill show you my current w/ PIC Microchip
https://lh3.googleusercontent.com/-JfTB ... 525201.jpg
https://lh3.googleusercontent.com/-v_ju ... 525202.jpg
https://lh3.googleusercontent.com/-mLUI ... 525203.jpg
ill post soon once i get back to office w/ the current RPI wirings
----
updates :
here my raspberry wiring
https://lh3.googleusercontent.com/-4ewh ... 102555.jpg
https://lh3.googleusercontent.com/-EiFE ... 102655.jpg
https://lh3.googleusercontent.com/-S8Om ... 102705.jpg
and here were i follow the wiring
https://lh3.googleusercontent.com/-Y6r2 ... .13-pm.png
Re: 4x20 lcd connection
Try this link:
https://learn.adafruit.com/character-lc ... k?view=all
It shows a 16x2, but the wiring is the same. Adafruit also has an LCD 'backpack' that makes it useable via i2c or spi - only 4 wires for i2c or 5 for spi.
https://learn.adafruit.com/character-lc ... k?view=all
It shows a 16x2, but the wiring is the same. Adafruit also has an LCD 'backpack' that makes it useable via i2c or spi - only 4 wires for i2c or 5 for spi.
- mikronauts
- Posts: 2823
- Joined: Sat Jan 05, 2013 7:28 pm
Re: 4x20 lcd connection
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi
-
- Posts: 7
- Joined: Tue Sep 22, 2015 8:37 am
Re: 4x20 lcd connection
thanks for replies
i did your samples,
but my lcd dosent posting display
is there compatibility should be considerate between dot matrix lcd and rpi?
anyway i try some scripts based on the links
it given me segmentation fault
current i run my RPI with debian/ubuntu vice-versa , it is because i have already running apps in there from i386 and already migrated to arm, only i need is the display out to lcd and rs232 later
i did your samples,
but my lcd dosent posting display
is there compatibility should be considerate between dot matrix lcd and rpi?
anyway i try some scripts based on the links
it given me segmentation fault
current i run my RPI with debian/ubuntu vice-versa , it is because i have already running apps in there from i386 and already migrated to arm, only i need is the display out to lcd and rs232 later
- mahjongg
- Forum Moderator
- Posts: 14919
- Joined: Sun Mar 11, 2012 12:19 am
- Location: South Holland, The Netherlands
Re: 4x20 lcd connection
One compatibility problem, could be that the PI outputs 3.3V logic high levels, and for many LCD controllers 3.3V is not enough, they need at least 3.5V (70% of VCC).
To prevent the need to use level converters for all the control lines, you can lower VCC from 5.0V to 4.5V, by using a diode to drop 0.5V. Simply put a small diode (1N4148) in between the 5V and the VCC of the display.
To prevent the need to use level converters for all the control lines, you can lower VCC from 5.0V to 4.5V, by using a diode to drop 0.5V. Simply put a small diode (1N4148) in between the 5V and the VCC of the display.
-
- Posts: 7
- Joined: Tue Sep 22, 2015 8:37 am
Re: 4x20 lcd connection
hi everyone
i bought 2x16 liner 1602A lcd ,
and their it is
https://lh3.googleusercontent.com/-tt2D ... 7510_n.jpg
and still the sample scripts dosent working
http://www.raspberrypi-spy.co.uk/2012/0 ... ng-python/
the previous issue with segmentation fault with raspberry debian jessie
now i reverted to raspberry debian wheezy , no more segmentation fault,
and my problem now , it still dosent displaying
i bought 2x16 liner 1602A lcd ,
and their it is
https://lh3.googleusercontent.com/-tt2D ... 7510_n.jpg
and still the sample scripts dosent working
http://www.raspberrypi-spy.co.uk/2012/0 ... ng-python/
the previous issue with segmentation fault with raspberry debian jessie
now i reverted to raspberry debian wheezy , no more segmentation fault,
and my problem now , it still dosent displaying

Re: 4x20 lcd connection
lol, i love how you described your problem..
"not displaying"
btw, at least you should consider that your display has 6+5 connections, while usually it must have 6+6 connections..
for the rest, really "not displaying" is not a description and noone will help you in this way
"not displaying"
btw, at least you should consider that your display has 6+5 connections, while usually it must have 6+6 connections..
for the rest, really "not displaying" is not a description and noone will help you in this way
Re: 4x20 lcd connection
You don't seem to have anything connected to pin 3 - the LCD contrast pin. Without that you might not be able to see the displayed text. Try looking at the display from a shallow angle - almost edge-on from the bottom edge - you might see some text or just square blocs on the display.
- DougieLawson
- Posts: 42481
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: 4x20 lcd connection
Ideally, you need to connect the contrast pin to the wiper of a 10K trimpot (wired between 5V0 and GND) and adjust that until the display appears. If you don't have a trimpot try a series of 1K resistors.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
-
- Posts: 7
- Joined: Tue Sep 22, 2015 8:37 am
Re: 4x20 lcd connection
hi guy,
thanks for help
i already did work
i added 10k potentiometer on 3rd pin contrast
thanks for help
i already did work
i added 10k potentiometer on 3rd pin contrast