We are getting back to LCDs this week. The last time we dealt with a 16×2 display, we used the LiquidCrystal library. This time we are going to ‘bit bang’ the LCD by hand. The idea is to learn how to control external devices for which you don’t have a library.
Agenda:
- Wiring up the 16×2 LCD
- Quick look at the datasheet
- Explain how the various commands work
- Create code to initialize the display and show a blinking cursor
- Create code to display ‘Hello World’
- Time permitting:
- Moving the cursor
- Adding custom characters
If you cannot attend the class in person, E-Mail arduino@unallocatedspace.org and ask to be added to the Google Hangout. The hangout will be started just before class (6:45-7:15 PM). If you have not gotten an invite by 7:15 PM, then please E-Mail arduino@unallocatedspace.org.
The slides for the upcoming and previous classes can be found here. The slides are generally made during the three days before a class.
Required Items:
- An Arduino board of some kind (Uno, Due, Mega, Boarduino, Duemilanove, etc)
- If your board does not have USB programming built in, you will need a programmer (AVRISP, Bus Pirate, Bus Blaster, AVR Dragon, another Arduino, etc)
- Breadboard (the long one if possible, though the small square-ish ones are okay for now)
- USB cable for your board and/or programmer
- Laptop with the Arduino IDE installed (Linux, Windows, or Mac)
- Jumper wires for your breadboard
- 16×2 LCD (E-Mail arduino@unallocatedspace.org if you need one to use for class)
- Variable resistor (potentiometer) for setting the contrast
Provided Items:
- 16×2 LCD if needed
- Variable resistor if needed
Since Unallocated Space runs off of donations, we would like to mention that the recommended donation for this class is $5. It is by no means a requirement, but it does help us keep the lights on! Attendance to the space, and this class, is 100% free to all!
Related