Air Flipping Bluetooth Arduino Smart Car

by dnoel9778 in Circuits > Arduino

264 Views, 2 Favorites, 0 Comments

Air Flipping Bluetooth Arduino Smart Car

20230926_160137.png

Hi my name is Dan, I am a sophomore at Blackstone Valleytech. For this project, i decided to make a smart phone controlled Arduino car that flips through the air. This car uses its own weight and gravity to perform stunts!

Supplies

3d Print Your Chassis

First step is to 3d print your car chassis. I printed this part on my ender 3 pro unmodified with the reality cura software. S

Details:

.2 resolution

85% or higher infill density

z hop .2mm

no supports


3d Print Your Ramp

For this ramp i designed i made it in2wo pieces so that you could print it in one go with minimal filament.

use around 30% infill

no supports

Assembling Your Car

the first step is to get your arduino Your going to isnert yoor motor driver into it and glue it to the center of the chassis. Your then going to put your motors below the car on all four corners using hot glue. The you are going to wire each motor into the 4 motor terminals on your driver and make sure you check your polarity. The next step is to solder the 2 wires to the 0 and the 1 on the board. then get a breadboard and insert your 4 wires all across from each other. than insert your Bluetooth module. Then wire your batteries to the positive and negative terminal on your motor driver.

Coding Your Car

I used the following program for my car.

#include <AFMotor.h>

char Incoming_value = 0;

AF_DCMotor motor1(9);

AF_DCMotor motor2(10);

AF_DCMotor motor3(11);

AF_DCMotor motor4(12);


void setup() {

  Serial.begin(9600);

  motor1.setSpeed(255);

  motor2.setSpeed(255);

  motor3.setSpeed(255);

  motor4.setSpeed(255);

}


void loop() {

  if (Serial.available() > 0) {

    char incoming_value = Serial.read();

    Serial.print(incoming_value);

    Serial.print("\n");

    

    if (incoming_value == '0') {

      motor1.run(FORWARD);

      motor2.run(FORWARD);

      motor3.run(FORWARD);

      motor4.run(FORWARD);

    }

    else if (incoming_value == '1') {

      motor1.run(FORWARD);

      motor2.run(FORWARD);

      motor3.run(BACKWARD);

      motor4.run(BACKWARD);

      delay(200);

      motor1.run(RELEASE);

      motor2.run(RELEASE);

      motor3.run(RELEASE);

      motor4.run(RELEASE);

    }

    else if (incoming_value == '2') {

      motor1.run(BACKWARD);

      motor2.run(BACKWARD);

      motor3.run(FORWARD);

      motor4.run(FORWARD);

      delay(200);

      motor1.run(RELEASE);

      motor2.run(RELEASE);

      motor3.run(RELEASE);

      motor4.run(RELEASE);

    }

    else if (incoming_value == '3') {

      motor1.run(BACKWARD);

      motor2.run(BACKWARD);

      motor3.run(BACKWARD);

      motor4.run(BACKWARD);

  

    }

    else if (incoming_value == '4') {

      motor1.run(RELEASE);

       motor2.run(RELEASE);

        motor3.run(RELEASE);

         motor4.run(RELEASE);

    }

  }




Making Your Own App!

Screenshot 2023-09-26 161742.png
Screenshot 2023-09-26 161845.png

Warning this app is only available to Android users. However in the Apple playstore if you look up Bluetooth Rc car you will be able to find something that fits your needs.

You can copy the app info from the picture.

Test Drive!

For this step you need to make sure its working so I took mine on a test drive!


Untitled video - Made with Clipchamp.mp4

Enjoy!

I hope you have fun with this air flipping car and use it safely!