Build 7: LCD + Light Dimmer Switch

Joy Jean
2 min readApr 25, 2016

This is the more advanced version of build 6 that outputs its brightness value on a blue 16 x 2 LCD.

Here is the video to the demo: https://youtu.be/MZ4ihlco9MM

Since this was my first time using the lcd component, I had to refer to this tutorial: https://learn.adafruit.com/adafruit-arduino-lesson-11-lcd-displays-1?view=all

The process was a bit intimidating at first, since there were so many wires that were required to connect the LCD screen. First, I tried the "Hello World" program in the example in the tutorial, and then moved on to integrate the whole thing with my light dimmer switch, which is build 6. It was a mentally easy process, but the actual moving of the wires and arranging of components on the breadboard was rather tedious. To connect the LCD, I referred to this tutorial: https://learn.adafruit.com/character-lcds/wiring-a-character-lcd.

I had to make room for both components, the LCD and the light and 2 potentiometers, and have them all connect and work correctly. I ran into some problems with the light value because it went from 0 to around 900, which should not happen. I then added the lcd.clear() function to solve the problem, but the display started flickering. To solve that problem, I used this tutorial: http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay. Definitely very satisfying when it worked properly!

However, after the build, I still needed to draw the the schematic. I used to hand-draw all my schematics, but there are too many wires and the wires are too confusing. So, I starting using "fritzing". Link here: http://fritzing.org/home/ It is pretty easy to get used to and easy to use.

--

--