HD44780 LCD + 74HC595 shift register wiring diagram
#1
Posted 05 May 2011 - 06:25 PM
#2
Posted 05 May 2011 - 07:29 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#3
Posted 05 May 2011 - 07:42 PM
#4
Posted 05 May 2011 - 08:19 PM
Stefan, Thanks that is exactly what I needed. Last night I wrote my first program for my netduino and today I am already planning on LCD displays. I can see where this could become a dangerous addiction!
Welcome to the community! I remember how exciting it was for me just a few short months ago when I got my Netduino and had code working in under a few minutes. It was a very different from the experience I had with other embedded platforms I've tried over the years. I could instantly be productive!
If you haven't already, you may want to checkout the hardware getting started buying guide I've started on in the wiki. It covers breadboards to oscilloscopes, and all the main passive components in between and where to buy them.
-dan
#5
Posted 06 May 2011 - 01:12 AM
#6
Posted 21 May 2011 - 06:13 AM
*5/25/11 - Edit: I removed the bad wiring diagram to keep anyone from mistaking it as working.
#7
Posted 21 May 2011 - 06:40 AM
A fully working example is here. I built in the same way and it worked as soon.
It seems that your wiring does not match the expected driving assignment. Compare the HC595 to LCD wiring of your and Szymon's pictures.
The black blocks show because you must adjust the contrast of the LCD.
I would not use a trimmer (potentiometer) for the backlight: it is useless and there are different and better ways to adjust the brightness. However, a step by step first.
Hope it helps.
Cheers
#8
Posted 21 May 2011 - 04:00 PM
Hello.
A fully working example is here. I built in the same way and it worked as soon.
It seems that your wiring does not match the expected driving assignment. Compare the HC595 to LCD wiring of your and Szymon's pictures.
The black blocks show because you must adjust the contrast of the LCD.
I would not use a trimmer (potentiometer) for the backlight: it is useless and there are different and better ways to adjust the brightness. However, a step by step first.
Hope it helps.
Cheers
Mario,
Thanks for the reply. I have been able to get it to work when wired exactly like Szymon's example. What I am struggling with is the "upside down" wiring from the shift register to the lcd that Szymon's backpack picture uses but he doesn't have a wiring diagram for. This is necessary to keep the backpack compact since the lcd pin's will be reversed from his original wiring.
As for the contrast I have checked with the trimmer at 0% & 100% and I still get the black blocks but just dimmer. I am sure that it has something to do with my attempt at the "upside down" wiring I just am not sure what. I think tonight I will rewire it back up to the original wiring scheme then take another shot at reversing the data out with everything else exactly as it was when it worked.
As for pulling the trimmer out on the backlight, I will do that thanks for the advise.
Thanks again,
--Jim
#9
Posted 22 May 2011 - 06:53 PM
Attached Files
#10
Posted 24 May 2011 - 09:49 PM
OK, I finally got this working. As usual it was stupidity on my part. When I reversed the wiring between the shift register & the lcd I missed Qa (pin 15 on the 74HC595). If anyone is interested I have attached an updated wiring diagram (I am new to fritzing so please forgive the quality). Thanks everyone for your help. --Jim
Great news that it works for you and nice work on documenting the diagram!
Thanks,
-Szymon
#11
Posted 25 May 2011 - 02:23 PM
Great news that it works for you and nice work on documenting the diagram!
Thanks,
-Szymon
And a special thanks to you Szymon. It was staring at the highres photo of yours that you sent me that made me finally see the wire crossing over from pin 7. That was all it took to have the aha moment.
#12
Posted 09 June 2011 - 09:33 PM
#13
Posted 10 June 2011 - 02:11 AM
#14
Posted 10 June 2011 - 06:09 AM
I am starting to suspect that the mystery resistor might be the fix. I am going to send Szymon an email and ask what he used the resistor for (I will also ask what size) I'll let you know what he says.
It's a current limiting resistor for the LCD backlight LED. I used 220Ohm but this might vary depending on what LCD you use.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users