Home Creators Posts Import Register Favorites Logout

Content

In this video, I'll show you how to combine several components that I've demonstrated in previous videos into a "pincode puzzle". It uses:

- a 3x4 Keypad input (see https://www.patreon.com/posts/everything-you-16760864 for more information)

- a 4-channel relay module (see https://www.patreon.com/posts/everything-you-15808925 for more information)

- a TM1637 4-digit 7-segment LED display (see https://www.patreon.com/posts/everything-you-16313103 for more information)

In the puzzle, the player can enter a four-digit code on a keypad, which will be displayed on an LED display. If the code entered matches one of the preset PIN numbers assigned in the Arduino code, the Arduino will activate/de-activate the corresponding relay (which, in turn, can lock/release a maglock etc.). The number of codes, the length of codes, and the function they perform can be completely customised in the code.

Files

Pincode Puzzle

In this video, I'll show you how to combine several components that I've demonstrated in previous videos into a "pincode puzzle" - in which a four-digit code entered on a keypad will be displayed on an LED display. If the code entered matches a preset PIN assigned in the Arduino code, the Arduino will activate/de-activate one of four relays (which, in turn, can lock/release a maglock etc.)

Comments

Bizzaro.

If I wanted to be able to have someone program a custom code(s) using the keypad how would that be done? (EG: They would be setting up their own passcode themselves)Would it use EEPROM or some other method?

oleg ardassov

Hello, can you help me please. I cannot get TM1637 library working. I use ide 1.8.5. When i use your code he cannot get TM1637 library working writes maintainer file not found.

oleg ardassov

Thank you for your response. But I already tried doing that and he just doesn,t install it. I tried unzip the files and copy them to libraries folder. And when i press manage button in arduino IDE afterwards he gives me this error: Invalid library found in C:\Program Files (x86)\Arduino\libraries\TM1637-master: Missing 'maintainer' from library. I have tried every possible way. I found another TM1637 library. I can install it but when i start uploading your sketch he gives me error on every row where is display code. Those two libraries are different when i open them using notepad. But both doesn,t work for me, and i cannot understand why.

oleg ardassov

As i can see from comments, it seems that I am the only hopeless guy who can,t get it working :))) . This didn,t help either. It seems that I just will have to use this project without display.

oleg ardassov

Sorry, in file it is #include <tm1637display.h> but when i do copy/paste it changes it on #include <tm1637display.h> in comments and i don,t know why</tm1637display.h></tm1637display.h>

oleg ardassov

Sorry my English isn,t the best. What I a trying to say that in cpp file it is already in capital letters. He somehow makes them not capital when i copy or write those as Capital in comment section. I am sorry for bothering you that much.

oleg ardassov

Oh my god I am stupid as hell.I am really sorry. I changed those to #include "TM1637Display.h" and it works. How do i implement it in your pincode puzzle sketch?

oleg ardassov

I will try your other projects and if i get stuck somewhere i will write you. Thank you for your help. I will try making pincode puzzle without display and see if it works. Until i get display working somehow.

oleg ardassov

Hello, I got your project working. I solved the maintainer problem. And it was super small and stupid problem. I just had to add to library properties file email=oleg@oleg.com and maintainer=oleg. And it solved the problem. But I have problem with Shine On project. I would be really thank ful if you could help me with that one. I want to make 2 or 3 sensors u need to shine on or close them at the same time. But modified code, but it doesn,t work. Best Rgds,

Tibor Nagy

Hello, I have followed the instructions, uploaded the code I haven't change anything yet in the code, but when i turn on the power the relay lock for a second then release it self. only one thing is different in my setup is the keypad is 4x4. Could you help me what I could have done wrong? Thanks in advance

Russell Hardman

I did this one last week with no knowledge of arduino or electronics and it worked great. Thanks to your great explanations, it’s really fun and interesting.

Niels Pronk

Hi Alastair, i have I question. Is it possible to make a double password/code. So after the first password, the player must enter the correct second code? Hope you can help Grz Niels

Martin Blumenfeld

Do you have a parts list for this project where I can source everything you used? Or is Amazon or eBay my friend?