User Tools

Site Tools


workshops:arduino_to_the_next_level:lcd

This is an old revision of the document!


Liquid Crystal Displays

A Liquid Crystal Display (LCD) allow your Arduino to display some text. You might want to show a reading such as the current temperature. In the hacklab we use one to show the total time the laser cutter has been running.

The LCD included in your kit has 2 rows each with 16 characters and has a backlight to make it easier to read. It uses a Hitachi HD44780 compatible driver chip well supported by Arduino software libraries.

  • Following the LiquidCrystal tutorial connect up the LCD and display Hello World. To power the backlight and make the display easier to read connect the “A” pin of the LCD to 5V and “K” to 0V.
challenge_yourself.jpg Easier(1) Using the examples from the tutorial scroll a message that is longer than 16 characters across the display.Intermediate(2) Connect up a push switch to the Arduino and display “Switch On” when the button is pressed and “Switch Off” when the button is not pressed. Hard(3) Display an arrow pointing to the right (→) on the screen.lcd-arrow.jpgTip: The createChar() function in the LiquidCrystal Library may be very useful.Note that createChar example needs a tweek. http://forum.arduino.cc/index.php?topic=94914.0(4) Scroll the arrow pointing to the right (→) across the screen. As demonstrated in this video http://youtu.be/rztILQ1G0tI

We'll use the LCD in later tutorials. It is amazing how much more professional a project can look with an LCD!

workshops/arduino_to_the_next_level/lcd.1491396124.txt.gz · Last modified: 2017-04-05 12:42 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki