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
  • Наука та технологія

КОМЕНТАРІ • 47

  • @whitneydesignlabs8738
    @whitneydesignlabs8738 Рік тому +2

    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.

  • @vuthuong69
    @vuthuong69 5 років тому

    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.

    • @robojax
      @robojax  5 років тому

      You are welcome. I am glad you found it useful.

  • @bergarteric5713
    @bergarteric5713 4 роки тому +1

    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

    • @robojax
      @robojax  4 роки тому

      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

  • @nicknguyen77
    @nicknguyen77 2 роки тому

    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. 😃

    • @robojax
      @robojax  2 роки тому

      Here is my full Arduino course ua-cam.com/play/PLHvJ4bw0xno4Z3FC2W07I4D2UP14bOaT2.html

  • @sbanicgregurek
    @sbanicgregurek 3 роки тому

    Thank you, this is exactly what I needed for my final project :)

  • @cessposter
    @cessposter 3 роки тому +3

    AYYY MATE THANKS I NEEDED THIS

    • @robojax
      @robojax  3 роки тому

      You are welcome.

  • @dragonstuff1983
    @dragonstuff1983 3 роки тому

    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!

  • @faranehmosavari4371
    @faranehmosavari4371 4 роки тому

    he is very smart and did a amazing job!!!!!
    THANKUUUUU

    • @robojax
      @robojax  4 роки тому

      You are welcome. سلامت باشید. ویدیو های جدیدم همه زیر نویس فارسی دارند. احمد شمشیری از کانادا (خراسانی)

    • @robojax
      @robojax  Рік тому

      سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
      www.youtube.com/@ilmofan

  • @kuimo-Q
    @kuimo-Q 11 місяців тому

    thank you!

  • @piercer4882
    @piercer4882 3 роки тому

    How many pins does this use on the arduino? It does not have a i2c backpack installed does it?

    • @robojax
      @robojax  3 роки тому

      I don't have the module on hand I made the video to answer this. if you watch it, you will see.

  • @RESEARCHLABBD
    @RESEARCHLABBD 3 роки тому

    Thanks

  • @anythingunderthesun9930
    @anythingunderthesun9930 5 років тому

    What exactly is the model of the arduino that is compatible with this lcd?

    • @robojax
      @robojax  5 років тому

      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.

  • @spisurin
    @spisurin 4 роки тому

    Thank you ;)

    • @robojax
      @robojax  4 роки тому

      You are welcome.

  • @evcreative1010
    @evcreative1010 3 роки тому

    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

    • @robojax
      @robojax  3 роки тому

      needs full project.

  • @johnalex3023
    @johnalex3023 2 роки тому

    Are there any IO pins still available when using on the UNO? If so, which ones? And how do I access them?

    • @robojax
      @robojax  2 роки тому

      Hi, the pins used for display are not available. Only the pins not defined in the code are available.

    • @johnalex3023
      @johnalex3023 2 роки тому

      @@robojax how do I access them?

    • @robojax
      @robojax  2 роки тому

      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

    • @johnalex3023
      @johnalex3023 2 роки тому

      @@robojax I tried that. I don’t seem to get anything off those pin headers.

    • @robojax
      @robojax  2 роки тому

      I have no access to the shield right now , once I do I will check it out.

  • @guarnicom
    @guarnicom 5 років тому

    How you can make scrolls and blinks>?

    • @robojax
      @robojax  5 років тому

      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

  • @user-cn4jm8lk6m
    @user-cn4jm8lk6m 3 роки тому

    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

    • @robojax
      @robojax  3 роки тому +1

      yes it means you have not installed the library. "no file" means you skipped the video.

  • @taranagnew436
    @taranagnew436 5 років тому

    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
    }
    }
    }

    • @robojax
      @robojax  5 років тому

      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

    • @taranagnew436
      @taranagnew436 5 років тому

      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.

    • @robojax
      @robojax  5 років тому

      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/

    • @taranagnew436
      @taranagnew436 5 років тому

      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.

    • @robojax
      @robojax  5 років тому

      this line:
      if (KEY_SELECT); == HIGH {
      should be changed to
      if (KEY_SELECT == HIGH) {

  • @MAXOHNO
    @MAXOHNO 4 роки тому

    Can you publish the code used in this video?

    • @robojax
      @robojax  4 роки тому

      for all Robojax videos, the link to the code is under the video in the description.

  • @thatoneguy1154
    @thatoneguy1154 4 роки тому

    HOW DO I HOOK THIS UP FOR IRACING PLZZZZ HELP YOUR MY ONLY HOPE OBIE1KANOBI

    • @robojax
      @robojax  4 роки тому +1

      first I don't know what iraching is. I checked and it shows simulation or game. I have no experience with this.