Using 1602 LCD kaypad shield for Arduino
Вставка
- Опубліковано 4 сер 2024
- This video shows Using 1602 LCD keypad shield for arduino and how to detect and display the key number on the serial monitor.
Download the library for Arduino: bit.ly/LCD-keypad
Get early access to my videos via Patreon and have your name mentioned at end of very videos I publish on UA-cam : robojax.com/L/?id=97
documentation from DFRobot
www.dfrobot.com/wiki/index.ph...)
Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
Tutorial by Ahmad Shamshiri form Canada
****************************
Learn Arduino from a proven instructor with 100s of projects, code, wiring diagram in structured course in one place. Purchase Arduino Course at Udemy.com : robojax.com/L/?id=153
****************************
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
Get early access to my videos by becoming my Patreon and and have your name mentioned at end of very videos I publish on UA-cam: robojax.com/L/?id=97
If you want to learn Arduino from proven instructor on **Udemy**: bit.ly/rj-udemy
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/learn/arduino
#robojax #robojax_LCD - Наука та технологія
An oldie, but goodie. Thanks, Ahmad! I am pulling this old LCD keypad hardware out my my parts stash to use in an automotive environment. Your video jump started the project. All the best.
Sounds great!
Thank for the tip with the serial monitor. Thanks to it, I could see that my shield seemed to work but the contrast was probably so low, that I could not see anything. After tuning the black-light potentiometer, I could read the LCD clearly and everything was fine.
You are welcome. I am glad you found it useful.
Good evenig Mister !! Your channel it's a pure gold mine ... thanks for all your time your knowlege and the share !!! for me at 60 years old i'm learning many things about Arduino !!!
In this dificult time i'm shure than god bless you and your family ...sorry for my English ! Eric from Fance
You are welcome. I am glad you found it useful. Here a video on basics of Arduino in 30 minutes ua-cam.com/video/Mbb2xa1WcRM/v-deo.html
I was able to successfully run my Inland LCD1602 Expansion Shield following this example. Downloading the modified library was the most difficult part. After that, easy. Thanks for this youtube. 😃
Here is my full Arduino course ua-cam.com/play/PLHvJ4bw0xno4Z3FC2W07I4D2UP14bOaT2.html
Thank you, this is exactly what I needed for my final project :)
AYYY MATE THANKS I NEEDED THIS
You are welcome.
I tried to upload your code to my device but I got this error code: "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
".
I'm totally new to this whole programming thing and I have no idea what I'm doing. Thanks in advance!
he is very smart and did a amazing job!!!!!
THANKUUUUU
You are welcome. سلامت باشید. ویدیو های جدیدم همه زیر نویس فارسی دارند. احمد شمشیری از کانادا (خراسانی)
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
www.youtube.com/@ilmofan
thank you!
How many pins does this use on the arduino? It does not have a i2c backpack installed does it?
I don't have the module on hand I made the video to answer this. if you watch it, you will see.
Thanks
What exactly is the model of the arduino that is compatible with this lcd?
For Arduino you can see on video. But the problem is with the LCD as they use different type and it won't work with Arduino. If I find new information, I will make video.
Thank you ;)
You are welcome.
I have lcd 16×2 display and iam using it with for my project and i want to convert code into lcd 16 ×2 key pad shield sir please help me
needs full project.
Are there any IO pins still available when using on the UNO? If so, which ones? And how do I access them?
Hi, the pins used for display are not available. Only the pins not defined in the code are available.
@@robojax how do I access them?
I just looked at the pictures of the ships there are hold you can solder your wires or pin headers. The connect and LED and a resistor, use the blink code, change the link number from 1 to 13, run the code find each pin
@@robojax I tried that. I don’t seem to get anything off those pin headers.
I have no access to the shield right now , once I do I will check it out.
How you can make scrolls and blinks>?
those have been explained in this video ua-cam.com/video/Co-DrCa2slk/v-deo.html and this with I2C (4 wires) ua-cam.com/video/q9YC_GVHy5A/v-deo.html
I use the code you provide, but shows error below
C:\Users\Hoya\Documents\Arduino\libraries\LCD4Bit_mod\LCD4Bit_mod.cpp:31:12: fatal error: WProgram.h: No such file or directory
#include "WProgram.h"
^~~~~~~~~~~~
compilation terminated.
exit status 1
yes it means you have not installed the library. "no file" means you skipped the video.
i'm trying to create a digital dice to play catan with, the problem that i'm having is that i can't get the random numbers to show up whenever the select button is pressed, plz help, the code is
#define DFR_LCD_KEYPAD_KEY_PIN A0
int buttonState = 0; // current state of the button
int lastButtonState = 0; // previous state of the button
#include
int lcd;
int diceOne;
int diceTwo;
#define KEY_SELECT;
uint8_t read_key(void);
void backlight_on (void);
void setup() {
// initialize the button pin as a input:
lcd.begin(16, 2);
lcd.setCursor(1, 0);
lcd.print("Roll the dice!");
}
void loop() {
if (KEY_SELECT) == HIGH {
// if the current state is HIGH then the button went from off to on:
diceOne = random(1, 7);
diceTwo = random(1, 7);
//read the pushbutton input pin:
buttonState = analogRead(buttonPin);
// compare the buttonState to its previous state
if (buttonState != lastButtonState) {
// if the state has changed, increment the counter
}
}
}
First you have to be able to print the dice on the serial monitor like this
Serial.println(diceOne);
if this works, then print it on the display
lcd.setCursor(1, 0);
lcd.print(diceOne");
Always print the result in serial monitor. of course inside the void setup() you should initialize the serial monitor like this:
Serial.begin(9600);
where 9600 is the data rate which must match the serial monitor
everytime i go to upload the code to the arduino, i get this
Arduino: 1.8.6 (Windows 10), TD: 1.44, Board: "Arduino/Genuino Uno"
C:\Users\taran\Documents\Arduino\dice_for_catan\dice_for_catan.ino:10:0: warning: "KEY_SELECT" redefined
#define KEY_SELECT
^
In file included from C:\Users\taran\Documents\Arduino\dice_for_catan\dice_for_catan.ino:3:0:
C:\Users\taran\Documents\Arduino\libraries\DFR_LCD_Keypad/DFR_LCD_Keypad.h:55:0: note: this is the location of the previous definition
#define KEY_SELECT DFR_LCD_KEYPAD_KEY_SELECT
^
C:\Users\taran\Documents\Arduino\dice_for_catan\dice_for_catan.ino: In function 'void loop()':
dice_for_catan:23:17: error: expected '(' before '==' token
if KEY_SELECT == HIGH {
^
dice_for_catan:38:1: error: expected '}' at end of input
}
^
exit status 1
expected '(' before '==' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
if seem the error is with #define. you should use this format: #define age 22;
it has 3 parts, the keyword "define" , the name "age" and the value 22. there is no = sing. see reference page www.arduino.cc/reference/en/language/structure/further-syntax/define/
when i go to compile the code, i get this
Arduino: 1.8.6 (Windows 10), TD: 1.44, Board: "Arduino/Genuino Uno"
C:\Users\taran\Documents\Arduino\dice_for_catan\dice_for_catan.ino: In function 'void loop()':
dice_for_catan:23:20: error: expected primary-expression before '==' token
if (KEY_SELECT); == HIGH {
^
exit status 1
expected primary-expression before '==' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
this line:
if (KEY_SELECT); == HIGH {
should be changed to
if (KEY_SELECT == HIGH) {
Can you publish the code used in this video?
for all Robojax videos, the link to the code is under the video in the description.
HOW DO I HOOK THIS UP FOR IRACING PLZZZZ HELP YOUR MY ONLY HOPE OBIE1KANOBI
first I don't know what iraching is. I checked and it shows simulation or game. I have no experience with this.