LED Stuffed Pumpkin :: Halloween Arduino Project

Create your own LED Stuffed Pumpkin for a Halloween Arduino Project

Follow this step by step guide for making your own.

What supplies You Need:

  • Pumpkin: my was too small, probably a 8 to 9 pounder would be better.
  • LED’s – as many as you want. An Arduino can run 19 independently.
  • 220 Ohm Resistor, 1 for each LED you plan on using
  • Hook Up Wire: preferably 2 colors, one for ground and one for everything else.
  • 9 Volt Battery Supply for your Arduino (or any battery pack that will power you Arduino)
  • Solder
  • 2 Way Switch (Optional) – if you want an easy way to make two modes of operation.
  • Electrical Tape

 What Tools You Need:

  • Power Drill with a 13/64th size drill bit
  • Knife and Spoon to cut open and scrape out the pumpkin guts
  • Solder

Step One: Prepare The Pumpkin for its Electronics Stuffing

Carving out the LED Stuffed Pumpkin Halloween Arduino

Cut a hole in the bottom of your pumpkin big enough to comfortably fit your hand into. Pull out all the seeds and scrape out as much of the stringy stuff as you can.

Decide how many and where you want your LEDs to shine through. Mark these points and use a 13/64th inch bit with your power drill to make the holes.

Optional Switch

I had a two way switch sitting around that I thought would add to the aesthetics of my pumpkin.  If you are going to make a halloween Arduino project, you might as well make it look electronic.  Cut out the shape you think you will need somewhere on the pumpkin body.

You could use a potentiometer for control too – that might be neat.

Step 2: Prepare the LEDs

Soldering Hook Up Wire for the LED Stuffed Pumpkin Arduino Halloween Project

Cut enough hookup wire to have two pieces for each LED.  The length of the hookup wire depends on how big your pumpkin is. I used about 6 inch lengths of hookup wire. This didn’t work out too well for me.

I should have set up one LED, made sure the length would be sufficient, and then gone and cut the others. That is what I recommend you do. If you cut them too long, then stuffing all the stuff in can be tougher, but you can always cut them shorter.

Ideally you will have two separate wire colors – one color for ground and one color for everything else. I used black for ground and blue for just about everything else – it helped a ton when all the wires started looking like spaghetti squash to me.

Now strip each wire down far enough to solder, but don’t go too crazy, maybe the width of your pinky finger nail.

Warm up your soldering iron, and solder 220 ohm resistors to the ends of the hook up wire that is connected to the positive sides of the LEDs (I.e. the anode – the longer leg of the LED).

If you decided to use a switch, now would be a good time to solder hookup wire to the switch poles.

The following is optional depending on how much length of hookup wire, and space you have to work with in your LED.

Now this step I wish I would have done – it could have saved me a have hour of frustration.

Place all you resistors into the Arduino pins you plan on using. You will have a bunch of resistors holding up hookup wire with LEDs attached – it will look pretty crazy. When all the resistors are in, take a long piece of electrical tape and sandwich all the resistors together below the resistor body.

Taped leads for the LED Stuffed Pumpkin Halloween Arduino Project

Now do it again, above the resistor body, and finally for good measure, do it again around the resistor bodies.

This aligns all your pins when the time comes to plug them into your Arduino, instead of trying to do it one by one. It also isolates the LED from each other, so you don’t inadvertently cross wires.

Step 3: Stuff the Pumpkin with LEDs

Stuffing Pumpkin With LEDs for the Halloween Arduino Project

Now place your LEDs into the holes you drilled. The hole size is snug enough to make it a bit difficult but it ensures that the LED won’t draw out if they get tugged a little.

I stuck a screwdriver through the holes to help find them from the inside.

Once all your LEDs are placed, now you need to join all the grounds together. There are a couple ways to do this.

You could solder them all. Depending on how many you have – this could be a messy pain.

You could get a wing wire connecter (the kind used on home electrical wires) and use one of those to join them all together – if I had one conveniently lying around, this is what I would have used.

Whatever method you use, you will then need to connect all these ground wires to the ground on your Arduino. I did this by soldering on an additional piece of hookup wire to the anode of the LEDs and using this to connect all the grounds.

Now connect the resistors to the pins of your Arduino.

Step 3: Load the Code to the Arduino 

Now hook your pumpkin…er..uh… your Arduino up to your computer via USB and load the code you want to run your lights.

For a starting point I used the Arrays example, under File > Examples > 05.Control > Arrays. This will get 6 LEDs turning on and off in no specific order.

Below is the code I used.

 

Step 4: Hook Up the Battery and Awe Yourself with Blinking LEDs

Once you have loaded your code and done any necessary troubleshooting, you can now unplug your USB cable and plugin your battery pack.

Now it’s time to watch your Halloween Arduino Project glow. Now there might be better ways to improve the world with your electronics skills and time, but regardless, it is fun to watch.

Tiny Arduino GPS Car Tracker with SD Card :: James Bond Wanna Be

Isn’t it hard to finish watching a spy movie and not want to do something…spy-like?  You know, like having 40 video cameras in your house, dancing the tango with some ambassador, or jumping off a helicopter onto a wild cheetah?

Well – what about secretly logging the GPS coordinates of a car on an SD card?

Here is the basic concept – you build a tiny Arduino GPS data logger and put it in a magnetic key case. Then attach the key case to the vehicle you want to track. When the car returns, you pull off the GPS tracker, upload the secret data to your computer then map the data using the free Google Earth software.

This turns out to be really easy to do.  We can use existing code that was originally featured in MAKE magazine for building a cat tracker.  Track cats or be a slick – your choice!

In this video we will walk step by step through building this GPS data logger.

Your Guide to Creating a Tiny Arduino GPS Data Logger

I wanted to keep my tracker discreet – so it needed to be small.  For this project, I chose to use the TinyDuino platform.  For all intents and purposes, it operates basically the same as an Arduino UNO, it’s just a whole lot smaller.

You Will Need:

  • 1 TinyDuino Processor (TinyCiruits)  for this project I would recommend getting it without the coin cell battery holder as it makes getting to the positive hookup a little more difficult (but not undoable by any means)
  • 1 TinySheild USB and ICP Adapter (TinyCiruits)
  • 1 TinySheild MicroSD card (TinyCiruits)
  • 1 microSD Card (I used a 4GB card, but I am sure much smaller would work fine.  I had one lying around from an old cell phone I had bought it for.)
  • To read the card, you will also need an microSD card reader.  I used an SD card adapter so my mini-USB card could fit right into my computer.
  • 1 TinySheild GPS (TinyCiruits)
  • 1 Lithium Battery – I used the 3.7v, 2700 mAh.  As long as you supply between 3 – 5 volts, you will be fine, just don’t supply more than 5.5 volts. (Adafruit)
  • 1 Female JST Connector – I just snipped the male connectors side off and used the Female connector (Adafruit)
  • 1 Master Lock 207D Large Magnetic Keycase
  • Dark Sun Glasses

This sounds like a lot of stuff – but really it’s not!  Essentially it’s a processor board and two shields with a battery and a case.

Tools You Need:

You will also need to solder for this project, so you will need:

  • Soldering Iron
  • Solder

Code:

Click Here to download the Code

 

Step One: Solder the External Power Connection

The first thing we will need to do is solder up a power connection on the TinyDuino.

The TinyDuino can run on a coin cell battery, but since we are using the GPS shield, the GPS module requires more power than the coin cell battery can provide.

Power.solder_op

Take a female JST connector and solder on the positive (red) wire to the positive terminal of the TinyDuino Processor.  Then take the negative (black) wire, and solder that onto the ground (labeled GND).

They have two versions of the TinyDuino – one with a coin cell battery holder and one without.  The one I used had the coin cell holder, but I think it would be easier to solder, if it wasn’t there.  You will want to solder the wires to the back side of the board.

TinyDuino.poer arrows

Step Two: Build the Stack

Once we have the external power connection setup, let’s go ahead and build the “Stack” we will use for this project.

Connect the TinySheild GPS on top of the TinyDuino processor board. On top of that, connect the TinySheild SD Card writer/reader.  Insert your microUSB card into the SD card shield. Finally, attach the TinyShield USB adapter.

That’s it for the stack now, in a moment we will remove the the USB shield, but first let’s keep it attached as we load the Arduino code.

