There are two sections to this:
1). Connecting LCD display to Arduino
This connection is very simple. There are 16 pins to LCD display. We only need to connect 12 pins.
- Pin 1 - Vss - Arduino GND
- Pin 2 - Vcc - Arduino 5V
- Pin 3 - Vee - Centre pin of 10k resistor pot
- Pin 4 - Rs - Digital pin 12 on Arduino
- Pin5 - R/W - Arduino GND
- Pin6 - E - Digital pin 11 on Arduino
- Pin7 - D0 - Empty
- Pin8 - D1 - Empty
- Pin9 - D2 - Empty
- Pin10 - D3 - Empty
- Pin11 - D4 - Digital pin 5 on Arduino
- Pin12 - D5 - Digital pin 4 on Arduino
- Pin13 - D6 - Digital pin 3 on Arduino
- Pin14 - D7 - Digital pin 2 on Arduino
- Pin15 - LED+/ Anode - Arduino 5V
- Pin16 - LED-/ Cathode - Arduino GND
2). Connecting LED lights to Arduino
We have used 6 LEDs: 4 Blue and 2 Golden yellow. They are made into 3 pairs. Positive(Anode) of each pair is connected to a different digital pin on Arduino with a 220ohm resistor in between. The Negative(cathode) is connected to the common GND on the breadboard. You will definitely get more clarity when you see the Circuit diagram and go through the Code. Follow the colour code, it's easier that way...
You need to include liquid crystal library in your code. In Arduino IDE, under Sketch - click on Include library and add the ZIP file you downloaded.
End ResultWe think maybe this project can further be optimised. Let us know in the comments below...
Comments
Please log in or sign up to comment.