Bluetooth car

March 14, 2021

Bluetooth car

March 14, 2021

Created By

About This Project

Bluetooth Car is an Arduino based project code for the particular project is written below

this app use to control car


https://play.google.com/store/apps/details?id=braulio.calle.bluetoothRCcontroller&hl=en_IN&gl=US

Yash Ghunavat

My name is Yash Nilesh Ghunavat. I am 13 years old. I want to become a Robotics Engineer when I grow up. I have made many projects in Mechatron Robotics like Gripper Robot, Bluetooth Control Car, Bluetooth Controlled Light Bulb, Clap to on Light Bulb, Dancing LED etc.

Components Required

  • Arduino UNO
  • DC Motor
  • HC-05 Bluetooth Module
  • af motet driver shild

Schematics

In this image all the components with the connections are given

Code Of Project

  //Arduino Bluetooth Controlled Car 
 //Before uploading the code you have to install the necessary library 
 //Note - Disconnect the Bluetooth Module before hiting the upload button otherwise you'll get compilation error message. 
 //AFMotor Library https://learn.adafruit.com/adafruit-motor-shield/library-install 
 //After downloading the library open Arduino IDE >> go to sketch >> Include Libray >> ADD. ZIP Libray >> Select the downloaded 
 //ZIP File >> Open it >> Done 
 //Now You Can Upload the Code without any problem but make sure the bt module isn't connected with Arduino while uploading code 
 #include <AFMotor.h> 
 //initial motors pin 
 AF_DCMotor 
 motor1 
 ( 
 1 
 , 
MOTOR12_1KHZ ) 
 ; 
 AF_DCMotor 
 motor2 
 ( 
 2 
 , 
MOTOR12_1KHZ ) 
 ; 
 AF_DCMotor 
 motor3 
 ( 
 3 
 , 
MOTOR34_1KHZ ) 
 ; 
 AF_DCMotor 
 motor4 
 ( 
 4 
 , 
MOTOR34_1KHZ ) 
 ; 
  char 
 
command ; 
  void 
 
 setup 
 ( 
 ) 
 { 
Serial . 
 begin 
 ( 
 9600 
 ) 
 ; 
 //Set the baud rate to your Bluetooth module. 
 } 
  void 
 
 loop 
 ( 
 ) 
 { 
 if 
 ( 
Serial . 
 available 
 ( 
 ) 
 > 
 0 
 ) 
 { 
command = 
Serial . 
 read 
 ( 
 ) 
 ; 
 Stop 
 ( 
 ) 
 ; 
 //initialize with motors stoped 
 //Change pin mode only if new command is different from previous. 
 //Serial.println(command); 
 switch 
 ( 
command ) 
 { 
 case 
 'F' 
 : 
 forward 
 ( 
 ) 
 ; 
 break 
 ; 
 case 
 'B' 
 : 
 back 
 ( 
 ) 
 ; 
 break 
 ; 
 case 
 'L' 
 : 
 left 
 ( 
 ) 
 ; 
 break 
 ; 
 case 
 'R' 
 : 
 right 
 ( 
 ) 
 ; 
 break 
 ; 
 } 
 } 
 } 
  void 
 
 forward 
 ( 
 ) 
 { 
motor1 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor1 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor2 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor2 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor3 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor3 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor4 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor4 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
 } 
  void 
 
 back 
 ( 
 ) 
 { 
motor1 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor1 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor2 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor2 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor3 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor3 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor4 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor4 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
 } 
  void 
 
 left 
 ( 
 ) 
 { 
motor1 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor1 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor2 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor2 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor3 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor3 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor4 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor4 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
 } 
  void 
 
 right 
 ( 
 ) 
 { 
motor1 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor1 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor2 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor2 . 
 run 
 ( 
FORWARD ) 
 ; 
 //rotate the motor clockwise 
motor3 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor3 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
motor4 . 
 setSpeed 
 ( 
 255 
 ) 
 ; 
 //Define maximum velocity 
motor4 . 
 run 
 ( 
BACKWARD ) 
 ; 
 //rotate the motor anti-clockwise 
 } 
  void 
 
 Stop 
 ( 
 ) 
 { 
motor1 . 
 setSpeed 
 ( 
 0 
 ) 
 ; 
 //Define minimum velocity 
motor1 . 
 run 
 ( 
RELEASE ) 
 ; 
 //stop the motor when release the button 
motor2 . 
 setSpeed 
 ( 
 0 
 ) 
 ; 
 //Define minimum velocity 
motor2 . 
 run 
 ( 
RELEASE ) 
 ; 
 //rotate the motor clockwise 
motor3 . 
 setSpeed 
 ( 
 0 
 ) 
 ; 
 //Define minimum velocity 
motor3 . 
 run 
 ( 
RELEASE ) 
 ; 
 //stop the motor when release the button 
motor4 . 
 setSpeed 
 ( 
 0 
 ) 
 ; 
 //Define minimum velocity 
motor4 . 
 run 
 ( 
RELEASE ) 
 ; 
 //stop the motor when release the button 
 } 
  
 
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A red rc truck is sitting on top of a remote control.
December 12, 2021
Arduino IR remote controlled Car The project is arduino based project. the Links pf the projects are given below
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A person is holding a remote control in a living room.
November 4, 2021
Home Automation System is made because today's light bulbs tend to heat and this can cause blast in the house.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
A person is playing with a robotic head on a table.
By Siddhartha Kumar November 1, 2021
Key Elements Most of the Schools are Missing. Everyone has different criteria but one key element remains the same:” The quality of teaching
Show More
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A red rc truck is sitting on top of a remote control.
December 12, 2021
Arduino IR remote controlled Car The project is arduino based project. the Links pf the projects are given below
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A person is holding a remote control in a living room.
November 4, 2021
Home Automation System is made because today's light bulbs tend to heat and this can cause blast in the house.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
Show More