Bluetooth Controlled Arduino Car

by shakeeldhanushka in Circuits > Arduino

510 Views, 2 Favorites, 0 Comments

Bluetooth Controlled Arduino Car

IMG_20210402_180220[1].jpg

RC car? DIY or BUY ?

In this tutorial ,you're going to learn how to make a robot car with Arduino which can control using Bluetooth.

මෙම නිබන්ධනයේදී, ඔබ බ්ලූටූත් භාවිතයෙන් පාලනය කළ හැකි රොබෝ මෝටර් රථයක් Arduino සමඟ සාදා ගන්නේ කෙසේදැයි ඉගෙන ගැනීමට යන්නේ ය.

Supplies

Arduino UNO * 1

L298n Dual H-Bridge Motor Driver * 1

Dc gear motor +65mm wheel * 2 pairs

hc 05 Bluetooth module * 1

12v battery * 1

jumper wires

breadboard (optional)

piece of wood (for car chassis)

Bluetooth control app

Makes Chassis and Attached the Motors

IMG_20210321_125351[1].jpg
IMG_20210321_132228[1].jpg
IMG_20210321_232951[1].jpg
IMG_20210321_233048[1].jpg
IMG_20210402_183801[1].jpg

Cut off enough piece of wood (approximately 15ccm*20cm) to make the chassis of the car. It must have to have enough space to install all other things on it. In here, I'm using MDF board to make the chassis for the car.

Then, connect jumper wires into the gear motors and fix the gear motors on the chassis of the car.

මෝටර් රථයේ චැසිය සෑදීම සඳහා අවශ්ය තරම් (ආසන්න වශයෙන් 15ccm * 20cm) ලී කැබැල්ලක් කපා ගන්න.එය මත අනෙක් සියල්ල ස්ථාපනය කිරීමට ප්රමාණවත් ඉඩ ප්රමාණයක් තිබිය යුතුය. මෙහි දී මම මෝටර් රථ චැසිය සෑදීම සඳහා MDF පුවරුව භාවිතා කරමි.

ඉන්පසු ජම්පර් වයර් ගියර් මෝටරයට සම්බන්ධ කරන්න.මෝටර් රථයේ චැසිය මත ගියර් මෝටර සවි කරන්න.

Connects Motors to the L298n Dual H-Bridge Motor Driver

l298.jpg
motor.jpg
to.jpg

Connect motor 1 into output pin1,pin2 and motor 2 into output pin3,pin4 in the H-Bridge.

Connect motor 1 control pins (IN1,IN2) into digital pin5,pin4 and motor 2 control pins (IN3,IN4) into digital pin3,pin2 in the Arduino Uno board.


NOTE : remember to connect control pins into the output pins which can do pulse width modulation (PWM) marked with ~ (tilde mark)

Recommend : more about L298n Dual H-Bridge Motor Driver and Motor.

මෝටර 1 output පින් 1, පින් 2 සහ මෝටර 2 output පින් 3, පින් 4 ලෙස H-Bridge සම්බන්ධ කරන්න.

මෝටර් 1 පාලක (IN1, IN2) pins digital pin5,pin4 සමඟ සම්බන්ධ කරන්න,මෝටර් 2 පාලක (IN3,IN4) pins digital pin3,pin2 සමඟ සම්බන්ධ කරන්න.

සටහන: pulse width modulation (PWM) (ටිල්ඩ් ලකුණ) ලෙස සලකුණු කළ ප්රතිදාන(output pins) ,control pins සමඟ සම්බන්ධ කිරීමට මතක තබා ගන්න.

නිර්දේශ : L298n L298n Dual H-Bridge Motor Driver සහ මෝටර් ගැන වැඩි විස්තර.

Connecting HC-05 Bluetooth Module

connect to power.jpg

Connect GND pin of the Bluetooth module into GND pin on Arduino Uno .Then connect Vcc pin of the Bluetooth module into 5v(power out) pin on Arduino Uno.

Connect TXD pin of the Bluetooth module into RXD pin on Arduino Uno and RXD pin of the Bluetooth module into TXD pin on Arduino Uno.

Note: Disconnect TXD and RXD pins in the Bluetooth module with the TXD and RXD pins on Arduino Uno while uploading the Arduino sketch(program code) into the Arduino Uno. (make it open circuit while uploading the Arduino sketch(program code) into the Arduino Uno)

බ්ලූටූත් මොඩියුලයේ GND පින් එක Arduino Uno හි GND pin වෙත සම්බන්ධ කරන්න.ඉන්පසු බ්ලූටූත් මොඩියුලයේ Vcc පින් එක Arduino Uno හි 5v (power out) pin වෙත සම්බන්ධ කරන්න.

බ්ලූටූත් මොඩියුලයේ TXD පින් එක Arduino Uno හි RXD pin හා බ්ලූටූත් මොඩියුලයේ RXD pin Arduino Uno හි TXD pin වෙත සම්බන්ධ කරන්න.

සටහන: Arduino Uno වෙත Arduino sketch(program code) එක උඩුගත(upload) කරන අතරතුරArduino Uno හි TXD සහ RXD pins සමඟ බ්ලූටූත් මොඩියුලයේ TXD සහ RXD pins විසන්ධි කරන්න.(Arduino Uno වෙත Arduino Sketch (ක්රමලේඛ කේතය) උඩුගත(upload) කරන අතරතුර එය විවෘත පරිපථයක් බවට පත් කරන්න)

Connecting With Power Source

full.jpg
IMG-20210330-WA0003.jpeg

Connect +5v pin in the L298n Dual H-Bridge Motor Driver with the VIN pin the Arduino Uno. Connect all the ground(GND) connections together. (Connect GND in the Arduino Uno and GND in the Dual H-Bridge Motor Driver with GND of the power source.)

L298n Dual H-Bridge Motor Driver හි + 5v පින් එක Arduino Uno හි VIN pin සමඟ සම්බන්ධ කරන්න.සියලුම ground (GND) සම්බන්ධතා එකට සම්බන්ධ කරන්න.(Arduino Uno හි GND සහ power source GND හි සමඟ Dual H-Bridge Motor Driver හි GND එකට සම්බන්ධ කරන්න.)

Uploading the Sketch

Download the sketch file and upload it into Arduino Uno when you are completes the circuit. You can change the sketch file in the way you want. It's good keep copy of a original sketch file if you think to modify it.

Note: Disconnect RXD and TXD pins and disconnect the circuit from external power source when the sketch is been uploading.

ඔබ පරිපථය සම්පූර්ණ කළ විට sketch file Download කර එය Arduino Uno වෙත upload කරන්න.ඔබට අවශ්ය ආකාරයට ස්කෙච් ගොනුව වෙනස් කළ හැකිය.ඔබ එය වෙනස් කිරීමට සිතන්නේ නම් මුල් ස්කෙච් ගොනුවක පිටපතක් තබා ගැනීම හොඳය.

සටහන: ස්කෙච් එක උඩුගත කරන විට RXD සහ TXD pins විසන්ධි කර බාහිර බල ප්රභවයෙන්(external power source)පරිපථය විසන්ධි කරන්න.

Setting Up the Bluetooth Controller App

20210506_135623.jpg
20210506_135705.jpg
20210506_135736.jpg
20210506_135813.jpg

Here I'm using Arduino Bluetooth Controller - All in One but you can use any app according to your platform.

open the app>go to CONTROLLER > Configure Buttons> set the values for buttons (automatically save).

That's it all, now you can enjoy it :-)

මම Arduino Bluetooth Controller - All in One භාවිතා කරන නමුත් ඔබේ වේදිකාව අනුව ඔබට ඕනෑම යෙදුමක් භාවිතා කළ හැකිය.

app විවෘත කරන්න > CONTROLLER යන්න> Configure Buttons> buttons සඳහා අගයන් සකසන්න (ස්වයංක්රීයව අගයන් සුරකිනු ඇත).

I'm happy to have your feedbacks and recommendations.