A locking chest with a musical key

music-detecting-box

[Basil Shikin] was thinking about different types of locks, and was trying to come up with a locking solution that he had yet to see. It dawned on him that he had never come across a lock triggered by music, so he set off to construct one of his own.

He ordered a wooden chest online, then proceeded to piece together the electronics required for the locking mechanism as well as the music detecting logic. Using an Atmega328P paired with an electret mic, his system listens for a particular tune (the Prelude of Light from the Ocarina of Time) to be played , which triggers a tiny servo to undo the latch. To do this, he implemented a version of the Goertzel Algorithm on the Arduino, allowing him to accurately detect the magical tune by frequency, regardless of what instrument it is played on.

Be sure to check out the video below to see his musical lock in action.

[Read more…]

Adding an electronic lock to a DIY book safe

electronic-book-safe

DIY book safes are well and good, but if you give someone enough time to peruse your book collection, the 3-inch thick “Case study on Animal Husbandry Techniques during the 14th Century” is likely to stand out among your collection of hand-bound “Twilight” fan fiction. In an attempt to teach his friend a bit about microcontrollers and circuits, [Jonathan] spent some time adding a bit more security to your run of the mill book safe.

The pair started out with the time-consuming process of gluing the book’s pages together and creating enough hollow space for both storage and the electronics. With that out of the way, they installed a latch and servo motor inside the cavity, the latter of which is controlled using an Atmega328p with the Arduino bootloader. To gain access to the goodies stashed away inside, Jonathan hooks up a small PS/2 keypad and enters a passcode. This triggers the servo motor, opening the latch.

While the latch likely only adds a nominal bit of security to the book safe, it’s a fun enough learning exercise to justify the time spent putting it together.

Continue reading to see a short video of [Jonathan’s] electronic latching book safe in action.

[Read more…]

Building a combination lock with logic chips

The component gods must have smiled on [Darrell], because he recently ran into a cabinet full of 7400-series logic chips for sale at his local college surplus. All the regulars were there – flip-flops, logic gates, and SRAMs – in DIP packages. the 7400-series of logic chips gets very esoteric as the numbers increased, so when [Darrell] found a 74ALS679 address comparator, he didn’t quite realize what he had. After a quick review of the relevant datasheet he had a fairly good idea of the actual function of this chip and decided to make a combination lock.

From the datasheet, [Darrell] figured out how this small logic chip can compare two 12-bit addresses with only 20 pins: each of the 12 address pins are hardwired to match a single four-bit value. If the four-bit ‘key’ is set to 0110, the first six address pins are tied low, and pins 7-12 are tied high. After wiring up his address comparator to a trio of Hex dip switches, [Darrell] had a combination lock that used the word ‘FAB’ as a key.

In the 7400-series of logic chips, there are some oddballs; the 7447 seven-segment display driver is useful, but the 74881 ALU and 74361 bubble memory timing generator aren’t exactly something you would find in a random component stash. If you’ve got a weird logic chip build (there’s a 300-baud modem, you know), send it on in. You can check out an animated gif of [Darrell]’s lock after the break.

[Read more…]

Hackaday Links: Leap Day, 2012

The Earth orbits the Sun every 365.256 days. Because this number isn’t a whole number, an extra day is tacked onto February every four years, unless the year is evenly divisible by 100, except in cases where the year is divisible by 400, or something like that. To commemorate this calendar hack, here’s some stuff that has rolled in over the last week or so.

Marble sequencer

[Brian] sent in this marble-based sequencer that sounds like someone is running MIDI into an Atari 2600. There are photoresistors in there somewhere, and it really reminds us of those thingamagoop robots.

YouTube CLI

[Mike] uses YouTube as his music library. While this is a perfectly acceptable way to listen to music, the user interface is terrible. To solve this problem, [Mike] is downloading videos from the command line, automagically converting them to MP3, and playing them over speakers. It works well with SSH, so we’ll call this a win.

Key card lock

[valenitn] just joined the MIT Media Lab, but something was terribly wrong with his keys – an ID card was required to get into the building, but a key was necessary to get into his office. He doesn’t need the key anymore, at least since he modded his office door. Check out the video.

Pop Tart Cat is everywhere

[skywodd] saw our writeup on the Maximite Basic computer and figured he could send in a project he’s been working on. He programmed his Maximite to sing the nyan cat song and then created a BASIC music player. Nice job, [skywodd].

Not sure if brilliant or insane

[Vikash] ran across a forum post where a user named [I Shooter] describes his setup to dual-boot Windows and Linux: [I Shooter] connected data cables to a pair of SATA hard drives, one loaded up with Windows, the other with Linux. The power cables are switched using relays so only one drive is powered at a time. [I Shooter] gets a ton of points for creativity, but there’s a reason this brute force hardware dual-boot setup isn’t more common. We wish there were pictures of this one.