Step 3: Load the Code

To load the code on the TinyDuino, attach a micro USB cable from the TinyShield USB to your computer.

Open up the Arduino IDE.

Under Tools > Board, make sure to select Arduino Pro or Pro Mini (3.3V 8 MHz) w/ ATmege 328

Under Tools > Serial Port  and select the correct Serial Port.  For a PC it is likely COMM 4 or 3.  On a Mac, it will start with tty.

Now go to File > Open and navigate to where you loaded the sketch.  Depending on where you saved the file, you will probably get a message that the sketch was put into a subfolder – this is normal.

Click upload – you will see some LEDs flicker on your tinyDuino. It should take about 20-40 seconds for everything to load, you will see “done uploading” in the Arduino IDE.

Check to see that the Green indicator light on the TinyDuino is blinking about once every second, this tells us that the TinyDuino is writing to the SD card (not necessarily that you are getting a GPS signal).

Go ahead and detach the TinyShield USB connector and attach the lithium battery to the processor board.

Now place everything in your case.

My Tiny Arduino GPS care tracker

Step 4: Test Placement and View the Data

I highly recommend doing a test run, before you start doing your real-deal tracking.  Since the tinyGPS shield is so small, it’s antenna can be a bit weak – the bottom line is, it needs to be outside to collect data – and preferably pointing toward the sky.

Once you have collected some outdoor data, now lets take a look at the data – this is the fun part!

Take out the microSD card and attach insert into your microSD card reader.  When the SD card opens on your computer, you will see a file named gps.txt.

In order for us to read this file using Google Earth, you will need to change it to a different file extension, called nmea – this stands for National Marine Electronics Association – it is the standard file type for organizing GPS data.

To do this on a Mac, right click and select “get info”, then go to file name, and change it from .txt to .nmea.  You will get a warning about changing the extension, so choose to change the extension.

On a PC, you will simply right click and rename the file extension to .nmea – that’s it!

Before we get started looking at the data – we are going to need a program to display the information.  I used Google Earth – it’s free and easy to use – you will need to download it to your computers hard drive.

Once it has installed, go ahead and open it up.  Now go to Tools > GPS.

Using Google Earth to upload my Tiny Arduino GPS data via the Tools > GPS menu

From the popup window, select “Import from file” and click all of the options for import and output, then click “Import”.

Using the Google Earth GPS Import pop-up menu to upload data from my tiny Arduino GPS logger

Now browse to the file gps.nmea on your sdCard and select “open”

All the routes will be imported and whalla! You can check out the individual points and the track.  That’s pretty much it – not as hard being as sly as you might think!

I would love to hear how it works for you – let me know in the comments.

Arduino Laser Tag Land Mine :: Featured Student Project

Arduino Laser Tag Land Mine

Want to spice up your laser tag game – why not add some Arduino laser tag land mines?

This is another cool project created by James, an Arduino Course for Absolute Beginners Academy student.

James writes about this project…

“A friend who runs a Laser Tag business approached me to create some grenades/land mines for players to use.

Hardest thing to code was the actual command to “explode” the player.

Another hurdle was that IR LEDs work best in low light conditions but have poor performance during daylight.”

James was kind enough to share his schematics and code.  If you are interested in learning more about the project, feel free to reach out through the comments – James would love to hear your feedback!

Schematics:

Laser_Tag_Claymoore_V1

Laser_Tag_schem

Code:

 

What is Arduino?

Have you seen some really cool stuff being made with a thing called Arduino?

What is Arduino anyway?  It sounds like an italian sandwich with extra cheese or something…

Well – it’s that and a lot more.  I hope this video can help explain some the basic premise of the Arduino!

Arduino Circuit Breaker Simulator :: Featured Student Project

Arduino Circuit Breaker SimlulatorNeed to test some large circuit breakers?  You may have found your solution!  This Arduino circuit breaker simulator project was submitted by James, a student of the Arduino Course for Absolute Beginners.  Let me just say I am impressed – I wish I could build something half as cool!

James writes this about his project…

“I work at a power plant and we routinely test large circuit breakers. Because of the constant closing and tripping these breakers take a lot of needless wear and tear. Continue reading