Using Keypads with Arduino - Build an Electronic Lock

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 240

  • @Webendowed
    @Webendowed 4 года назад +118

    I'm fairly new to the electronic hobby. I bought my UNO R3 kit and a 37 piece sensor kit as a Christmas present to myself, so I'm only around 5-6 months into this journey but you have taught me so much. I just wanted to drop you a comment and say thank you for making quality and informative videos. :)

    • @colindgrant
      @colindgrant 4 года назад +7

      Exact same story here, this channel really gave me a boost!

    • @techtechnicalgaming
      @techtechnicalgaming 2 месяца назад

      How's your journey now

  • @mattikaki
    @mattikaki Год назад +3

    I have been doing electronics from 1966 as a ham operator and from 1969 as electronic maintenance engineer. Now I am retired and have been ignoring Arduino until now when I need a matrix keyboard electronics. Thank you for very clear tutorial.

  • @chetanreddy8875
    @chetanreddy8875 4 года назад +5

    I watch whole ads without skipping only for his effort! Its easily understandable even by beginners.

  • @peterpade6293
    @peterpade6293 3 года назад +1

    I’m a retired mechanical engineer from Sydney, Australia. Just recently started dabbling into electronics and found your guidance extremely helpful. Thanks for your very helpful projects.

  • @abenwinUT
    @abenwinUT 3 года назад +3

    For us noobies.... this is a very informational video. Thanks for the time taken to produce this video. Learned a lot already. Just wanted to share something that was a mystery to me until I found it on Amazon. And that is the LCD address. Default Address: 0x27 for PCF8574T chip; 0x3F for PCF8574AT chip;. Mine has the PCF8574T chip, hence 0x27. No wonder it didn't work when I had 0x3f. Thanks again for all who share their experience with us 'noobies'.

    • @alohaonguda8199
      @alohaonguda8199 7 месяцев назад

      where to find the default address?

    • @alohaonguda8199
      @alohaonguda8199 7 месяцев назад

      Thank you so much! It didn't work on me either but thanks to you! mine is 0x27 as well

  • @ramakrishnatadepalli107
    @ramakrishnatadepalli107 2 года назад +2

    I am a 12 year child and I was very interested in electronics I got my first arduino it was very important for me to understand as I had no idea this channel is so helpful that I understand it so easily thanks

  • @hc8714
    @hc8714 3 года назад

    this is the best one out there. He explains how library ref works and why he chose to wrote the code in such a way. The others just make a 3-5 min video and then spent half of it showing now to solder.

  • @bluegizmo1983
    @bluegizmo1983 4 года назад +36

    Years ago, I had a car with a broken ignition key lock, so it could be started with any key. Rather that replace the ignition key lock I installed a hidden matrix keypad that acted as a starter bypass system so the car couldn't be started unless you entered the code on the hidden keypad first. Yes, it would've been easier to just replace the ignition key, but it was way cooler to have a hidden keypad to start the car lol

  • @robertb2350
    @robertb2350 4 года назад +1

    Kudos to this channel for finally ditching the two camera setup during the show. Now the show can get it's 5 star rating it deserves.

  • @electronic7979
    @electronic7979 4 года назад +18

    It was a useful and educational video. I watched every second with pleasure.

  • @carlgradolph9676
    @carlgradolph9676 4 месяца назад

    Thanks for producing an easy-to-follow introduction to matrix keypads. The combination lock project nicely illustrates how data entered on a keypad can be used to make something happen. I can imagine a number of useful ways to expand the sketch.

  • @fury4076
    @fury4076 4 года назад +52

    How people gives thumbs down? As long as people give effort you should appreciate it, especially for this kind of project. Look how he present and Explained it well ⚡ Be kind, spread love

    • @gregclare
      @gregclare 4 года назад +8

      ADRIAN ALOLOD Totally agree. The problem is that there are people out there who have nothing better to do than give instant thumbs-down. I think mostly they are just sad soles who perhaps are jealous of the great work productive RUclipsrs do. Knowing this, you should always just consider the *ratio* of thumbs-up to thumbs-down. ie. Not just notice that a few sad soles have hit thumbs-down. Another good reason to always thumbs-up a video you liked, or even just considered was a pretty good effort. :)

    • @fury4076
      @fury4076 4 года назад +6

      @@gregclare For me, He deserved a lot of subscribers more than to the youtuber who always have a freaking loud music on their video.

    • @TheJimtanker
      @TheJimtanker 4 года назад +3

      I was just thinking the exact same thing. This is a great tutorial. I've been thinking about doing something like this but with an RFID added in to determine users.

    • @TimEckel
      @TimEckel 4 года назад +1

      @@TheJimtanker But I believe this is the incorrect way to interface with these keyboards as it requires too many pins. A better tutorial would be using a resistor array so you only need a couple pins.

    • @TheJimtanker
      @TheJimtanker 4 года назад

      @@TimEckel Do you know where there's a tutorial on that?

  • @Coolarj10
    @Coolarj10 4 года назад +3

    You are amazing - your videos are SO good!! Each and every one of them is pleasant to watch/listen to, clear, detailed, and very step-by-step with no missed steps in between! Thank you!!

  • @monkeymanstones1
    @monkeymanstones1 4 года назад

    Adsense owes you for 2 commercials I watched before the video started.
    Thanks for making this video. I can now use my large number of these 16 button pads I recieved with my many Gizmosphere Gizmo 2's.
    What I'd love is a video showing how to use the pad, 4 or so air quality sensors and a (I think it's a DHT11) Temp & Humidity sensors to be able to have the display switch between the sensors based on the button I press on these keypads.
    Thanks again for this video!

  • @FoxAndHenForge
    @FoxAndHenForge 4 года назад +1

    Thank you! I was having issues with entering multiple digits in a row but you answered all my questions there!

  • @tubeDude48
    @tubeDude48 4 года назад +3

    As always, *GREAT* *JOB Bill* !! For those that don't know, you might have explained the 2 jumpers on the I2C module and the one on the Relay.

  • @2150dalek
    @2150dalek Год назад

    Thank you for the instructional video. You saved me from purchasing a computer manufacturer's $25 keypad which is more or less the same thing as a $3.99 one.

  • @MrWATCHthisWAY
    @MrWATCHthisWAY 4 года назад +1

    Love your channel, your work shop, each lessons and the fact that you teach everyone who knows little to absolutely nothing about electronics & electricity. Your explanations and real world applications make your lessons even more useful and enjoyable to your audience. I too use the female to male Ribbon Cables to make connections in the same fashion as you do, but I’ve found that cheap ones have minimal contact on their respective sides and have caused more problems and made bad connection when using them. I only purchase quality ribbon cables from now on because of these problems created. You mentioned that we could use any pin for signaling the Solenoid controller and you chose pin 13. I’m guessing any pin that is still non-designated unless we rewrote the software code to allow for double usage! I’m fairly new to code writing as you can read from my question. Have a long history with electronics & electricity but interfacing the coding is still a challenge for me. But with your tutorial I’m moving at a faster pace now and for this I thank you for all that you make available to us. Great job and I’m constantly going back over and rewatching all your tutorials. If only my workbench and area look like yours? To have power coming from a outlet on the back face of your workbench. Now that would be something, and maybe you could show us how you developed your workstation? It truly is something to be proud of!!! Love you work and never miss any or your video’s because there is always something new to learn even though I’ve been at this for awhile!!!

  • @u-bloxi-parry4042
    @u-bloxi-parry4042 4 года назад +18

    Could you please do something for the upcycleing and reusing of salvaged keypads/lcd displays/rotary encoders, ANYTHING that you can salvage from electronics, please??

  • @NortelGeek
    @NortelGeek 2 года назад

    ABCD are part of the AUTOVON military telephone network. It's still there but no longer used very much. ABC and D were usually marked as "Routine, Priority, Flash, and Flash Override", each creating a "precedence" for the call going through. Flash Override was the highest priority call and each of these classifications could "preempt" other lower priority calls on the public network during a disaster or other emergency.
    For the youngsters: Flash wasn't always used for just three-way calls. It was originally used to signal or "recall" the operator after a call to arrange payment for overtime usage or to set up repeat dialing or "sequence calls" which are calls that could be made after the current one without hanging up. After that, Flash (or "Link" on Nortel phones) was used to invoke other automated features, such as conference calling, call waiting and call parking.

  • @bobtail1200
    @bobtail1200 3 года назад

    Im so appreciative of you making these vids. Im leaning

  • @NewAgeDIY
    @NewAgeDIY 4 года назад

    Great weekend lockdown project. Simple and practical. I designed a 3D case that when finished it will house the display and keyboard that will access my backup locking system on my work shed.
    It’s a very easy to follow instructions for beginners or intermediate makers that will showcase how a few bits and pieces can produce a working device. I highly recommend this project.

  • @Richardj410
    @Richardj410 4 года назад +1

    Thanks, I look forward to your videos. Every time I learn something new.

  • @kirkyd123
    @kirkyd123 2 года назад +1

    Thanks so much for the excellent videos you produce! Just enough information, but not too much. Awesome job!

  • @KwanLowe
    @KwanLowe 4 года назад +1

    Your website is most excellent. Thanks for this tutorial. I learned a bunch.

    • @cessposter
      @cessposter 3 года назад +1

      For a single millisecond I thought you said "I learned a book."

  • @johnkidd1694
    @johnkidd1694 Месяц назад

    Exactly what I was looking for. Thanks

  • @PyroRob69
    @PyroRob69 4 года назад

    The only suggestion I would make after completing the testing of this code would be to display an asterisk rather than the number typed in for the password. No need to display it. That kind of defeats it.
    I would also step it up one more step. Add a RFID card reader in addition to the passcode.
    "Something you have, and something you know."
    Hreat video!

  • @RameshKumar-rt8xb
    @RameshKumar-rt8xb 4 года назад

    WHy is this guy so gud in explaining but still don't have muh views??? But he is doing a great job

  • @peters2949
    @peters2949 2 года назад

    Best tutorials on youtube

  • @cyr-il
    @cyr-il Год назад

    Your explanation are really perfect !!

  • @KommaAchtKommaEins
    @KommaAchtKommaEins 4 года назад

    Thanks a bunch. Best information on how the joints work on a matrix keypad. In fact I've been inspired to take some small buttons and create my own 4x3 keypad on a PCB working as a radio transmitter controlling several other Arduinos using an nRF2701 module.

  • @jamesgoacher1606
    @jamesgoacher1606 4 года назад +1

    I will find this useful thank you. The obvious difference would be to print out a row of asterixs instead of the key press but I will think about that.

  • @tedsykora1858
    @tedsykora1858 4 года назад

    Very nice video. I will keep this in the back of my head as something I may use in the future.

  • @moustaphesy3023
    @moustaphesy3023 4 года назад

    I learn much easily through your videos

  • @robertrobert5583
    @robertrobert5583 2 года назад

    Thanks for the tutorial which I found very helpful. Having been puzzled by seeing the "!strcmp()" command, I looked it up and realised that it is "!strcmp" that returns a TRUE if the strings are the same not "strcmp", which surprised me but then the code made sense.

  • @Thebasicmaker
    @Thebasicmaker 3 года назад

    I'm going to use this setup with the rotating Lidar that you introduced in a past video!

  • @Headmastar
    @Headmastar 2 года назад

    Thanks for generous delivery of info. EAZY.

  • @chuckhole
    @chuckhole 2 года назад

    Your videos are always understandable and informative. Thank You!
    This would also make a good dummy security device by not connecting it to a locking device and simply replying "Incorrect Password" after any entry. Of course, that means using the old keyed lock-set as usual, but you might keep some burglars busy for a while trying to enter a non-existent password.

  • @muhammadrafiqulislamkhan6994
    @muhammadrafiqulislamkhan6994 3 года назад

    You are really good explainer. Your valueable video to teach us to learn Arduino code and make a project. Thank for sharing

  • @nara49veera12
    @nara49veera12 4 года назад

    Very good explanation and demonstration

  • @cyprusnz2597
    @cyprusnz2597 2 года назад

    I love your tutorials! Thanks alot

  • @damofx
    @damofx 4 года назад

    Stay safe too man, you're doing a fantastic job!

  • @muhammadbilal2000
    @muhammadbilal2000 4 года назад

    Thank you so very much for the amazing video with a simple explanation.

  • @stevetobias4890
    @stevetobias4890 4 года назад

    Yet another great video. Thank you for sharing your expertise to newbies like me.

  • @attilaszep3316
    @attilaszep3316 3 года назад

    Thank you very much for your project. Completely clear.

  • @torfinnsrnes6232
    @torfinnsrnes6232 4 года назад +1

    What about pullup resistors and keypad? I should not be neccesary according to the keypad library documentation. Still I get random keypad inputs. I added some 10 k pullup resistors as well and it improved. But I still get some random keypresses. My project is a water meter with keypad, water sensor and display. Enter wanted amount in liters and start pump. Stop when reached. It works great most of the time. It is built in a cabinet with lots of relays.

  • @tpobrienjr
    @tpobrienjr 4 года назад

    As always, you have explained well. Thank you.

  • @محمدقيسحسينفوزي
    @محمدقيسحسينفوزي 3 года назад

    you have great way to explain. thank you

  • @RandomValueToBe
    @RandomValueToBe 4 года назад

    Sir please keep going with the good work. I really love your videos

  • @siralone3646
    @siralone3646 2 года назад

    thanks, best video about keypad :)

  • @stevegoforit.9912
    @stevegoforit.9912 4 года назад

    I have seen many of your videos and enjoy them very much. Being new to this hobby I remember watching a video of yours explaining how resistance can determine what key was pressed. It seems you could do the same with this keypad . this post was inspired by one of your previous videos and I very much like them all thank you.

  • @walterp7125
    @walterp7125 4 месяца назад

    Really nice! Thank you sir !

  • @snehashishbanerjee2575
    @snehashishbanerjee2575 4 года назад

    Your videos are always awesome! Love this one too..!

  • @practicemakesbetter7132
    @practicemakesbetter7132 4 года назад

    A very nice and thorough video as usual!

  • @francisleesc
    @francisleesc 3 года назад

    Thank you for the demo!👍👍👍👍👍👏👏👏👏👏👏🙏🙏🙏🙏

  • @cosmikodes
    @cosmikodes 4 года назад

    Sir you and your videos are just marvellous

  • @herok4306
    @herok4306 3 года назад

    It was extremely useful to me...Thank You sir..

  • @far-red
    @far-red 4 года назад

    as of 6 june,
    1. The library for LiquidCrystal I2C is in library, just search for 'LiquidCrystal I2C' and select the library indicates by ' Frank de Brabander' > points to the same gitlab as mention here.
    2. For newbie like me, the address 0x3F did not work, also im using a CLONE arduino UNO, so SDL & SDA is not (pin 4 & 5), there is apparently a dedicated pin for (SDL & SDA), just sharing incase ur using the same clone uno board as me.
    3. To get the address of my 12c, there is an example called 'i2c_scanner' that u can find under File > Example > Wire, run that and it tell u in serial monitor screen "I2C device found at address 0x27 !
    ", so for me, my i2c is '0x27', if you cant make it work, try that.
    i'm only at 13:20, and i'm learning so much (thank you Bill) i actually bought the (keypad and LCD with i2c) maybe month ago, did not use it (as i did not know how to and i guess not yet motivated to start, this video has helped alot)

  • @tahevol
    @tahevol 4 года назад

    Great presentation, as always

  • @leiflindqvist9095
    @leiflindqvist9095 4 года назад

    Excellent tutorial, thanks!

  • @3dtechcrafts493
    @3dtechcrafts493 4 года назад

    good and clear information,thank you

  • @mikhapichkhadze2885
    @mikhapichkhadze2885 4 года назад +1

    Very interesting thank you for this video

  • @riggz7683
    @riggz7683 4 года назад

    Thank you. Amazing tutorial

  • @Leroys_Stuff
    @Leroys_Stuff 4 года назад

    Thank you Bill great video

  • @chivainmanfoumbi9026
    @chivainmanfoumbi9026 3 года назад

    this video is just GREAT !!!!! thanks a lot.....

  • @patrickmaartense7772
    @patrickmaartense7772 4 года назад +1

    well explained, good content

  • @G_aaron
    @G_aaron Год назад

    Wonderful presentation thanks

  • @MyOwntuahur
    @MyOwntuahur 4 года назад +1

    Thanks for this useful post.!!!

  • @avejst
    @avejst 4 года назад

    Nice projects
    Thanks for sharing 👍😁

  • @stefanvanraemdonck9054
    @stefanvanraemdonck9054 4 года назад

    You can also put an extra count in the 'incorrect password' section. If the count reaches, let's say 5, then the program goes into an infinite loop. Offcourse you need to reset that count in the 'correct password' side

  • @vhieltechhub254
    @vhieltechhub254 2 года назад

    thank you this is is very informative

  • @abshproelec4537
    @abshproelec4537 4 года назад

    Thank you for this crystal clear video. I guess the keypad library includes a debounce routine so multiple keypresses are not detected ?

  • @jameswesthoff2410
    @jameswesthoff2410 4 года назад +2

    Thanks for the awesome video, Bill.!! Are you planning any more DB1 videos in the near future? Stay safe.!!

  • @Waltkat
    @Waltkat 4 года назад

    Thank you for another great video tutorial. And that CircuitBasics website is a great resource for both Arduino and RasberryPi.

  • @qzorn4440
    @qzorn4440 3 года назад

    sweet vid... i would like to use may be this matrix membrane keypad or just a 4 button version to tell the Arduino to output usb windows PC F11 F12 function key commands to control pause/run Bandicam software and change the regedit registry file to run/pause (0 or 1) of a second program syncing the 2 together? now to make it happen? suggestion... thanks a lot...:)

  • @superabbasalmani6079
    @superabbasalmani6079 4 года назад

    The best @ Teacher & Technician ! 📺🕵️‍♂️🌍🆗🥳🆔🗣🤖🌈🌻

  • @zoltonsuma3281
    @zoltonsuma3281 3 года назад

    Hi, im doing my final year project m wondering if it's possible to have two separate pass code to actuate the solenoid?

  • @T1MB05L1C3
    @T1MB05L1C3 Год назад

    If we are already using pin 2 for something else, can we move the pins up 1 (i.e. D10 down to D3?) and just change the definitions in the code?

  • @ze_das_maquinas
    @ze_das_maquinas 4 года назад

    Congratulations for this vídeo, very good lesson. Thanks!

  • @mortel1513
    @mortel1513 3 года назад

    can somebody tell me the connection layout 6:30 for a NodeMCU 8266?

  • @alfredsivanzire3552
    @alfredsivanzire3552 4 года назад +2

    You're the best.

  • @darrell2150beta
    @darrell2150beta 4 года назад

    Can the pins being used by the TFT screen be utilized if using a breakout board? Dual usage on the pins as it were.

  • @phoenixpiano2233
    @phoenixpiano2233 4 года назад +1

    Why can't we use pin 13 for the keypad? It doesn't work when I use it as any of the row or column pins

  • @tonybuckley3905
    @tonybuckley3905 10 месяцев назад

    excellent video

  • @SirDzair
    @SirDzair 3 года назад +1

    I truly appreciate this tutorial !
    but is there a way to implement shift registers with keypads in order to free up some pins ?

  • @vikgochannelKLT
    @vikgochannelKLT 4 года назад +1

    Mudah dipahami videonya,dan terimakasih atas programnya

  • @ezrabarnes3765
    @ezrabarnes3765 3 года назад

    if i dont have a backpack for my LCD is there something else I could use to connect it to the arduino?

  • @maxlindstrom5435
    @maxlindstrom5435 4 года назад

    Connect the Keypad to a I2C - PCF8574 and you can save a lot of input ports on the arduino board :)

  • @Dekan88
    @Dekan88 2 года назад

    Hi, Thank you for your videos. I found that I had to switch lcd.backlight(); and lcd.init(); to get my display to work. So lcd.init(); had to go first before lcd.backlight(); in this order.

  • @dennissmithjr.5370
    @dennissmithjr.5370 4 года назад

    Cool video, thanks.

  • @andreamitchell4758
    @andreamitchell4758 4 года назад

    i still don't really understand C so if i wanted to add a piezo electric disc and i wanted to have it emit a tome whenever a key was pressed where would i add that bit of code ? i know there are active and passive "buzzers" not ifa piezo disc is considered active or passive
    i did play around with some sketches for making a piezo disc emit tones before one that made it play SMB theme and i used a converter too to convert some other stuff for it to play, but i am not sure how i would ad code to the sketch to make it beep for every key press and emit tomes for a correct entry and a different tone for an incorrect entry

  • @ivogiaconi7084
    @ivogiaconi7084 3 года назад

    Good morning
    I wanted to know why when I check the skech it tells me customKeipad was not declared in this scope someone can tell me thanks. Congratulations on the very interesting and intuitive video

  • @franciscodiniz7140
    @franciscodiniz7140 2 года назад +1

    Hello sir, I´m doing a project for school and this code would really help me out I was wondering if I could use this code?
    All credits to you in my report.

    • @villocity5794
      @villocity5794 2 года назад

      i dont think he even made the code

  • @flyingsalmon
    @flyingsalmon 3 года назад

    Thank you for your very informative and patient explanations. I am a bit puzzled by the lamp connection and the relay. I have a relay module that comes with Egeloo Super Starter kit and it seems to have the same model number, but I see in your video, it's mounted on a different controller...what's that controller (Q1)? (so I can locate it in my kit or purchase it). And secondly, what is the lamp model (Q2)? and how is that connecting to the unknown controller that relay is sitting on (Q3)? There seems to be 2 wires from that controller...one of them to the lamp which is going to 12V DC (we don't have 12v on UNO R3). Your setup is cool but we don't have such setup for educational purposes...could you explain how we can achieve this economically? (I already have connection to keypad and other modules such as buzzers and displays working). Many thanks in advance. Hope you're still around on RUclips!

  • @MohamedGamal-mp6kc
    @MohamedGamal-mp6kc 4 года назад

    thanks very much its very useful

    • @puneethkumar703
      @puneethkumar703 4 года назад

      Please follow this link for an online Arduino simulation

  • @ghosthuntergr
    @ghosthuntergr 3 года назад

    Hi if I want to connect an old matrix keyboard from an old pc that has 8x11 matrix what is the best way to do it?

  • @GB-ST
    @GB-ST 3 года назад +1

    how can I know what the I2C address of my keypad is? thanks

  • @TheAvproman
    @TheAvproman 4 года назад

    This is a great presentation! Have you demonstrated using a RF ID module?

  • @senpuuxd1032
    @senpuuxd1032 3 года назад

    Great video
    can u make project with arduino uno fake bomb for airsoft/paintball

  • @thomassaook7787
    @thomassaook7787 3 года назад

    awesome job, but would you please provide code for the door lock application using the normal 16*2 LCD that is not of type I2C?