Bluetooth RC Drift Car
Bluetooth RC Drift Car
Car
DECEMBER 29
1
Circuit diagram
2
1st Arduino UNO
is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins (of
which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB
connection, a power jack, an ICSP header and a reset button. It contains everything needed to
support the microcontroller; simply connect it to a computer with a USB cable or power it with
a AC-to-DC adapter or battery to get started. You can tinker with your UNO without worrying
too much about doing something wrong, worst case scenario you can replace the chip for a few
dollars and start over again.
HC-05 is a Bluetooth module which is designed for wireless comunication. This module can
be used in a master or slave configuration.
3rd A DC motor is defined as a class of electrical motors that convert direct current electrical
energy into mechanical energy.
4th Servo motors are great devices that can turn to a specified position.
Usually, they have a servo arm that can turn 180 degrees. Using the Arduino, we can tell a servo
to go to a specified position and it will go there. As simple as that!
Servo motors were first used in the Remote Control (RC) world, usually to control the steering of
RC cars or the flaps on a RC plane. With time, they found their uses in robotics, automation, and
of course, the Arduino world.
5th A H-bridge is an electronic circuit that switches the polarity of a voltage applied to a load.
These circuits are often used in robotics and other applications to allow DC motors to run
forwards or backwards. The name is derived from its common schematic diagram
representation, with four switching elements configured as the branches of a letter "H" and
the load connected as the cross-bar.
Most DC-to-AC converters (power inverters), most AC/AC converters, the DC-to-DC push–pull
converter, isolated DC-to-DC converter most motor controllers, and many other kinds of power
electronics use H bridges. In particular, a bipolar stepper motor is almost always driven by a
motor controller containing two H bridges.
3
Project code
#include <Servo.h>
Servo servo;
int durum;
int Hiz=255;
void setup() {
pinMode(motorA1, OUTPUT);
pinMode(motorA2, OUTPUT);
pinMode(motorB1, OUTPUT);
pinMode(motorB2, OUTPUT);
servo.attach(7);
int aciDegeri=45;
Serial.begin(9600);
void loop() {
durum = Serial.read();
4
servo.write(45);
if (durum == '1'){
Hiz=50;}
Hiz=150;}
Hiz=255;}
if (durum == 'F') {
servo.write(90);
servo.write(0);
5
else if (durum == 'B') {
servo.write(90);
servo.write(0);
servo.write(90);
servo.write(0);
6
else if (durum == 'S'){