Arduino User Controlled Fighting Robot
by Piyush_ROBOTICS in Workshop > Science
508 Views, 5 Favorites, 0 Comments
Arduino User Controlled Fighting Robot
Hi, my name is Piyush and this is my Human Fighting Robot which is controlled by the user by the remote. This is an intermediate project on a difficult scale but the result is so worth making. This is a clear step-by-step instruction on how to make it yourself. this post contains videos to make it easy to understand and build the robot.
GOOD LUCK!
Supplies
-6 tactile push buttons
-male-to-male and male-to-female jumper wires
-2 arduino unos
-Arduino cable and computer to program it
-2 HC-05 Bluetooth modules
-1 breadboard
-14 MG995 servo motors
-MANY screws and bolts for servo motors
-metal parts for servo is from Skyfi Labs company (not custom made)
-2-4 metal strips
-servo bearings
-3 servo horns
-power cable to cut for the servo driver
-plug for power cable
-2A12 16 channel servo/PWM driver
-double sided tape
Here are some pictures of some:
Connections for HC-05 and Code
Connections for both Arduino's:
RX pin - pin 13 of Arduino UNO
TX pin - pin 12 of Arduino UNO
GND pin - GND (Ground) of Arduino UNO
VCC pin - 5V pin or VIN pin of Arduino UNO
After the connections, upload this code ↓↓↓ and then unplug the usb connected to the Arduino. Next, hold the button on the HC-05 and replug the Arduino, and once the HC-05 starts to blink slowly, you can release your hand, this process will put the HC-05 in AT mode. Next, open the serial monitor which is the magnifying 🔍 icon on the top right corner of Arduino IDE.
Downloads
BT Module(HC-05) With Slave and Master Configuration
Follow the pictures with there commands, the command is written on top and the response is on the bottom shown as the output in the serial monitor.
important ! : make sure that you have the same settings as me.
AT COMMANDS:
AT- to see if the the Hc-05 is in AT mode and you should receive "OK", which means it is good to set up.
AT+UART=38400,0,0 - set the baud rate to communicate both the BT modules properly so they understand what they send to each other.
AT+ADDR?-copy the address of the BT module because to link them , you need to store their address in each other's BT module. So copy the address or write it on paper
AT+CMODE=0- this command makes the BT module to only focus on 1 more BT module
AT+ROLE=0/1-set the role to either 0 or 1 which makes the BT module either slave or master
If you need help with this, follow this tutorial:
https://youtu.be/P3CXbMqMC_k
Setting All Servo Motors to 90 Degrees
Take 3 male-to-male jumper wires and fix them to your Arduino
Red wire of servo (VCC) to Arduino VCC
The brown or black wire of the servo (GND) to Arduino GND
Yellow or orange wire of servo (DATA) to Arduino pin 2 (Temporary only for this step)
Next, upload this code then keep on switching the servos to set them all to 90 degrees:
Downloads
Build the Controller
first, take the six push buttons and place them on the breadboard in a way so all of the first side of the switch is connected to the ground pin and the other pin to its own digital read pin on the Arduino UNO (Remember that your controller does not have to look exactly the same as mine)
switches | pin
1 | 2
2 | 3
3 | 4
4 | 5
5 | 6
6 | 7
The Bluetooth module should already be connected to the Arduino UNO. After everything is done, upload this code for the controller:
Downloads
Building the Robot
Materials (this is the list of items you need, get some extra things in case you need them):
2 hands:
14 servo bracket
14 servo bracket mount
14 metal horns(gear for servo roter)
6 mini screws
104 screws
106 bolts
10 bearings
2 metal strips for hip
2 big U bracket
10 pcs 90-degree angle
14 servo motors
here's how to make it:
IMPORTANT
There have to be things kept in mind like the position of the servo motor. when fixing the place of the servo, make sure that the servo is set at the correct angle.
How To Edit the code: https://youtu.be/dz8IpfZ0b90
Poses
To customize the code, watch this video: https://youtu.be/dz8IpfZ0b90
You Should Be All Done!
Plug in the robot and the controller to a power source or you can attach batteries to the Arduino UNO like this,
watch the 2 Hc-05 connect. Then use the controller to control the robot and see it do YOUR custom moves!
Demonstration
This is the Demonstration of my robot to see how it should work.
Thank you for joining me on the process of Building this Robot and hope you learned something