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,…
Author
Released
8/17/2018- 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
Duration
Views
Related Courses
-
Learning Arduino: The Basics
with Peggy Fisher1h 54m Beginner -
Learning Arduino: Pulse Width Modulation
with Rae Hoyt1h 16m Intermediate -
IoT Foundations: Device Management
with Ryan Hu2h 11m Intermediate -
IoT Foundations: Fundamentals
with Bruce Sinclair38m 9s Intermediate
-
Introduction
-
The devices used38s
-
1. Interface with an LCD
-
The LCD interface2m 44s
-
Wire up the LCD5m 6s
-
Coding the LCD interface4m 31s
-
2. Interface with a 7-Segment LED Directly
-
The 7-segment LED component1m 24s
-
7-segment LED display types1m 42s
-
Wiring up the 7-segment LED4m 50s
-
3. Interface with a 7-Segment LED Using a Shift Register
-
Wire up the 7-segment LED2m 18s
-
The shiftOut command3m 21s
-
4. Interface with a Keypad
-
Wiring up the keypad1m 57s
-
Setup the keypad library2m 10s
-
HelloKeypad4m 41s
-
Conclusion
-
Next steps24s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Coding the LCD interface