Introduction: Arduino-Powered Pumpkin

This Halloween project uses an Arduino with a proximity sensor and a bunch of LEDs to greet guests at your doorstep.

Step 1: Program the Arduino and Hook It Up

The code for this is based on an example from Tom Igoe's Making Things Talk. It's pretty simple: the Arduino monitors a Sharp GP2D12 Infrared ranger, and if it detects movement nearby, it turns all the LEDs up to maximum brightness. While it's waiting for someone to step close to it, the Arduino flickers the lights.

Pins 9, 10, and 11 go to LEDs that are shown in the next step. Analog pin 0 goes to the proximity sensor. Power and ground go to the breadboard that houses the LEDs and the sensor.

The attached file, Pumpkin.pde, contains the Arduino code you need to upload to your Arduino.

Step 2: Build the Circuit

At this step, you're just completing the connections made in the previous step. However, you'll notice that instead of three LEDs, I've got two perfboards with four LEDs each and also one LED that lives on the breadboard. The perfboards are an implementation of the multiple LED schematic from Arduino playground. The connection is almost exactly like hooking up an LED to the Arduino, except that you have an extra connection to +5v, shown in the photo notes, in addition to the usual digital pin and GND connection.

Step 3: Carve Your Pumpkin and Install

Now it's time to carve the pumpkin. Once you've made plenty of space, put the parts in, Use toothpicks to hold it all in place, double-check all your connections, and fire it up! Your pumpkin should be all blinky now. I suggest powering it from a MintyBoost so you can put it pretty much anywhere!

Comments

author
geeklord made it! (author)2009-02-10

cool. So does the rangefinder have an analog output of a varying voltage?
i think thats right

author
rolandl made it! (author)2008-11-12

Hook up 12 LEDs to the 12 IO pins. Control them from the keyboard of your linux system, or write a script to turn them on/off in some pattern. Use cron or similar to change the script periodically. See http://user.cavenet.com/rolandl and get the package, SMS1.tgz. Now with GUI via xdialog command.

author
cr0ybot made it! (author)2008-02-10

Added to Arduino Group! ;D

author
flio191 made it! (author)2008-02-05

a pathway with these on either side, lined up (would essentially be a lot of work, but) would be really cool! The lights would turn on as you pass them!

author
alvincredible made it! (author)2007-11-03

hey thats cool! and if it probably saves alot of energy too cause its off when no ones near it. good idea

author
Hawaii00000 made it! (author)2007-11-01

How about you make millions of these put them around youe door and wire them to your doorbell so that when it i rung they all turn on and your surrounded but glowing jack-o-lanterns about to eat you alive!!!!! Alright forget the eat you alive business.

About This Instructable

11,100views

21favorites

License:

Bio: I'm an editor for Make and a geek for AS220. I like to hack code and things.
More by bjepson:Color-changing RGB Christmas Tree LightsArduino-Powered PumpkinDell E1505 Bluetooth Upgrade
Add instructable to: