By on February 19, 2015

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:

  1. Wiring up the 16×2 LCD
  2. Quick look at the datasheet
  3. Explain how the various commands work
  4. Create code to initialize the display and show a blinking cursor
  5. Create code to display ‘Hello World’
  6. Time permitting:
    • Moving the cursor
    • Adding custom characters

If you cannot attend the class in person, E-Mail [email protected] 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 [email protected].

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:

  1. An Arduino board of some kind (Uno, Due, Mega, Boarduino, Duemilanove, etc)
  2. 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)
  3. Breadboard (the long one if possible, though the small square-ish ones are okay for now)
  4. USB cable for your board and/or programmer
  5. Laptop with the Arduino IDE installed (Linux, Windows, or Mac)
  6. Jumper wires for your breadboard
  7. 16×2 LCD (E-Mail [email protected] if you need one to use for class)
  8. Variable resistor (potentiometer) for setting the contrast

Provided Items:

  1. 16×2 LCD if needed
  2. 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!


Leave a Reply