Arduino Bluetooth Car Project Overview
Arduino Bluetooth Car Project Overview
University of Pamplona
Faculty of Engineering
2023
Arduino Car Project
Pamplona University
Faculty of Engineering
2023
1. Introduction
the engine that drives designers and creators to surpass seemingly impossible limits
unbreakable. In this context, our project comes to life: a fascinating and ambitious
in a unique competition: the 'Cars Battle'. This exciting challenge not only
it not only tests technical skill and design ability, but also explores the
incarnation of creativity and engineering skill. In this project, we will delve into
to other carts in a competition that defies the laws of physics and logic. Since the
we will discover how the synergy between hardware and software can unleash potential
amazing. With an emphasis on adaptability and strategy, our project seeks not only
stand out not only in terms of speed and agility but also in intelligent tactics that
• Implement a robust control system that allows for precise navigation and
reliable and secure between the cart and a remote control device.
• Develop an intuitive user interface that allows effective control of the cart
• Ensure that the cart meets the technical and dimensional requirements
techniques.
and versatile that uses the ATmega328P microcontroller. With 14 digital pins of
Input/output, 6 of which are suitable for PWM outputs, and 6 analog pins,
external current that supplies between 7 and 12V. Its easy programming through the
ideal option for electronic and robotics projects. With compact dimensions
measures 68.6 mm in length and 53.4 mm in width, as well as a weight of 25 g, the Arduino
integrated projects.
Image 1
Arduino UNO R3
Bluetooth HC-06 Module: The Bluetooth HC-06 module is an addition
Bluetooth. Equipped with the popular HC-06 Bluetooth module, this component
HC-06 integrates seamlessly with development boards like the Arduino Uno R3.
Its simple pairing and setup process, along with its compatibility
with Bluetooth 2.0 standard, it makes it an effective option for projects that
Image 2
Bluetooth Module HC-06
H L298 Bridge: The inclusion of the H L298 bridge in a project expands the
direct current. The H bridge L298, compatible with the Arduino Uno R3, facilitates the
motorized. With logic inputs compatible with TTL levels, the L298 integrates
no problems with the control logic of the Arduino Uno R3. In addition, its design
essential for projects that require precise and versatile motor control.
Image 3
H Bridge L298
6000mAh to the project provides a reliable and high-capacity power source to feed
batteries offer a generous amount of energy, making them ideal for low applications
When combined with the Arduino Uno R3 and other components, such as the module
Bluetooth HC-06 and the H bridge L298, the 18650 batteries provide the necessary mobility for
wireless projects or mobile devices. It is essential to consider management
suitable charging and discharging of the batteries through protection and regulation circuits
of voltage to ensure safe and optimized performance. In addition, these batteries are
Image 4
18650 lithium batteries
Gear motors with wheels: The incorporation of gear motors with wheels was
essential for the mobility and control of the robotic vehicle. These motors integrate both the
Image 5
Gear motors
Cable jumper: cables with connectors on both ends that allow for
quick and temporary connections between electronic components, such as development boards,
Image 6
Cable Jumper
4. Project description
the installation of the gear motors and the base plate was initiated, accompanied by their
power supplies, which serve as support for the batteries. In addition, it was implemented
a second base to assemble the H bridge, along with the Arduino and its corresponding module
Bluetooth.
incorporating AT commands in the Bluetooth module. This setting will be reflected later in
#include <SoftwareSerial.h>
int Pin_Motor_Right_A = 2;
int Pin_Motor_Right_B = 4;
int ENA = 3;
int Pin_Motor_Izq_A = 7;
int Pin_Motor_Izq_B = 6;
int ENB = 5;
int time=0;
void setup() {
[Link](9600);
pinMode(Pin_Motor_Der_A, OUTPUT);
pinMode(Pin_Motor_Der_B, OUTPUT);
pinMode(Pin_Motor_Left_A, OUTPUT);
pinMode(Pin_Motor_Left_B, OUTPUT);
set pin mode of ENA to OUTPUT;
pinMode(ENB, OUTPUT);
}
{
Stop_Mover();
}
void Move_Forward()
{
digitalWrite(Pin_Motor_Right_A, HIGH);
digitalWrite(Pin_Motor_Der_B, LOW);
analogWrite(ENA,250);
digitalWrite(Pin_Motor_Left_A, HIGH);
digitalWrite(Pin_Motor_Izq_B, LOW);
analogWrite(ENB,230);
}
void Mover_Backward()
{
digitalWrite (Pin_Motor_Righ_A, LOW);
digitalWrite(Pin_Motor_Der_B, HIGH);
analogWrite(ENA,250);
digitalWrite(Pin_Motor_Left_A, LOW);
digitalWrite(Pin_Motor_Left, HIGH);
analogWrite(ENB,230);
}
void Move_Right()
{
digitalWrite(Pin_Motor_Der_A, HIGH);
digitalWrite(Pin_Motor_Der_B, LOW);
analogWrite(ENA,170);
digitalWrite (Pin_Motor_Left_A, HIGH);
digitalWrite(Pin_Motor_Left_B, LOW);
analogWrite(ENB,240);
}
void Move_Left()
{
digitalWrite (Pin_Motor_Right_A,HIGH);
digitalWrite(Pin_Motor_Der_B, LOW);
analogWrite(ENA,250);
digitalWrite(Pin_Motor_Left_A, HIGH);
digitalWrite(Pin_Motor_Left_B, LOW);
analogWrite(ENB,155);
}
void Mover_Stop()
{
digitalWrite(Pin_Motor_Der_A, LOW);
digitalWrite(Pin_Motor_Der_B, LOW);
analogWrite(ENA,0);
digitalWrite(Pin_Motor_Left_A, LOW);
digitalWrite (Pin_Motor_Left_B, LOW);
analogWrite(ENB,0);
}
precise and structured process in the construction of the vehicle. The adaptation of the code with
they detail the essential connections to achieve the car's mobility, thus completing the
Image 7
Connection system (Proteus)
conclusions
user. The efficient combination of motors, H bridges, Arduino, and a Bluetooth module
has allowed the creation of a robotic vehicle capable of executing various strategies of
The implementation of wireless communication via the Bluetooth module does not
not only facilitated the remote control of the vehicle, but also added a layer of
accessible for the design of the control logic, allowing precise movements such as
forward, backward, turns to the right and left, as well as stopping, fundamental for a
dynamic battle.
The project was not only notable for its functionality, but also for its potential.
educational and playful. It offered a practical and fun experience that combined aspects of
as an inspiring platform for future projects, suggesting possible improvements such as the
Image 9
Housing design (printed)
Image 10
Connection system in basic