3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Cryptap: A rhythm-based door lock

Step 3Circuits

Circuits
«
  • 1218091550-00.jpg
  • 1218091551-01.jpg
  • 1218091552-00.jpg
  • 1218091551-00.jpg
To control the door strike, I used the relay I found in the coffee percolator. This relay needed more than 5V TTL to drive it, so the sn754410 was used to translate TTL to 19V, which drove the relay. The sn754410 is really a quad half-H driver, so I was wasting 3/4 of the chip, but I didn't have any power transistors, so that's what I used.

The sn754410 chip has two VCC pins, one for 5V, the other for what ever voltage you want to come out, which was 19V for me. It's a really cool chip. You can use this to drive motors and relays directly, because it can switch 1A per quarter chip and has built-in protection diodes. Take a look at the datasheet. In my circuit, I connected the sn754410 directly to my Teensy's output pin.

Buttons are connected as active-low, which is very common for microcontrollers. They are directly connected to the Teensy, which means I have to do debouncing in software.

The status light is connected to the Teensy through a 1K ohm resistor; nothing special.

The circuit worked without capacitors, but I put them in anyway just in case. There are protection caps on both the 19V and 5V power rails to ground.

While programming the Teensy, 5V came from the USB, but when it's running on its own, the power comes from the laptop power brick.  When I connected the 7805 regulator directly to 19V, it got REALLY hot, so I put in a network of resistors to limit the input voltage and current to the regulator. This was a kludge, but now everything is at a manageable temperature.



« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:MusashiAharon