Hi,
I am having issues with the knock lock https://learn.adafruit.com/secret-knock ... k/overview
I can upload the code without any error messages. The board is wired according to the diagram.
When I power on the unit the red LED flashes and continues to flash. The solenoid does open and close when power comes on and off, but nothing else responds.
Just looking for suggestions!
Thanks!
Knock Lock - Trinket
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
The tutorial gives this startup sequence:
The red led just flashes, right?
Can you post some detailed pictures of your wiring?
Did you modify the sketch at all?
Does the solenoid click open twice?Startup:
The Trinket's green power LED will light up.
The Trinket's red LED will light up.
The solenoid lock will click open twice. (First really quickly, the second time for about a second or two.)
The Trinket's red LED will turn off and the lock will close.
The red led just flashes, right?
Can you post some detailed pictures of your wiring?
Did you modify the sketch at all?
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
Hi, I hope you are doing well.
Please can you help me with Secret Knock Activation Key? I have upload the code without errors and when i plug in the adaptor only the piezo makes sounds, the solenoid doesn't move. Can anyone help me about what should i do?
Thanks
Please can you help me with Secret Knock Activation Key? I have upload the code without errors and when i plug in the adaptor only the piezo makes sounds, the solenoid doesn't move. Can anyone help me about what should i do?
Thanks
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
Can you post some pictures of your setup and wiring?
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
Hi, thanks for replying. :) In fact, i have used solderless breadboard. Would be any problem with that?
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
Below I have provided the sketch. Please confirm me if everything is ok. Im using a 5V Adafruit Trinket.
- Attachments
-
- Untitled.png (60.36 KiB) Viewed 370 times
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
There is a little mess but have a look of the project and please give me a feedback.
Thanks
Thanks
- Attachments
-
- 11903579_971373456255065_1884715266_n.jpg (74.05 KiB) Viewed 360 times
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
Second view of the project
- Attachments
-
- 11855340_971373562921721_840911118_n.jpg (64.75 KiB) Viewed 360 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
That breadboard has a split power rail. Make sure you are bringing power over to the side of the breadboard with the solenoid.
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
yes i checked that, but the same problem. The red light start pulsing constantly and piezo makes sounds according to the light and the trinket doesn't care about the knock.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
What do you see happening if you press the program button?
It should do this:
It should do this:
Startup:
The Trinket's green power LED will light up.
The Trinket's red LED will light up.
The solenoid lock will click open twice. (First really quickly, the second time for about a second or two.)
The Trinket's red LED will turn off and the lock will close.
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
When i press program button the green LED light up, the green light up twice until i hear the piezzobuzer sound. But i don't notice the lock moving.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
You should try to re-do your wiring - make it a little neater. You may find that you have a wiring error. I can't really see anything in the pictures.
- Gerald_93
- Posts: 10
- Joined: Fri Jun 19, 2015 1:29 pm
Re: Knock Lock - Trinket
This project is awesome, i fixed the problems. Now it can sense the knocks when I press the reset button and unlock the solenoid when i put the right pattern. There is some delay when I plug in the adaptor, can this be fixed from the code ?. :)
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Knock Lock - Trinket
Do you mean a delay when you first apply power to the Trinket? That is the bootloader delay. There is no way to avoid it.
Please be positive and constructive with your questions and comments.