Electric roach motel

[Luhan] built this PIC controlled roach motel. It’s the first micro-controller project that I’ve seen devoted to exterminating a member of the insect world. A PIC 16F675 is used to generate 10 pulses at 400 volts per second. Crispy.


  1. tony says:

    haha, thats so cool. not only is high voltage involved, but you get to kill something with it

  2. The Steven says:

    My friend has a “mouse problem”… maybe I’ll up the voltage a bit and help her out :)

  3. Fatom Phreak says:

    Why didn’t you just use a 555 timer in astable mode?

  4. jimmys says:

    it’s gonna smell like bbq’d dog hair…

  5. thethirdmoose says:

    I think a microcontroller here would normally be referred to as “overkill”… no pun intended

  6. mikedd says:

    does it work? if i was still in my bronx apartment, i could have tested. the roaches were everywhere. my mom bought me one of those “ultrasonic” things that were supposed to scare away the roaches. i tried it for a few months and of course it did not work. i opened it up to see what made it tick. there were roaches living inside it.

  7. cloner says:

    nice project! finally, an excuse to get back into hobbying ;)

  8. jason says:

    heeeere kitty, kitty, kitty…

  9. BennyBoy says:

    I don’t think the electric pulse will be fatal to insects… The “what seems to be” gold trace on the pcb seems to be of enough conductivity to transmit the full 400V pulses to the insect but with it’s carapace, the insect will not absorb enough current to kill, therefore just sort of paralysing it. It’s the same principle as the taser gun; a lot of tension but very very few current passing through the body resulting in a stun/paralyse state instead of death. Current kills, voltage sort of paralyse (to be simpler because on a medical term I don’t think it’s imsple as that).

    I’d really like to see proof that this thing actually kill.

  10. Rectifier says:

    This sounds like a recipe for a roach on fire – a dead roach will just sit there and smoke, no way to remove it!

    This needs an motorized paddle to move across and wipe the dead roach into a bin! True automated killing – you have a few extra lines on that PIC, right? When C1 takes a big voltage hit charring a roach, finish frying it for an extra second or two and then activate the wiper.

    @bennyboy: well if it’s only stunned and not dead – wipe it into the bin… then activate a crushing device, heh heh heh :D

    I was going to build something like this out of an electric swatter to deal with my fruit fly problem – unfortunately a simple trap made out of a bottle and vinegar made short work of them, with no satisfying sparks or loud bangs necessary :(

    No cleanup mechanism necessary for fruit flies… they just fall through the mesh.

  11. PKM says:

    Anyone here read “The Wasp Factory”? All of a sudden I’m reminded of it… :)

  12. SomeBEng says:

    “In order to consrver power, a zener was used in place of the usual 5 volt regulator. This allows doing extra tricks with the sleep mode for extended battery life.”

    Er. What would these be? I don’t see how a zener diode is a better choice of 5V source than, say a linear regulator (assuming a low quiescent current).

    WRT using a 555 – you could but I’d favour the programmability of a PIC. Also the A/D allows the voltage to be measured and it’s always handy to have a spare I/O here or there.

  13. Johnny B. Goode says:

    I think I would probably have to go with some form of a capacitor discharge system. I could yank a couple photo flash caps from some disposable cameras, which would give quite a bit more current that what’s being provided here. Certainly enough to kill a roach I would think, and very possibly mice as well. Hmmmm…

  14. RAID says:

    Why not just make a board with traces like the one above and connect it to 120vac.
    Guaranteed crispy critters !

  15. Rangerx52 says:

    Probably dont need much current to kill a roach. kind of like those electric flyswatters; you can smack your friend with it and make him scream like a little girl, but it wil set a fly on fire if you keep the juice going. I believe those use cheap little transformers for voltage amplification from a 9v battery with constant voltage as opposed to pulsed.

    wouldnt really need a body removal system either, the little fellow would just cook until he doesnt conduct anymore (i.e. burnt to a little briquette)

    Still love to see it in action.
    come one man… trip to the petstore… a feeder pinkie? maybe a handful of crickets?.. a pinkie?

  16. will d says:

    i figure an insect’s legs should make excellent physical contact with the surface considering how sticky the feet are. as for how conductive they are, i’d like to know. see if you can get a roach and a multimeter. also, i’d absolutely love to see this thing on youtube.

  17. Bryon Wright says:

    The only failsafe protection is a blow capacitor and a blown diode. No switch?

    Also, couldn’t you convert this to a micro stungun?

  18. Mike says:

    hmmmmmmmm I wonder if you could use this to keep the dogs from raising their leg in your yard?????

  19. fentanyl3 says:

    to really be effective, it needs to use a voltage on the order of thousands of volts. most bug zappers run in the 5 to 15 kilovolt range.

  20. awdark says:

    That looks so fun. Never tried etching a board before.

    In the above comment, someone mentioned using a 555 timer in astable mode, I think 555 timers are easier to find and doesn’t need programming. Has anyone developed a more “efficient” version of this device?

    Sure seems like something nice to leave in the corners to keep the bugs in check.

  21. I built a similar roach motel back in the 1980’s. Mine was powered from a 9-volt battery. It used a 555 timer to create a square wave, that was fed into a step-up transformer. I was getting over 200 volts out of the transformer. The output was wired to two copper clad boards, which were laid on the floor so the roaches could then crawl over and complete the circuit through thier bodies..

    We saved a lot of money at the grocery store that way.

  22. nina says:

    Do we have to program the PIC..I’m a liltle bit confused.need answer ASAP :)

  23. nina says:

    hello. can I ask about the coding for PIC12F683?

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 93,625 other followers