Knock Lock - Trinket

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
sgmanager
 
Posts: 1
Joined: Wed May 27, 2015 2:02 pm

Knock Lock - Trinket

Post by sgmanager »

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!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

The tutorial gives this startup sequence:
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.
Does the solenoid click open twice?

The red led just flashes, right?

Can you post some detailed pictures of your wiring?

Did you modify the sketch at all?

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

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

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

Can you post some pictures of your setup and wiring?

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

Hi, thanks for replying. :) In fact, i have used solderless breadboard. Would be any problem with that?

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

Below I have provided the sketch. Please confirm me if everything is ok. Im using a 5V Adafruit Trinket.
Attachments
Untitled.png
Untitled.png (60.36 KiB) Viewed 369 times

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

There is a little mess but have a look of the project and please give me a feedback.
Thanks
Attachments
11903579_971373456255065_1884715266_n.jpg
11903579_971373456255065_1884715266_n.jpg (74.05 KiB) Viewed 359 times

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

Second view of the project
Attachments
11855340_971373562921721_840911118_n.jpg
11855340_971373562921721_840911118_n.jpg (64.75 KiB) Viewed 359 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

That breadboard has a split power rail. Make sure you are bringing power over to the side of the breadboard with the solenoid.

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

What do you see happening if you press the program button?

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.

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

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.

User avatar
Gerald_93
 
Posts: 10
Joined: Fri Jun 19, 2015 1:29 pm

Re: Knock Lock - Trinket

Post by Gerald_93 »

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 ?. :)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Knock Lock - Trinket

Post by adafruit_support_rick »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”