Join Zahraa Khalil for an in-depth discussion in this video Wire up the LCD, part of Learning Arduino: Interfacing with Hardware.
- [Narrator] I'm going to do the wiring of the LCD, according to this table. So here is the LCD pin numbers and the corresponding Arduino pins that I'm going to connect them too. So let's go ahead and do the wiring for each pin. The first one is the ground and the vcc. Okay so I'm going to use this as a ground and the second one as the voltage supply. So the very first one is going to be connected to ground.
Now the second pin is going to voltage supply. So now the third pin is going to be connected to potentiometer. There are different types of potentiometers. However, the wiring is acquired similar. You can see the left pin is the ground. The middle one is going to be connected to a zero which is pin three in the LCD.
And the right pin is for the five bolt. Here are the types that you could use with the LCD. So for our example, I'm going to use the blue one. Or it's I'm going to go ahead and place it on the beardboard. Now I'm going to connect the third pin to the middle pin of the potentiometer.
Alright so I'm going to continue wiring the potentiometer. So the left side goes to ground. And the right side goes to five volts. So now pin number four in the LCD, goes to pin 12 in the Arduino board.
So pin five since we're doing only writing to the LCD, we need to keep it low. So we are going to connect it to ground. So now pin six in the LCD is going pin 11 in the Arduino board.
And now for the additional pins we are going to use four pins. So pin 11 in the LCD is connected to pin five in the Arduino board, 12 to four, 13 to three, and finally 14 to two. So this is been number 14 that's going to pin two here. Then, 13 is going to pin three.
12 is going to four. And then finally, 11 is going to five. Now the final two pins are pin 15 and 16. So for pin number 15 we are going to connect that to the five volts and I'm going to use a resistor value in order to do so.
This resistor is 330 ohm. That's the current limiting resistor, so you could use any values between 200 and 500. So I'm going to go ahead and connect that to the five volts here. And finally the last pin which is pin number 16 that goes to ground. So the last step is connecting the breadboard to the Arduino board.
So the ground goes to ground in the Arduino board, and the positive goes to the five volts. Alright so I've done the wiring for the LCD, so lets go ahead and do the coding.
- Interfacing with an LCD screen
- Wiring and coding the LCD interface
- Displaying random numbers on the LCD
- Interfacing with a seven-segment LED component
- Cycling through LEDs
- Using a shift register to interface with a seven-segment LED
- Interfacing with a keypad
- Combining the LCD, keypad, and LED