Documente Academic
Documente Profesional
Documente Cultură
Living
Outside
Play
Technology
Workshop
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
Step 4: Connections
Overview the entire board (again) for any bridges to ensure there are no short circuits. Now it is time to connect this up and test it. Connect the power (5v and ground). Connect the wires to the shift register, if you use the library as default you will connect Green to Arduino Pin 7, Blue to Arduino Pin 8, Yellow to Arduino Pin 9. The pin between Green and Blue is not used. It is placed there to enable 4-pin connectors if that is the cabling you have and to make soldering much easier (trying to solder 1 pin then 2 pins is painful). Next attach the LCD so it covers the board - this will ensure you are connecting it the correct way. Contrast is adjusted using the Potentiometer.
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
Step 5: Software
The method of using a shift register to drive these displays with only 3 pins seems to have originally documented by Stephen Hobley. He did a great job of adjusting the built-in LiquidCrystal Library so it works brilliantly with the 595 Shift Register, you need to download his latest code . It is feature complete and should be a drop-in replacement for any project you already have. Here is the test Arduino sketch to show you how to use the new library, replacing the LiquidCrystal 6-pin with a great 3-pin version. --------------------COPY BELOW HERE-------------------/* * 3-pin Arduino interface for HD44780 LCDs via 74HC595 Shift Register * by Rowan Simms code@rowansimms.com * Licence: Creative Commons - Attribution. * Full Documentation and Description: http://rowansimms.com/article.php/lcd-hookup-in-seconds * * This sketch allows Arduinos to use a shift register to control an LCD, allowing * a reducation in pins it requires from 6 to 3 while still retaining full control * including backlight on/off. * This requires the use of the LiquidCrystal595 library from Stephen Hobley * available at: http://www.stephenhobley.com */ #include <LiquidCrystal595.h> // include the library LiquidCrystal595 lcd(7,8,9); // datapin, latchpin, clockpin void setup() { lcd.begin(16,2); // 16 characters, 2 rows lcd.clear(); lcd.setCursor(0,0); lcd.print("Wow. 3 pins!"); lcd.setCursor(0,1); lcd.print("Fabulous"); } void loop() { // not used. } --------------------COPY ABOVE HERE-------------------Copy this in to a new Sketch after installing the library and upload to your Arduino. You should now be basking in the glorious glow of your LCD.
Step 6: Conclusion
This shield really does allow you to use just 3 pins of your Arduino to drive an LCD display - and it takes less than 6 seconds to connect it up. Don't want to commit to a shield just yet? Wish to do this with only 3 components and breadboard? I understand that you may not wish to make a shield before trying this method out - that is completely understandable. For you, I have this documented for breadboard s too. Sure, you will have to deal with more hookup wire, but it gives you a great way of at least trying this 3-pin method without any soldering. That layout, more code and wiring explanations are available from http://rowansimms.com/article.php/lcd-hookup-in-seconds That's it. Enjoy your sub-6-second hookups!
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
Related Instructables
ATTiny45/85 LCD display control with a shift register, programmed in Arduino by baharini
Display super sized font on HD44780 20X4 character displays with Arduino (video) by liudr
Arduino with 4x20 LCD and LCD Smartie over USB (video) by FrancisShanahan
Comments
1 comments
Add Comment
Apr 8, 2012. 12:22 PM REPLY
Bongmaster says:
neat :)
http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/