Arduino Door lock with keypad + LCD + Solenoid/Relay

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • Hello, in this tutorial I make a door lock project based on Arduino UNO board + LCD i²c + pushbutton (to open from inside) and for the lock I'll be using a solenoid driven by a mosfet transistor or a relay, and it depends on your system you'll chose whatever suits your project, also for the code you can change it by the keypad only, and it will be stored on the EEPROM, so even you turn off and on your Arduino, the new code is still the correct one.
    If you have any problem, you can contact me via FB page, or comment down below.
    Wiring and codes:
    surtrtech.com/2019/04/12/ardui...
    Arduino Door Lock playlist:
    bit.ly/2GcKT1w
    Arduino Modules playlist:
    bit.ly/2Dh4pJC
    Arduino Projects playlist:
    bit.ly/2Fxm2Y7
    Arduino Shields playlist:
    bit.ly/2APsndI
    Facebook: / surtrtech
    Twitter: / surtrtech
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 40

  • @omsure4332
    @omsure4332 5 ปีที่แล้ว +3

    U can change password without change in arduino without using laptop that's best thing I was finding the same one from many days that I got it today
    Thanks brother
    😊😊☺

  • @Heggie93
    @Heggie93 4 ปีที่แล้ว

    Would it be easy to add leds and a buzzer? Also swap out the key pad for an RFID?

  • @kimlonglieb8227
    @kimlonglieb8227 4 ปีที่แล้ว

    thank teacher

  • @user-jy3hq8vo3m
    @user-jy3hq8vo3m 5 ปีที่แล้ว

    thanks

  • @mahmoudmahamed3239
    @mahmoudmahamed3239 3 ปีที่แล้ว

    I made a door lock system with relay connected to the solenoid it's almost the same but without push button and resistor so I want to know which part of the code should i change to make it work with my project

    • @SurtrTech
      @SurtrTech  3 ปีที่แล้ว

      The button just opens the lock from the inside, if you remove it you can keep the code as is it no problem...

  • @anonymousthings6995
    @anonymousthings6995 4 ปีที่แล้ว

    Hi, I dont have LCD like you, can I just use regular LCD(16pins) for this project?

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Of course you can do it but you should reduce pin numbers... You can use the "one wire" method for the keypad.

    • @anonymousthings6995
      @anonymousthings6995 4 ปีที่แล้ว

      @@SurtrTech what do you mean by one wire keypad? 😅 sorry I'm still new in this things 😅

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Well if you check the wiring you'll see that there's no enough pins to add a standard LCD screen since it requires about 6 digital pins... So you can make the keypad as one wire only, you can look it up, you'll just need some resistors and you'll wire it with an analog pin, but you'll have to do a lot of changes in the code too.
      You can use an Arduino Mega if you want you'll have to rearrange the pins and don't forget the correct libraries and codes that you have to chose.

  • @OluwaseunAdenipekun
    @OluwaseunAdenipekun 5 ปีที่แล้ว

    What can I use to substitute MOSFET IRF510N if I can find one, please reply.

    • @SurtrTech
      @SurtrTech  5 ปีที่แล้ว

      You can use an optocoupler just look for one which diode forward voltage is 5v or below if it's below add a resistor to divide the voltage, also check the collector-emitter max voltage it should be higher than the solenoid power voltage.
      You can use a bipolar transistor but you'll need to add some resistors.
      Other MOSFETs can do the work
      For MOSFETs always check for the Voltage (Gate-Source) it should be 5 or 4V at typical, so it can be triggered by Arduino 5V, and check for the Max Voltage (Drain-Source) it should be higher than the solenoid voltage this one has 100V.
      For the bipolar ones you should consider the solenoid current, and do few calculations to find the correct resistors to use

  • @leonardcainguitan7863
    @leonardcainguitan7863 4 ปีที่แล้ว

    Good day sir... What if i dont have the irf 510n transistor.. Can i use rif520 is it possible

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Yes just check the Vds(should be higher than the solenoid voltage) and Vgs(around 5v)

  • @leonardcainguitan7863
    @leonardcainguitan7863 4 ปีที่แล้ว

    Good day sir.. What if the powercut off.. While using ac adapter for arduino how can automatically switch into dcpower...

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      You can add an automatic power source selector, which is a project on itself.

    • @leonardcainguitan7863
      @leonardcainguitan7863 4 ปีที่แล้ว

      @@SurtrTech can you trY it sir plzzz.. I dont know how to do that sir...

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Sorry I've never made one, but you can check around there good examples, search for Arduino backup battery/power...

    • @leonardcainguitan7863
      @leonardcainguitan7863 4 ปีที่แล้ว

      @@SurtrTech good day sir... Can you please show the connection between the relay and the solinoid... Sir.. Because the it is not working .. Sir

  • @leonardcainguitan7863
    @leonardcainguitan7863 4 ปีที่แล้ว

    Good day sir what is the value of your resistor

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      I can't remember it's just a pull down resistor you can use 100 O 200 O 1k 4.7k 10k...

  • @InezAtalika
    @InezAtalika 4 ปีที่แล้ว

    sir what type of solenoid do you use? please notice me :) thankyou sir..

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      12V 0.4A Solenoid door lock...

    • @InezAtalika
      @InezAtalika 4 ปีที่แล้ว

      @@SurtrTech can i use 12v 1A sir??

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      @@InezAtalika Yes, the transistor I used can support up to 5.6A... Check your transistor data sheet if you're using another.

    • @InezAtalika
      @InezAtalika 4 ปีที่แล้ว

      @@SurtrTech thank you sir for your answer is very helpful🙏

  • @yogeshitaliya473
    @yogeshitaliya473 5 ปีที่แล้ว

    😍😍😍😍😍

  • @DillonGaming036
    @DillonGaming036 5 ปีที่แล้ว

    Hey man it is giving me this error
    Keypad_doorlock_relay:50: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int)'

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว +1

      Sorry for being so late, I didn't get the notification, this is a library problem, either you didn't install it or you already have one that's not compatible with this function, so you either install it or adapt the code to the library you use.

  • @daviddafeng896
    @daviddafeng896 4 ปีที่แล้ว +1

    Please someone should come to my rescue, the code is giving me error when compiling.the error is as shown below
    no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int)'
    What could be responsible.

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว +1

      Hello, sorry your previous comment was on hold, as I told you it's a library (LCD) problem delete the others or adapt the code to the one that you use

    • @daviddafeng896
      @daviddafeng896 4 ปีที่แล้ว +1

      @@SurtrTech Thanks sir, i delete other library and it compile successfully

    • @fadzilnoor74
      @fadzilnoor74 4 ปีที่แล้ว

      @@daviddafeng896 hello sir, how u remove other library?

  • @albyaleachannel1571
    @albyaleachannel1571 4 ปีที่แล้ว

    Bagaimana kalau ada pemadaman dari pembangkit listrik

  • @user-cw6vc5dj6o
    @user-cw6vc5dj6o 4 ปีที่แล้ว

    what the white board name?

    • @SurtrTech
      @SurtrTech  4 ปีที่แล้ว

      Just look for mini or tiny breadboard...

  • @theeleganttv3608
    @theeleganttv3608 4 ปีที่แล้ว +1

    The link of the code doesn't work please send it in email