Introduction: Arduino - ACCESS CODE PROTECTED 4 CHANNEL RELAY With 4x4 Keypad

Picture of Arduino - ACCESS CODE PROTECTED 4 CHANNEL RELAY With 4x4 Keypad

Hello world! This code is made to put a access code/password protection on your "dangerous" machines in the garage/workplace (For example). To protect your kids from the danger that might lurk in your garage, without the code power cannot be turned on. Hide it in a box that you can lock, put it on the wall and add a little safety to your garage. Of course it can be used to turn on/off anything! Very simple but i'm sure it is useful for many of you.

Usage of the Device.

Pressing: * will turn off everything and go back into NoAccess mode.

A turns on/off relay 1

B turns on/off relay 2

C turns on/off relay 3

D turns on/off relay 4

Default code is: 3241

Follow the next step for the schematic code & Parts list.

PS:

The red led is to notify you that nobody can turn on/off machines. You could reverse this and switch it to pin 10 where the green light is to notify that the devices are still able to be put on by anyone, so the red led warns you the power is still on. While in NoAcces state the Green Led notifys you everything is safe! (Just an idea)

Step 1: Schematic Code & Parts List.

Picture of Schematic Code & Parts List.

Wire it up like the Schematic and it should work after uploading the code.

If not...

You need the following Librarys.

Keypad.h

Password.h

Parts list:

  1. Arduino uno, I used the RobotDyn uno.
  2. 4 Channel Relay.
  3. 4x4 Keypad
  4. Jumper wire set MM/FF/MF
  5. buzzer.
  6. 2 x Leds / 1 green / 1 red.

Good luck!

Comments

LakhvirS1 (author)2017-09-01

Given code showing error .

exit status 1

Error compiling for board Arduino/Genuino Uno.

JR86 made it! (author)2017-06-19

Hello

I Need To Connect Display With It

Plz Help

JR86 made it! (author)2017-06-19

Hello,
I Complete It
But I Need To Connect Display

Please Help
But

Nightwolf1 (author)2017-05-12

buon giorno ho scaricato lo sketch e ho verificato con arduino ma mi da questo errore:

C:\Users\franco\Desktop\FJVXMJBION6N81E\FJVXMJBION6N81E.ino:41:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

Password password = Password("3241"); // change the access code here

come risolvo

grazie mille

firdauszahari made it! (author)2016-09-05

I made it! but how will i get the power source to cut off using arduino?

Hi! Cool......You mean how to add devices to the relays??

About This Instructable

1,951views

44favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
Add instructable to: