Partyduino

Intro: Partyduino

This is the final project of our party bus named Partyduino set up with the Arduino containing passive buzzer and the full rotation servo.

Step 1: Gather Supplies Needed for This Arduino Project

You need the materials listed below:

Materials:

1. Continuous Motion Servo

2. Passive Buzzer

3. Wires (MM wires)

4. Battery (Optional)

5. Breadboard

6. Wheels (3 or more)

7. USB Cable (to connect to the computer)

8. Arduino Code App or Account

9. Cardboard (Or other materials to build the structure)

Step 2: Design the Project

Start to design your project by gathering all your supplies in one area. Then you can draw a sketch like the one we did. You can add wheels to your car or bus. After you have to hot glue the pieces of material, cardboard, to each other so that the box respresents a vehicle. You also have to hot glue the wheels of the bus to the continuous servo. You can add more steps to this process if you like.

Step 3: Design Your Circuit

The picture attached to this step shows how we put the wires in each pin. You can use different pins, but you would also have to change the code part where is says “attach” and for the passive buzzer.

Step 4: Make the Code for the Song “Havana” and the Moving Servo to Move at the Same Time

https://www.musicnotes.com/sheetmusic/mtd.asp?ppn=...

#include Servo myservo;

#include "pitches.h"

void setup() {

// put your setup code here, to run once:

myservo.attach(9);

pinMode(12,OUTPUT);

}

void loop()

{

// put your main code here, to run repeatedly:

myservo.write(40);

tone(12,NOTE_C5);

delay(300);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_A4);

delay(400);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_F5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

tone(12,NOTE_A4);

delay(400);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_F5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_C5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_A4);

delay(400);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_F5);

delay(250);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(250);

noTone(12);

tone(12,NOTE_C5);
delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(250);

noTone(12);

tone(12,NOTE_D5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_D5);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_E5);

delay(270);

noTone(12);

tone(12,NOTE_B4);

delay(300);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_B4);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

noTone(12);

tone(12,NOTE_B4);

delay(270);

noTone(12);

tone(12,NOTE_C5);

delay(270);

tone(12,NOTE_A4);

delay(400);

noTone(12);

}

Step 5: Connect to the Computer

Use the USB Cable to connect your Arduino to the computer. This should transfer the code into the Arduino. Then you can use a battery to play it later.

Step 6: Try Your Project Out

Upload the Arduino, and see if it works. If it works, great, you did a good job looking over the instruction, and if it doesn’t work, you also did a good job. If it doesn’t work go through the last couple of steps again. Try again and again till you have perfected it in the way you want it to be. It took us multiple tries to get it where we wanted it to be.

Step 7: Our Final Project

Hope you enjoy our project!

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest

    Discussions

    0
    None
    tomatoskins

    4 months ago

    This looks like a lot of fun! Thanks for sharing.