A charming Arduino king cobra game


Here’s a fun game from [A.J.]‘s lab. It’s a simulated king cobra made from an Arduino, an ultrasonic sensor, and a servo. The aim of the game is to grab a ball in front of the device without being ‘bitten’ by the thumbtack attached to a drinking straw controlled by a servo. You know, just like a real king cobra.

There’s no schematic or build plans for this project, but it looks easy enough to cobble together. Despite its simplicity, this game looks hilariously fun, and could quite possibly provide more entertainment through¬†using the machine rather than simply building it.

No text description of this game can do it justice, so check out the video below. It looks like a lot of fun, and if you already have the parts in a bin somewhere, it’ll make a great weekend build.


  1. Replace the tip with a blade

    Replace the servo with a solenoid

    Rename as “How to die with Arduino” :)

  2. Adobe?Flash hater. says:

    I’m guessing that some people just weren’t satisfied
    after putting their fingers in the teachers big stapler.

  3. I love this. I would cut a sponge up into a fang shape, dip it in red water based ink and now you have a great children’s game.

  4. vonskippy says:

    Yeah, nothing says fun like sharing blood (and the diseases in it) among friends and strangers.

  5. zuul says:

    …but, but,.. the first law of robotics…

  6. wolscott says:

    a “safer” version could shock you instead of stabbing you and hurt just as much

  7. Disposable camera flash?
    High voltage would be a fun alternative to a tack…

  8. Thopter says:

    Is the end of the straw triggering the sensor and getting stuck in its lowest position?

  9. macegr says:

    The emos are learning our technology. This cannot bode well.

  10. Hirudinea says:

    Not to complain but unless there is a neurotoxin on that thumb tack it ain’t no cobra game, besides that though it’s great.

  11. dylan says:

    Funny ! :P careful not to get bitten LOL

    You have the source code of this project ?
    Thank you.

  12. Alan says:

    Make that straw a wooden ruler, and a pair of 1-inch nails for the fangs. Better yet, use a pantograph [https://en.wikipedia.org/wiki/Pantograph] to extend the reach…
    Early warning would be to shake a rattle – presto! Rattlesnake game.

  13. AJ says:

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 96,704 other followers