Introduction: DUO BOT : the First of Its Kind**
Hi guys !! This is my very FIRST INSTRUCTABLE . Truly speaking , I decided to compile this project as I wanted to take part in the Instructable contest .
At first I was confused on what would be best for my project as I wanted something new.............something special . Even after putting much effort, I could not get upto something. I strolled the web a several times but found nothing new. But one day, all of a sudden, while sitting in my classroom , I got an Idea. " What if I combine two ideas into one " . Thus I came up with this Idea. Originally, the idea of the DUO BOT was something different but due to the lack of time for testing, I decided to try my Idea with something basic i.e. a combination of Obstacle Avoiding bot & a Bluetooth controlled bot. And to my luck , the Idea worked very well.
Here's the Instructable describing it ......
(**The name of my robot is not my patent or copyright . It is possible that that you may find some other stuff with the same name . It would just be a coincidence . Please inform me if you find so.)
Step 1: MATERIALS REQUIRED :
ELECTRONIC COMPONENTS :
- Arduino UNO
- L298N Motor Driver
- HC - 05 Bluetooth module
- HCSR-04 Ultrasonic sensor
- SG-90 Servo motor
- 2 x Geared motor (150 rpm)
- 2 x Wheels
- Robot Chassis
- Caster Wheel
- 1 x LED
- Jumper cables M - M & M - F
- 1 X battery clip
- 1 X Switch
- USB cable
- Screw driver
- Zip ties
- Some nuts & bolts
Step 2: ASSEMBLING THE CHASSIS :
Attach the geared motor to the robot chassis using a couple of nuts and bolts.
Fix the caster wheel in the chassis using a pair of nuts & bolts.
Attach the wheels of the motor using a pair of screws.
Step 3: FIXING THE ELECTRONIC COMPONENTS TO THE CHASSIS :
Fix the Arduino UNO microcontroller on the chassis using Zip ties.
(I used zip ties as it was easy to fix and use . You can also use nuts & bolts instead.)
Fix the L298n motor driver on the chassis using Zip ties.
Attach the servo motor in front of the chassis using a pair of screws. Try to fix the servo as near as possible to the edge of the chassis as it will work more efficiently in detecting the obstacle and sending the signal back to the Arduino.
Fix the HC-sr04 ultrasonic sensor on top of one the servo mounts using a pair of zip ties and screw the servo mounts on top of the servo motor.
Fix the HC-05 bluetooth module on the robot chassis. Actually I had fixed it on the Arduino expansion shield which I had made earlier.
Step 4: WIRING UP THE COMPONENTS :
CONNECTIONS FOR THE L298n MOTOR DRIVER :
In 1 :-------> Pin 7 of the Arduino board
In 2 :-------> Pin 6 of the Arduino board
In 3 :-------> Pin 4 of the Arduino board
In 4 :-------> Pin 5 of the Arduino board
M 1:-------->Motor 1 terminals
M 2:-------->Motor 2 terminals
CONNECTIONS FOR THE HC-05 BLUETOOTH MODULE :
+5v :------->+ 5 v of the Arduino board
GND:------>GND of the Arduino board
TX :-------->RXD of the Arduino board
RX :------->TXD of the Arduino board
CONNECTIONS FOR THE SERVO MOTOR :
Brown wire :-->GND of 9v power supply
Red wire :----->+9v of the 9v power supply
Signal (Orange wire) :--->Pin 9 of the Arduino board
CONNECTIONS FOR THE HC-sr04 ULTRASONIC SENSOR MODULE :
VCC :------->+5v of the Arduino board
Trig :-------->A1 pin of the Arduino board
Echo :------>A2 pin of the Arduino board
GND :------>GND pin of the Arduino board
CONNECT THE +VE TERNINAL OF THE LED TO PIN 2 OF THE ARDUINO BOARD & -VE TERMINAL TO GND OF THE ARDUINO BOARD.
CONNECT THE SWITCH TO PIN 8 OF THE ARDUINO BOARD.
I have attached a FRITZING diagram of the connections.
Step 5: CODING :
The DUO BOT is programmed using the Arduino IDE .
I have attached the program with this instructable.
You need to install the NEW PING library on the Arduino IDE.
Step 6: TROUBLESHOOTING :
- If an error occurs while uploading the program to the Arduino board , unplug the RX and the TX of the bluetooth module and try again.
- If the motors does not work in co-ordination , swap its terminals.
- Try using a high voltage battery to power the motor driver. If possible, use different batteries to power the Arduino and the motor driver.
Step 7: WHAT'S NEXT ?
Well now you have a unique robot # First Of Its Kind .
You can customise it as you want.
You can even try different combinations for the robot .
You can add different features to it. And of course share your project . I will attach a youtube video soon...
For any querries or suggestions , do comment in the comment box.
We have a be nice policy.
Please be positive and constructive.