Simple motion detector and alarm


[John] sent us this nice little project. He shows us how to create a motion activated alarm that plays the Mario Brothers theme and flashes some lights. He’s using an ATTiny13a for the brains, and a cool mario mushroom candy tin for the body. You can see it in action after the break.


  1. landon says:

    looks like a pretty cool project but is there a real practical use for it?

  2. Pilotgeek says:

    @landon: It’s people like you that make me sad. I once built a robot that rolled around avoiding objects. Some said it was cool, some said it was cute, and some asked “what’s the practical purpose?”. I could say to further my knowledge of electronics, or to practice soldering, but really, I don’t need a reason to make stuff because it’s a fun hobby. Thumbs up to whoever made it, it’s awesome =D. Hacks don’t need to be practical. Why are you on this site??

  3. john says:

    @landon – yeah not really but i think this will be fun toy to have in my cube.

    i sinked so many hours and have worked on so many projects that have been much less practical than this ;)

  4. landon says:

    @pilotgeek: i was just asking if there was a practical use for this sort of thing, maybe someone could spark my interest so i have a reason to build one. i love this site and it always give me ideas i never wouldve thought of for projects. it was just a simple question, no bashing intended.

    @john: i totally agree this would be a neat thing to have around the office and thats the kind of response i was looking for. thank you.

  5. Haku says:

    Make the motion sensor wireless, make a few of them and hide them around the area of your cubicle/outside your door etc. to make an early warning system for people coming to see you.
    Correctly set up it should give you enough time to to hide, or pretend not to be there (ignore knocking on the door), or stop playing that game and load up the wordprocessor (or whatever program you work on) etc.

    Something I want to do is a neat trick I saw on “Burn Notice”, he hooked a motion sensor into a pre-pay mobile phone so when someone got close to the house his phone went off. And because you don’t answer it, it won’t cost you call time so long as the phone company doesn’t cancel the sim.

  6. sly says:

    heh… awesome… the music needs to be fine tuned, but hey… that’s just code tuning. nice setup.

  7. daryl says:

    Who wants to build the motorized shark fin “Jaws” version?

    Great project, love the idea.

  8. spadefinger says:


  9. DarkFader says:

    Last time I made an alarm, quality control went nuts. A mario tune is hardly an alarm but I guess it can be used to notify you when the boss is coming to check up.

  10. Avertedd says:

    Отлично написано. Позитива конечно не хватает, но читал на одном дыхании

  11. 36Chambers says:

    I second the shark fin approximation. Floating,and waterproof, with Jaws Soundtrack, weighted on bottom to keep upright sharks fin.

    Also, is there such a thing as a toy RC sharks fin?
    And when I post such great ideas as the one above ^, does that give me copyright or patent pending?

    What im asking is, is what I post on the internet admissible in court for proof of ownership of ideas/concept patent litigation? Are we protected at all from corporations trolling the net jacking our wisdom?

  12. Hackius says:

    36chambers: no. Corps do what they want and get away with it.

  13. 36Chambers says:

    there goes my whole rc shark fin idea….lol

  14. strider_mt2k says:

    Indeed, this may be a simple project, but it demonstrates how something can be done.

    One can always think about swapping out one component or another or changing the design to suit a different purpose, but that’s the _point_ of sharing this stuff!

    It’s not just the direct effect, but the ripples of creativity and thought that it creates as well.

  15. Mutant says:

    Lol.. I have that tin.

  16. lmaia says:

    Most old models using old wired headsets can redial last number in memory using just signal (as you’d do in headset pressing button for a few secs).

    Just take a glance at

    Emulate it and have fun!

  17. Coolz says:

    coolz sun of the bxxxh

  18. draeath says:

    Re: Avertedd

    For anyone who can’t speak Russian (courtesy of google):

    Отлично написано. Позитива конечно не хватает, но читал на одном дыхании
    “Excellent written. Certainly not positive enough, but read in one breath.”

  19. ashish says:

    How i can construct a simple motion sensor,WITH a alarm and light snsing too.

  20. Eric says:

    Practical purpose? I’m building this so I can instantly know when my dog’s getting his fix on cat litter box treats.

  21. Andrew says:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 96,376 other followers