Introduction: Pinewood Derby Police Car

Picture of Pinewood Derby Police Car

It's Pinewood Derby season!  This year I am building one with an arduino chip inside.  This car has LED head and tail lights.  Also it has red and blue flashing lights that are controlled by the arduino chip.



I'll show you how to build one of your own.

Step 1: Prep and Parts List

Picture of Prep and Parts List

First thing we need to do some prep.  The main things we need to sort out is what the power source will be and what chip will control the LEDs.  There is not much room in a pinewood car so the smaller the battery the better.  I used an old cell phone battery.  It was fairly small and fit well inside. It is also rechargeable so I can use it again.

For the arduino chip I am using a ATtiny85.  This chip is smaller than the regular arduino chip which is good because of the room we have to work with.  This chip is a little differant to program than the regular arduino chips but it is fairly easy.
Hear is a link that shows you how to program the ATtiny.
ATtiny

Pats List
Pinewood derby kit
Battery
4 bright white LEDs for headlights
2 red LEDs for tail lights
Red and blue LED for flashing lights
ATtiny85 and arduino
any other electronics to complete the circuit. (wire, switch.)

Tools
For making the car I used a hack saw and a dremel and it seamed to work just fine.
soldering iron and solder
Paint
hot glue gun

Step 2: The Car

Picture of The Car

Take your pinewood derby kit.  You will see that it is just a block of wood.  You can carve it into any shape you want.  I chose to make a Dodge Charger.  It seams like there are many of those in police form.  Now we need to make a place for the battery and circuitry to live.  The best way to go is to hollow out the car from the bottom.  You can make a cover for the cavity out of the scrap wood you have form carving the car.

Now we need to drill holes where the LEDs are going to go.  I used my dremel for this and it was pretty easy.  I also put a hole on top of the car between the flashing lights for a switch.  Make sure you dry fit the parts before moving on.

Step 3: The Circuit

Picture of The Circuit

I have made a diagram of the circuit.  The positive lead from the battery is going to the power input on the chip and there is a switch hear to turn the lights on and off.  With the power plug positive is going to positive of the battery and negative is going to negative of the battery.  The LED near the power plug will turn on when a power cord is plugged in.  This will verify that the battery is charging.  The diode is needed.  If it was not there then the led would be lit up even if the power cord was not plugged in. 

Step 4: Write the Code.

If you want to wright the code yourself the main idea would be to get the red and blue lights to blink in a way that a real cop car does.  I found that there are many blink patterns for cop cars so you can pick one or even a couple. 

If you do not want to wright it yourself or do not know how, hear is the code that I used.  Just copy and past in the arduino software.

// Code for pinewood derby cop car
// This code is for the ATtinny85 chip
// To modify the code to work for any other chip all that
// is needed is to change the pin numbers
int blue = 3;      // Blue LED on top of car         
int red = 2;       // Red LED on top of car       
int headLight = 1; // Four LEDs in front of car wired in parallel
int tailLight = 4; // Two LEDs in rear of car wired in parallel


void setup(){
  pinMode(blue, OUTPUT);       
  pinMode(red, OUTPUT);     
  pinMode(headLight, OUTPUT);
  pinMode(tailLight, OUTPUT);
 
}
void loop(){
// This will keep the headlights and tail lights on
// and blink the red and blue lights like a real police car
  digitalWrite(headLight, HIGH);
  digitalWrite(tailLight, HIGH);
  int num1 = 0;
  while(num1 < 2){ 
    digitalWrite(blue, HIGH);
    delay(75);
    digitalWrite(blue, LOW);
    delay(75);
    num1++;
  }
  int num2 = 0;
  while(num2 < 2){
    digitalWrite(red, HIGH);
    delay(75);
    digitalWrite(red, LOW);
    delay(75);
    num2++;
  } 
}

To upload the code to the ATtiny85 you need to use the arduino as an ISP.  The link in step 1 are instructions on how to do this.
Make sure you test the code on a breadboard first before going any further.   Nothing is worse than to get it all put together only to find out that it does not work. 

Prototyping is far better than troubleshooting.

Step 5: Prototyping

Picture of Prototyping

Once you have all the parts that you will need for the circuit, it is a good idea to make sure it will work before you solder and glue every thing in.  First write the arduino code and program the chip.  Use a breadboard to test out the circuit.  You should make sure that every thing lights up and blinks how they should and the battery lasts as long as you need it to.  For a pinewood derby 4 hours of battery life should be more than plenty.

Step 6: Putting Is All Together

Picture of Putting Is All Together

Now that you have the car carved out and the circuitry all together and working you can start to put it all together.  I started by getting a perf board and cutting it to the right size.  Solder the chip onto the board.  Then start installing the leds and connecting them to the board.  Make sure you use plenty of wire.  You can run out of room.

I wired the leds in parallel grouping the 4 headlight leds together as well as the 2 tail light leds together. 

Once you have finished soldering every thing make sure you test it before you close every thing in.  If it works then close it up with that panel and some hot glue.

All you need to do now is put the wheels on, any decals you have and have a fun time at the pinewood derby.

Comments

traxs (author)2015-05-05

How do you even make a pine wood derby car?????????????????

Saxi (author)2014-03-02

Ever hear of resistors?

electricd7 (author)2013-12-14

I LOVE this idea, but would like to add a little piezoelectric buzzer. Basically just 2 different tones that simulate a police siren. I have absolutely no idea how to change the program to power the siren or how to hook it up to the existing circuit. Can you help?

fishglh (author)2013-10-25

Thanks for posting this. My daughter and I made the police car for Awana at church. It was awesome. People loved it and the lights stayed on for 6 months after we had raced it.

cj8675 (author)2012-03-04

so you know thats not regulation looking
it cant be over 5 or under ounces
and it cant be that short

shaggs31 (author)cj86752012-03-05

I don't know how you can tell the weight of it by a picture but it is far less than 5 ounces. With that big cavity that is carved out of it to house the battery and circuit board, it removes a lot of the weight.

As far as the length of it, I have found nothing that gives a minimum length. (At least not for the race that I built this car for.)

Every race is different and rules can be made or changed for each race.

cj8675 (author)shaggs312012-03-05

im second class boy scout ive been to the regionals and they are extremely tough about your cars demensions and mass your pack may not be as strict but the statewide races are

shaggs31 (author)cj86752012-03-05

So I fail to see the point you are trying to make hear. If this car is to short for regionals than just lengthen the design. Myself I wasn't concerned about rules anyway. I was only interested in make a sweet looking car.

OCPik4chu (author)shaggs312013-04-01

great design and I love seeing people really customizing their pinewood derby cars, just ignore that other person. Plus there is no official minimum length for a pinewood derby car so I dont know where he got that from. There is a minimum wheel(axle) distance and a maximum car length and you look to be within both of those so you could certainly enter it into the nationals even if you wanted to. However some formats for the nationals do not permit electronics and lighting but the size and weight of your car are perfectly fine.

sjoobbani (author)2012-03-07

PLEASE PLEASE PLEASE POST A VIDEO!

shaggs31 (author)sjoobbani2012-03-11

do you mean a how to vid or a vid of what the car does?

sjoobbani (author)shaggs312012-03-13

one of the lights in action!

cj8675 (author)2012-03-06

i thought you were going to race it. i like the design though and im going to vote for you in the contest sorry

About This Instructable

15,369views

29favorites

License:

More by shaggs31:Water Table for kidsPinewood Derby Police carHelping Hands for soldering
Add instructable to: