วันจันทร์ที่ 13 กุมภาพันธ์ พ.ศ. 2560

Arduino Bluetooth Tracked Robot via Android Application

   


 This instruction introduce to build Tracked robot,controlled by Arduino controller via bluetooth Android application.
Materials and Tools
Materials
1.Tamiya Track and wheel set.











2.Tamiya Gear box - Individual drive-two motors.













3.Tamiya perforated plastic plate.









4.Dupont wires 200 mm.











5.Arduino UNO
6.HC-06 Bluetooth module for Arduino.













7.L298N Dual H-Bridge motor drive module.










8. 2-LEDs(Different color)
9. 2-Resistor 1 kohm. 1/4 watt.
10.Piezo buzzer.


11.Battery 5-6V.
Tools
1.Screw driver.
2.Plier.
3.Fixing material : screws,bolts,nuts.
Hardware assembly & Electrical wiring
1.Assembly Track and wheel set as manual sheet.
2.Install Arduino UNO controller ,LEDs ,Buzzer,L298N motor drive module and battery on chassis.
3.Wiring all components together as circuit diagram.(In diagram,It's another motor drive module, I cannot find L298N device.)

Arduino pins to HC-06 :
0 - Rx
1 - Tx
2 - State
Arduino pins to L298N motor drive module :
10 - ENA
9 - IN1
8 - IN2
7 - IN3
6 - IN4
5 - ENB
Connect Arduino GND pin and L298N motor drive module GND.
Arduino pins to L298N motor drive module :
Connect power output to Motor A and B
Connect battery to Arduino controller and L298N drive module (can use battery up to 12V.)
Arduino pins to other parts :
Front light LED - 3
Back light LED - 4
Piezo buzzer - 12
The sketch code and Android application
Arduino sketch code :
1.Down load sketch from Github.
2.Upload sketch to Arduino controller.(Before click upload ,it's necessary to take HC-06 Bluetooth 5V. power off)
3.Open Arduino software serial monitor to see output.
Smart phone/Tablet Android application installation :









1.Use Android smart phone to install "Arduino Bluetooth RC Car" free application from Google play store.
2.Pair Bluetooth communication between smart phone and HC-06.
2.1 Scan device and pair.Password of HC-06 is "1234" from factory.
2.2 After paired ,open application and choose BT connection menu on application to connect between devices.
2.3 If communication complete,green light will appear.If communication not complete,red light will blink.Try to pair device again.
  Test each functions on application.Normally,software have been passed real operation.It shall work fine.


ไม่มีความคิดเห็น:

แสดงความคิดเห็น