Air Flipping Bluetooth Arduino Smart Car
by dnoel9778 in Circuits > Arduino
270 Views, 2 Favorites, 0 Comments
Air Flipping Bluetooth Arduino Smart Car
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
For this project you are going to need as follows:
Bluetooth module HiLetgo 2pcs HC-05 Wireless Bluetooth RF Transceiver Master Slave Integrated Bluetooth Module 6 Pin Wireless Serial Port Communication BT Module for Arduino (amazon.com) $15.99
Arduino Uno Amazon.com: ELEGOO UNO R3 Board ATmega328P with USB Cable(Arduino-Compatible) for Arduino : Electronics $16.99
Arduino Motor driver Shield HiLetgo L293D DC Motor Drive Shield Stepper Motor Drive Shield Expansion Board for Arduino Duemilanove Raspberry Pi: Amazon.com: Industrial & Scientific $7.49
Hobby Geat motor plus wheels Amazon.com: 4 pcs 65 x 26mm Plastic Tire Wheel with DC 3-6v Gear Motor Dual Shaft for Arduino Smart Car : Toys & Games $15.99
18650 battery and charger Amazon.com: Dilusi Battery Charger 18650 Battery, Speedy Smart Recharger with LCD Display Universal for Rechargeable Batteries Ni-MH Ni-Cd A AA AAA AAAA C SC. Li-ion (Included Two 18650 li Batteries) : Electronics $23.99
Jumper Wire Amazon.com: Amazon Basics 9 Volt Everyday Alkaline Battery - Pack of 4 : Health & Household $6.98
18650 Battery Holder Pack of 8 Wire Lead Battery Storage Box Case Holder for 18650 Button Top Single Battery (amazon.com) $5.99
You are also going to need:
Soldering iron
Hot glue gun
Screw driver
adhesive tape
3d printer ( I use the ender 3 pro )
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!
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.
Downloads
Test Drive!
For this step you need to make sure its working so I took mine on a test drive!
Enjoy!
I hope you have fun with this air flipping car and use it safely!