To get my one to work I used i2cdectect to get the address of the lcd screen then with this I went into theh lcddriver file and changed the lcd address from 0x20 to 0x3f. Hope this helps someone!
@TheRaspberryPiGuy8 жыл бұрын
+Craig Griffin glad you got it all sorted!
@tassenmensch68498 жыл бұрын
Hello, I have a liddle Problem: I bought this Display : www.amazon.de/Schnittstelle-1602-Serielle-Display-Modul-Arduino/dp/B01JZ75AG2/ref=sr_1_4?ie=UTF8&qid=1473947258&sr=8-4&keywords=16x2+Serielle+LCD+Display-Modul My question now is, does it work with the Raspberry Pi, because it needs 5V to run.
@M808_Tech8 жыл бұрын
yes it does raspberry pi have 5v input. no worries.
@AriffSuffian8 жыл бұрын
Still having the same problem, kept switching back an forth between 20 and 3f, heck even 27. Any other possible solutions? I2C is enabled in the raspi-config
@okvalem8 жыл бұрын
Thx! Made my day. :-)
@Taran726 жыл бұрын
AWESOME! the only code I found online that actually works!! this is the only package that has a I2C for RPi3 fully working. I tried two different scripts from two kits and they are both wrong. Thank you so much for sharing your knowledge! you made my day!!!
@lucasi84555 жыл бұрын
Undoubtedly, the best raspberry pi channel
@donlovejoy8574 жыл бұрын
I feel like I am about to spend hours watching these things and trying them out. Good stuff!
@SethGlover6 жыл бұрын
Dude you rock. Thank you so much for passing on your knowledge. You've just ended my 3 hour journey of trying to get this to work!
@irg0084 жыл бұрын
mine was even longer aaahh!! but thank god you helped me!!! @theraspberrypiguy
@joebashour2 жыл бұрын
This is THE BEST video I have found while browsing the internet for a guide to set up an LCD with my Pi 4. THANK YOU @TheRaspberryPiGuy
@JohnBaronian7 жыл бұрын
Thanks so much. I went through about 5 tutorials until I got to yours... each had a little bit more info but ultimately I got it working with your code... Rock on!
@davidgreenwitch4 жыл бұрын
Wow, I searched for days finding the reason why my display did not show anything. Thanks for the tutorial. And thanks for the hint how to change the contrast. 😄
@hashan-sandeepa3 жыл бұрын
I could be able to fix messages not showing issue by adjusting the brightness as mentioned in this tutorial. Thanks a lot.
@bierjan50437 жыл бұрын
Thanks alot! I didn't know you could lower the brightness with a screwdriver!! I thought my LCD screen didn't work, but it was the brightness!!
@yudhobaskoro80334 жыл бұрын
Ummm, its not the brightness its the contrast setting, u can change the brightness by placing somekind of resistors between gnd and vcc from the pi itself, i personally use 3x1k ohm resistor in paralel
@benjaminparsons63377 жыл бұрын
Thanks piguy, great tutorial for beginners!! just getting into playing pi with the 37 in 1 pack of sensors and having this output for some basic feedback is cool ... thanks!!
@robertpendergast26208 жыл бұрын
Thanks and works well. I had the same I/O error 5 issue as the guys below and it cleared when I went to raspi config and added ssh and camera and then rebooted (nonsense, right?) MY REAL INQUIRY: how can I keep my lcd clock going when I switch to an other directory in linux terminal? Thanks.
@prettyboyfloyd58415 жыл бұрын
So could hook one of these up to a pi running retropie to display what game I'm currently playing. And or the fps?
@loopylysa77 жыл бұрын
Great video! What are your thoughts on whether or not a level shifter is needed to protect the Pi pins?
@lolqsim4 жыл бұрын
Thank You very much, great job PiGuy! Cheers from Poland :)
@worldentropy Жыл бұрын
Great work, thanks. Now; how about modd'ing it for a 20x4 display?
@KaienSander10Official8 жыл бұрын
Thanks! :D I had one of these displays and it didnt want to work with my arduino, so i thought it was broken since i tryed soo Many example codes. And now i tryed it with my raspberry pi and it worked! Again thanks!
@IncredibleSolv6 жыл бұрын
thats an address issue... look at the back of the display and take note of the address
@DaumbFauckProduction3 жыл бұрын
diy perks does a video on making a 4k projector using a lcd screen with hdmi. the problem is you cant run a display without connecting a computer. ideally I would want to connect a streaming device or xbox or bluray. so my question is: can you use a raspberry pi to run the display on the lcd screen by connecting a xbox or what not without having a laptop out?
@jamesalanjob3 жыл бұрын
Absolutely super, one question, in the netmonit is there a way to light an led or flash the lcd screen if it reports down?
@adrianmanikowski2451 Жыл бұрын
Is there any possibility to make something like - lcd.cursor_mode = CursorMode.blink ? For blinking the cursor?
@madapativenkatesh9583 жыл бұрын
Brk it enough or should we declare pins
@themarcartsАй бұрын
is the any way to install this globally? I can only get it to work inside the install dir
@mhan66015 жыл бұрын
Where do I put the Fan Pins, because both those are in the black and red spots you have. I can choose any 5v and ground location? (I guess I could just put the fan red in the 3.5v location and just have low power maybe?)
@muhammadsameer8837 жыл бұрын
Thank you pi guy and thank you Craig Griffin for giving quick solution.
@rodolfolucas63835 жыл бұрын
Hello my friend. This tutorial works on Upboard 2?
@youreale7 жыл бұрын
What about a level shifter since the device uses 5v e pi's use 3v???
@graham94733 жыл бұрын
Hi i change the text to say something different, however on the lcd it shows as mixed up letters and numbers. Any help would be great. Thanks.
@rpitime20513 жыл бұрын
Is there a way to turn off the display for when it is not being used?
@abw_creator5 жыл бұрын
I am running 0*27 display with raspberrypi. display not giving any output but it is chaging brightness. i tried different display and it is working. i want to check problem with older display
@hanneshein97212 жыл бұрын
how do i write my own text into it. The document always says that i cant pls help
@leonpiscopo85154 жыл бұрын
The code is good and it shows 'Writing to display' but shows nothing on the LCD screen.What could it be please?
@ShakeYaBamBam4 жыл бұрын
i have the same, all suggestions here don't help to get it to work. did you find a solution that worked for you ?
@leonpiscopo85154 жыл бұрын
@@ShakeYaBamBam I have put a video on my KZbin channel showing it working :)
@tuobraun3 жыл бұрын
Hi, what a great video, thank you! But is there any way to connect a second LCD module to the same Pi and display different data on both screens?
@1996JRC4 жыл бұрын
Is it possible to change the orientation of the text? It is upside down for me at the moment
@RichardT21128 жыл бұрын
Stupid question, if I wanted to have multiple displays, I would need to have different addresses, then change the lcddriver file accordingly. Or is this really written for just one display and I should consider any other driver library?
@davidb.59113 жыл бұрын
Amazing stuff man, thank you so much! Very clear and easy to understand!
@danmarkvillaplana4207 Жыл бұрын
I received an Errno 121 saying Remote I/O error. I saw fix to this by editing the address in the lcddriver.py but that file didn't appear in my folder when I cloned it from git. Any advice on how to fix this error?
@cordikland34545 жыл бұрын
Raspberry 4 ERROR: This example works fine on any of my RaspPi3 but can not get this to work on my Raspberry Pi 4.It appears to be an address error but running i2cdetect -y 1 does not work on this cpu either (raises an error) which works fine on the 3.
@bkhaas4888 жыл бұрын
I keep getting several errors. Here the first. Line 11, in . display = lcddriver.lcd(). Can you help? I can see you a pic of all the errors if you want
@HUNVilly7 жыл бұрын
ok same thing happened to me, I did 2 things to fix it. First of all, I had my SDA and SCL wires switched by accident, second of all i gave the command: sudo i2cdetect -y 1 And in the lcddriver.py file I changed the ADDRESS = 0x value to what I saw after giving out the previous command, in my case 3f, so i changed it to 0x3f.
@carotoby7 жыл бұрын
thx - the socond one was the solution!!!
@mauritsvlot51387 жыл бұрын
HUNVilly thx man it workt with the second thing
@mauritsvlot51387 жыл бұрын
HUNVilly its pretty hard to find for a beginner
@AdityaRajKapoorLordFuseBox5 жыл бұрын
Thanks a lot. How can I get a news ticker?
@Zozo-ke2dl4 жыл бұрын
I’m really struggling here, for some reason when I’m entering the lcd stuff to clone it’s asking for my GitHub login and won’t let me type ANYTHING for the input of the password meaning I’m not authenticated to access the stuff ... help??
@voltifer52674 жыл бұрын
Zozo just log in ur GitHub or sign up and it will work
@potaziio71743 жыл бұрын
the password never shows up when you're typing, it will be blank
@Zozo-ke2dl3 жыл бұрын
@@potaziio7174 whaaaaaaat??? I'll try it again soke day - unfortunately my pi broke 💔
@f.magalhaes2 жыл бұрын
Will this work in a Pico?
@loganbyrne30546 жыл бұрын
i am currently using my RaspPi as a portable computer. Do you have the codes to make this with the same board on an Arduino?
@CyberErnie3 жыл бұрын
Hi, could you please help me!? ;) I want to display the IP-Adress and the CPU-Temp to the display. Do you have a python-script for this? Thanks in advance.
@garettrose21563 жыл бұрын
I want system monitoring as well so I can view cpu temp & usage while mining
@dalerobinsuk7 жыл бұрын
You should be using a Logic Level Converter, those I2C backpacks have 5v pullups!
6 жыл бұрын
What will happen if I don't use it though?
@carlosnissan8386 жыл бұрын
hello, how do i check the temperature of the pi 3? cheers and thanks
@AdityaRajKapoorLordFuseBox7 жыл бұрын
hello: doing this for the first time in my life. using yr video. Thank you!
@owenhobbs17587 жыл бұрын
Thank you TheRaspberryPiGuy, this really helped me a lot!
@GeorgeTJ8 жыл бұрын
Excellent tutorial. Is there a way to display playing info from Volumio?
@ikkepic8 жыл бұрын
Now if I could only make this LCD display work with MPD. That would a super audio player! 👍
@johnnywest54455 жыл бұрын
Excellent tutorial, thank you!. I had to 'pip install smbus', but everything worked great after that.
@Bullet55NL5 жыл бұрын
Johnny West thanks for this
@emilius12384 жыл бұрын
*OH, HOW SURPRISING! YOU HAVE TO INSTALL LIBRARIES*
@BenyBenator4 жыл бұрын
Question: I am already using the GND and one of the 5V pins on the GPIO for my case's fan. I see the GPIO has another 5V and GND. Can I use any of them for power, and use SDA and SCL for the data/clock?
@dynamicallyvirtual6032 жыл бұрын
Yeap
@ExhaustedFish7 жыл бұрын
Great tutorial. I am trying to make a display that shows my current subscribers using API keys is it possible to do that with this screen? Thanks!
@bradgillap8 жыл бұрын
How do I turn off the screen on and off in python or use the blinkon / blinkoff in the lcddriver?
@gymzaal44123 жыл бұрын
Amazing tutorial, great work!
@thepeacockk7 жыл бұрын
thanks man! this made my setup very easy to complete!
@Dre3ed7 жыл бұрын
is it possible to display cpu temp and cpu usage or ram usage ?
@franshejhejhej6 жыл бұрын
Works fine on Python 2.7! Is there any version for python 3?
@lutz4tech2 жыл бұрын
Yes Here you Go: kzbin.info/www/bejne/epi8eZWgpZ2eh5I
@thaddeusnoffsinger24105 жыл бұрын
Can you use the mini LCD somehow without it being connected to the raspberry pi?
@4_shore5 жыл бұрын
Check out the 3 part series by the 8-bit guy
@thaddeusnoffsinger24105 жыл бұрын
@@4_shore Okay
@XW0RKS6 жыл бұрын
what's the code for displaying IP address... cause every other tutorial use lcd without module and it's more complicated.
@ardhifibrianto20898 жыл бұрын
i used mfrc522 and this lcd, but but the problem comes. please share tutorial for uninstall this packed
@TheBontenbal5 жыл бұрын
Check your i2c address in the lcddriver.py file. I had to change mine. After that it worked. Thanks RPi Guy!
@kylecachia67063 жыл бұрын
what exactly do I need to do?
@ConsistentImprovement8 жыл бұрын
You're awesome man. Thanks for the video, it helped me setup my lcd display.
@gavinreniers75698 жыл бұрын
you are a god !!! thought mine was faulty can you make same type video for librelec i have asked many people on forms but no luck and i thought my display was faulty
@benitoa62385 жыл бұрын
can you please do the same example in C tutorial
@alexfernandesportrai2 жыл бұрын
Hi, I am new to Python. After 'sudo sh install.sh' in the lcd directory, I got this error 'install.sh: 21: ./setup.sh: Permission denied'. What am I doing wrong?
@michellew.19192 жыл бұрын
i got the same error, did you ever figure it out?
@RichardEricCollins8 жыл бұрын
Very nicely presented video. Thanks for sharing. :)
@boggybudgie7 жыл бұрын
not sure if i have a dodgy display, its wired correctly, i changed the lcd address to 0x3f, ran the sh file and rebooted, ran the demo but the screen is blank, twisting the potentiometer on the back does nothing, i have a red power light on the back of the screen so i'd assume it works and maybe i did something wrong
@JoeyLindsay5 жыл бұрын
turn the pot the other way
@calico_cy5 жыл бұрын
I couldn't get this to work with pi 1 old model, any help
@donlovejoy8574 жыл бұрын
Great video, thank you for sharing! My display doesn't have a physical adjustment for the contrast but terminal says 'Writing to display' and my screen is black. I feel like the contrast/brightness is where I need to look to fix this, any idea if it can be controlled via coding? ps, thank you Craig Griffin for your comment, you got me over my first challenge with this!
@dynamicallyvirtual6032 жыл бұрын
Sorry I'm late lol. but I think you should get another backpack for it with a physical adjustment.
@dynamicdog15358 жыл бұрын
Hello, I currently have my LCD screen hooked up and I'm intermittently getting gibberish instead of the desired text. I've gotten the desired text a few times, but upon restarting the script it goes back to gibberish. Do you have any ideas to fix this?
@JoeyLindsay5 жыл бұрын
try reinstalling the files or check to see if something is shorting the lcd driver
@freemanfreed15815 жыл бұрын
I need to display month year and date on a large display screen each day . but large screens have no such kinds of pins to connect them to a raspberry pi. Can anyone help me please ??? thank you
@ConstructionGuy2 жыл бұрын
It’s asking me for a user name and password for GitHub when I type the Command in. Any help?
@walkriz8 жыл бұрын
Thanks for you video, very clear and explains in detail!!! super
@boggybudgie7 жыл бұрын
my 3f is in the colum f and row 30 when i run the i2cdetect command, should i change the lcd address to fx3f or something?
@JoeyLindsay5 жыл бұрын
no hex addresses start with 0x to tell the system that it is hex so it is simply '0x3f'
@johngonsalves52685 жыл бұрын
Well done! Thanks for the great upload
@kevinbaines97098 жыл бұрын
great video thanks got mine going at last
@pipeopipe6 жыл бұрын
Hello, i used i2cdetect -y 1 and my display apperas as "3f", however, when i run any of the scripts, no characters are displaying on the screen. i changed the address in lcddriver.py to 3f. Any clue on what can be happening? My LCD is turned on, but no characters are displaying on the screen. I'm wiring directly to a Raspberry Pi Model B like you show in the video. Thanks in advance!
@JoeyLindsay5 жыл бұрын
can you see rectangles on the screen? If no, you need to change the value of the potentiometer on the back of the LCD with a screwdriver. I had the same issue. did you leave the address = 0x3f?
@PAUL-wn5iy5 жыл бұрын
Thank you very much. You helped a lot.
@yudhobaskoro80334 жыл бұрын
Traceback (most recent call last): File "demo_lcd.py", line 6, in import lcddriver File "/home/yudho/lcd/lcddriver.py", line 12, in import i2c_lib File "/home/yudho/lcd/i2c_lib.py", line 1, in import smbus ImportError: No module named smbus I ended up with this code on ubuntu mate, but it doesnt do this when i use raspberry os, can someone help me please
@ishanrajesh95284 жыл бұрын
I have the same issue Does anyone have a fix for it
@yudhobaskoro80334 жыл бұрын
@@ishanrajesh9528 an update on september fixed it for me, and now i can run this code on any OS, except android ofc
@kraftyw1999 Жыл бұрын
Has anyone figured out a way to display the same message just by turning on the Pi (not having it hooked up to an external monitor to code anything)?
@thiloreiche47037 жыл бұрын
Very Nice!!! Me helped it so much
@TerraRiley4 жыл бұрын
Error 121, remote I/o error? Followed everything but nothing upon i2cdetect. I2C is enabled under config.. idk what my deal is but I keep failing and I want to quit! But that's lame, so if anyone has pointers, please lmk!
@MrWallyGattor6 жыл бұрын
Thank you, very helpful screen setup and working fine, i have been playing with the clock.py code, i want it to show the ip address instead but i can't seem to get the command right. pleas point me in the right direction
@JoeyLindsay5 жыл бұрын
import os os.system("ifconfig") hope this gets you closer to your goal!
@diegonavarro40075 жыл бұрын
Why I can´t run the code of demo_lcd.py on thonny IDE???
@djmello73052 жыл бұрын
I’m trying to make my display show the stats like the temp of the cpu and stuff like that while running retropie, anyone know anything that could help me?
@tubeDude487 жыл бұрын
The link to get the LCD w/ i2c is dead!
@kylecachia67063 жыл бұрын
This is telling me that the module drivers could not be found
@hallenraharja7 жыл бұрын
Can anyone give some reference about how to print data from sensor to lcd 2x16+i2c ?? please thanks
@igot_hacked30385 жыл бұрын
Pls share any answers u found that worked for u. Im working on a similar project where the lcd could read the sensor readings
@sudarshanbandyopadhyay90524 жыл бұрын
Hi, i was wondering can we control the backlight brightness level using some python codes?
@VanishingTacos4 жыл бұрын
Use a resistor or you might be able to use the 3v pin and not 5v.
@sudarshanbandyopadhyay90524 жыл бұрын
@@VanishingTacos hmm...using resitor will be a fixed solution right? Suppose i want to dynamically control the brightness, i have a code which uses the lcd display 24hrs a day, i want 8hrs during night time as low brightness and rest 16hrs on normal brightness. Can we do it using some coding implementation?
@VanishingTacos4 жыл бұрын
@@sudarshanbandyopadhyay9052 Look into pulse-width modulation. I know you can use that to control the brightness LEDs.
@sudarshanbandyopadhyay90524 жыл бұрын
@@VanishingTacos thanks, will look into it.
@fantacho8 жыл бұрын
hey buddy, I've got a problem when I executed the program "File demo_lcd.py, line 11, in display = lcddriver.lcd() File /home/pi/lcd/lcddriver.py, line 67, in__init__ self.lcd_device = i2c_lib.i2c_device(ADDRESS) File /home/pi/lcd/i2c_lib.py, line 7, in __init__ self.bus = smbus.SMBus(port) IOError: [Errno 13] Permission denied"
@szymex738 жыл бұрын
+Diego Riveros Did you turned on the I2C option in the RPi configuration program? If you didn't, than that's your problem. (sorry for my english, if it isn't too good)
@fantacho8 жыл бұрын
+Szymon Borecki it's working! I added the line: i2c-bcm2708 in the file /etc/modules, then I updated the system and installed i2c python libraries(version 2): sudo apt-get install -y python-smbus i2c-tools , and rebooted the Pi
@piumalkothalawala47836 жыл бұрын
Please Help self.lcd_device.write_cmd(data | LCD_BACKLIGHT) File "/home/pi/Desktop/Research/lcd/i2c_lib.py", line 11, in write_cmd self.bus.write_byte(self.addr, cmd) IOError: [Errno 121] Remote I/O error
@nortrap8 жыл бұрын
nice video as always, do you know where can I buy just the I2C adapter?
@TheRaspberryPiGuy8 жыл бұрын
+nortrap this looks like the one: www.dx.com/p/lcd1602-adapter-board-w-iic-i2c-interface-black-works-with-official-arduino-boards-216865#.VvzeYPkrJhE
@nortrap8 жыл бұрын
Great, they are now on the way, found them on ebuy too :)
@TheRaspberryPiGuy8 жыл бұрын
+nortrap let me know how it goes!
@nortrap8 жыл бұрын
No problem, i should have it here in a few weeks time, LCD is ready to be updated. PT
@nortrap8 жыл бұрын
+TheRaspberryPiGuy Got the I2C interface board today, and voila! I now have a I2C driven LCD :)
@battlecampkhimmay29813 жыл бұрын
DS18B20 temp with lcd pls
@vintagecafe45404 жыл бұрын
Ohhhhh thank you so much sir!!!
@plankalkulcompiler94687 жыл бұрын
PLEASE HELP!! IT GIVES ERROR! I OError: [Errno 121] Remote I/O error
@yoeriyoeri42646 жыл бұрын
same, any solution??
@brianronstrom15426 жыл бұрын
same!
@IncredibleSolv6 жыл бұрын
check the address on the back of the display module....you might have a config issue and need to change the address, this is a common issue with arduino so look that up if you need more help
@robinlow38896 жыл бұрын
Hi, I am learning how to use LCD screen so how do you check the address and change it on raspberry pi? I need help thanks, I am also facing remote I/O error 121 from running codes that others have proved to work, so I believe it is my problem.
@IncredibleSolv6 жыл бұрын
not enough information to answer your question. if it has the four pin on the back and you're using linux you can dmesg... usually the module has the address at the rear
@GregBernhardt4 жыл бұрын
Where the hell doe VCC hook into?
@raysrcsandtech8 жыл бұрын
Will your code work with a SainSmart LCD keypad module based on the HD44780 controller, this is what I can get locally to me it's the same but a 4 line display, it has the same pins as the display you have used.
@TheRaspberryPiGuy8 жыл бұрын
+Rays RCs hi there, do you have a link to your display?
But I can't seems to find it on the Sain Smart website, s oI'm not sure of the model number
@TheRaspberryPiGuy8 жыл бұрын
+Rays RCs that looks very similar (if not the same) as the style that I use in this tutorial. It *should* work.
@raysrcsandtech8 жыл бұрын
Thank you for a fast replay, I shall order one and see. Some reviews say it work with the Pi no issues, so even if your code does not run it it should be easy to set up. :)
@balgruufthegreater90728 жыл бұрын
I just bought that LCD display (i2c interface module included) for €2,75 on eBay
@emilius12384 жыл бұрын
Late to the party, but was it used?
@natman1518 жыл бұрын
I have on of the original rev 1 pi's and i'm getting this error. noticed in the comments others are having the same issue Traceback (most recent call last): File "demo_lcd.py", line 11, in display = lcddriver.lcd() File "/root/lcd/lcddriver.py", line 69, in __init__ self.lcd_write(0x03) File "/root/lcd/lcddriver.py", line 93, in lcd_write self.lcd_write_four_bits(mode | (cmd & 0xF0)) File "/root/lcd/lcddriver.py", line 88, in lcd_write_four_bits self.lcd_device.write_cmd(data | LCD_BACKLIGHT) File "/root/lcd/i2c_lib.py", line 11, in write_cmd self.bus.write_byte(self.addr, cmd) IOError: [Errno 5] Input/output error Any help would be grand. Thank you :)
@craiggriffin25558 жыл бұрын
+Nat Klopper To get my one to work I used i2cdectect to get the address of the lcd screen then with this I went into theh lcddriver file and changed the lcd address from 0x20 to 0x3f. Hope this helps
@natman1518 жыл бұрын
+Craig Griffin Thanks Craig, worked superbly. Totally forgot about the i2c addresses!!
@VAN_production.mp44 жыл бұрын
Finallllyyyyy!!! Now I can make my own BOMB which will display remaining time! Before everyone thought I was joking since there was no time for detonation 🤔🤔🤔🤔🤔🤔🤔😅😅😅😅😅😅😅😅