Introduction: The Rouge Mobile

Picture of The Rouge Mobile

Want to learn how to create your own Mission Impossible themed race car and track? Keep reading!

Step 1: Materials

· Wood (1/2" thick)

· 4 3D designed wheels

· Arduino Uno

· 1 bread board

· Battery

· Wood glue

· Drill

· Track

· Screws

· 10+ pegs

· 2 peg boards

· Paint (desired color)

· 2 axle and wheel that fit the track

Step 2: Car Assembly

Picture of Car Assembly

1. Cut the wood into 6 pieces

o 1 9" x 3.5"

o 2 9" x 1.5"

o 2 3.5" x 1.5"

o 1 3" x 3"

2. Paint the wood a desired color

3. Wood glue them together and assemble make a box as pictured here.

4. Meanwhile, design a 3D wheel on OnShape on another CAD program, and print 4 wheels. While they will not be rotating, they will be a part of the car for aesthetic appeal. If you have the option to choose the color the four wheels will print, then it is recommended that you select a good color combination so your car looks the best it can!

5. Get two hinges together and use them to attach the axle and wheel to the base of the car. Double check to make sure the wheel is in the center of the width of the car. One axle should be in the front, the other should be in the back of the car. Choose their positions based on where you think the car will be best balanced to traverse the track.

6. Assemble the track as outlined in the next step.

Step 3: Track Assembly

Picture of Track Assembly

1. Put the peg boards on their side by supporting them with stands that are lined up side by side (2 stands per board is recommended for stable support).

2. Start inserting pegs into the board till to create the desired roller coaster design.

3. Feed the clips through the track and secure them to the pegs.

Keep fixing more pegs and clips to the track till the desired roller coaster is achieved.

Step 4: Programming

1. Define constant integers for a button,

buzzer, and two led lights by using "const int" as "button1Pin", "ledPin", "led2Pin", and "buzzerPin" respectively. Also set the "int state" to "LOW".

2. In the "void setup", set respective pins for the led lights and buzzer to "OUTPUT" and the button pin to "INPUT".

3. Within the "void loop", use the following code to set up the reading from the button's input:

"int button1State;

button1State = digitalRead(button1Pin);

int i, duration;"

4. Continuing within the "void loop", use an if/else if statement in order to code the lights on and the song to play if the button is pushed. Use the following code:

"if ((button1State == LOW)&&(state==LOW))

{ digitalWrite(ledPin, HIGH);

digitalWrite(led2Pin, HIGH);

state=HIGH;

delay(500);

//your song here

}

5. Assemble your song using various frequencies. For the mission impossible song, the middle and lower octave of treble clef were used. Each note followed the pattern, where the first section defines the pin, the second the frequencey and the third the duration:

tone(buzzerPin,587,250);

delay(250);

//Tip: For all notes with a duration of longer than a 1/8 note, use a delay of its duration. For 1/8th notes, use a delay of 150 to be able to hear the note clearly.

6. After your song, complete the if/ else if statement with the following code:

else if ((button1State == LOW)&&(state==HIGH))

{digitalWrite(ledPin, LOW);

digitalWrite(led2Pin, LOW);

state=LOW;

delay(500);

}

//This code turns off the lights as the button is pressed again after the song.

ARDUINO ASSEMBLY (if you want the car to light up and/or play the Mission Impossible theme song)

Step 5: Arduino Programming

Picture of Arduino Programming

Materials:

Arduino Uno

Breadboard

7 Small Arduino wires

2 Normal Arduino wires

2 Connecting Arduino wires

2 330Ω Resistors

1 10KΩ Resistor

2 Arduino LED lights

1 Arduino button

1 Arduino buzzer

1 Battery Pack

1. Place the appliances on the breadboard and car

1. Place the LEDS in their respective holes on the car's front bumper.

2. Place the button in the holes C8, C10, F8, and F10 on the breadboard. If the button does not work when tested with the full code, try turning: the button is square and may be at the wrong orientation.

3. Place the buzzer in the holes E18 (positive end) and E20 on the breadboard.

2. Connect the small Arduino wires. The color does not matter other than for color coding the uses.

Power

1. Plug one end of a wire into the 5V pin on the Arduino unit and the other end into the positive (red) column of the breadboard.

2. Plug one end of a wire into the GND pin on the Arduino unit and the other end into the negative (blue) column of the breadboard.

LED

1. Plug one end of a wire into pin 13, the first LED pin, on the Arduino unit.

2. Plug one end of another wire into pin 12, the second LED pin, on the Arduino unit.

3. Plug one end of a wire into H2 on the breadboard and the other end of the wire into the negative column of the breadboard.

Button

1. Plug one end of a wire into pin B10 on the breadboard and the other end of the wire into a section of the negative column of the breadboard.

Buzzer

1. Plug one end of a wire into pin B20 on the breadboard and the other end of the wire into a section of the negative column of the breadboard.

3. Connect the normal Arduino wires.

Button

1. Plug one end of a wire into B8 on the breadboard and the other end into pin2 on the Arduino unit.

Buzzer

1. Plug one end of a wire into B18 on the breadboard and the other end into pin9 on the Arduino unit.

4. Connect the resistors.

330Ω Resistors

1. Plug the gold and brown end into pin F2 on the breadboard.

2. Plug the gold and brown end into pin I2 on the breadboard.

10KΩ Resistor

1. Plug the black and brown end into pin A8 on the bread board and the other end into the positive column of the breadboard.

5. Connect the connecting Arduino wires.

LED

1. Plug one end onto the wire out of pin 13 and the other end onto the positive end (longer) of the LED.

2. Plug one end onto the wire out of pin 12 and the other end onto the positive end (longer) of the LED.

3. Plug one end onto the resistor out of F2 and the other end onto the negative end (shorter) of the LED.

3. Plug one end onto the resistor out of I2 and the other end onto the negative end (shorter) of the LED.

6. Connect the battery pack to the Arduino unit.

7. Check your connections using the uploaded image.

Comments

DIY Hacks and How Tos (author)2016-07-01

Cool project. Thanks for sharing.

About This Instructable

127views

1favorite

More by apershad18:The Rouge Mobile
Add instructable to: