Close
0%
0%

The Magic Pumpkin

fun and easy (not to mention cool looking) Halloween project

Similar projects worth following
The Magic Pumpkin is a fun and easy project that takes advantages of Object Oriented programming to give a completely modular piece of code that can be used to power as many neoPixels as you can put pins to. It uses a random number generator to cycle through 4 patterns: Flame - emulates flame , FastScan - single light goes around the ring, DubCol - two lights go and "pong" around the ring, and Demon- the entire ring pulses red. On top of that the pumpkin is foam so you don't need to worry about rot.

The Magic Pumpkin was a co-op project between my wife and I. It cycles through 4 different patterns. I used classes so the project is expandable and can power multiple rings without tripping up the MCU.

//video of one of the patterns

https://goo.gl/photos/hKetWiCfsbboqXHw6


//video of another pattern going into a pattern
https://goo.gl/photos/SehcP1hrAyfzMYAR9


//link to the code for the project (it's a long one)
https://github.com/faradayRage/arduinoCode/blob/master/pumpkin_v2/pumpkin_v2.ino/pumpkin_v2.ino.ino

  • 1 × pro trinket 5V
  • 1 × NeoPixel Ring (12 count)
  • 1 × 470 ohm resistor

  • 1
    Step 1

    To make the magic pumpkin all you need is a foam craft pumpkin (we got ours from a Rite-Aid or a Walgreens for under $15) an arduino compatible board (I used the Pro Trinket 5V) and some creativity.

  • 2
    Step 2

    First write the code for the pumpkin. Here's a link to the GitHub for the code, I'd post it here but it's especially long.

    Code for the Magic Pumpkin

    Feel free to alter any and all of the patterns, all you need to do is play around in the neoPatterns class and change anything you want. Grab a neoPixel ring, a resistor, and plug them into an Arduino compatible board and you're ready to go.

  • 3
    Step 3

    Design and cut out your foam pumpkin as you would a real one. The benefit of the foam pumpkin is it won't rot and there's no moisture to potentially muck up the electronics.

    You're going to want to put some discrete marks at the bottom of the pumpkin to make alignment and a nice tight fit easier. then take the double stick off the breadboard, place it on the bottom of the pumpkin and ease it into the body of it.

View all 4 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates