Join Zahraa Khalil for an in-depth discussion in this video Coding the LCD interface, part of Learning Arduino: Interfacing with Hardware.
- [Narrator] Alright, so when we do the programming…for the LCD, the very first thing that we need to do…is to include the library of the LCD.…So you can do so by going to Sketch, include Library…and look for Liquid Crystal.…So this making sure that we have the library for LCD.…Alright, so the first command with programming the LCD…is a Liquid Crystal command.…And Liquid Crystal Command…basically does is a way for the program to identify the pins…that we connected the LCD to.…
So you can check the website for the different syntax…and since we're using only four bits,…so we are going to use the very first syntax.…So back in the coding,…so LiquidCrystal,…and then I'll name it as LCD,…and here, the first one is the rs,…second one is enable,…then d four, d five,…d six, and then d seven.…
So I need to identify what are the pins…so I can do that before the command,…so here is a constant integer, rs is connected to pin 12,…enable is connected to 11…and then d four, d five,…d five is connected to four,…d six is connected to three,…
- 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
Skill Level Intermediate
The devices used38s
1. Interface with an LCD
2. Interface with a 7-Segment LED Directly
3. Interface with a 7-Segment LED Using a Shift Register
4. Interface with a Keypad
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.