Arduino Sumo Robot: Before We Start .
Arduino Sumo Robot: Before We Start .
by ahmedazouz
Before we start .. fight and survive to not be cross out of ring any way.
What is the sumo robot? So let’s have a look to The Sumo robot competition
laws:
It is a self-controlled robots with specific dimensions
and features, it is also designed in a Hostile shapes I will explain some important roles you should
which qualify it to participate in the contests and consider while building your own SUMO it also might
competitions with other robots. help you Imagine and innovation your own Idea
without going in deep details.
The name “sumo” came from an old Japanese sport,
which is two opponents fighting in a ring, each of 1. Dimensions: Max Width 20 cm, Max Length 20 cm,
them trying to push the other opponent out of it, And Height not specified.
this is what should robots also do in the sumo
robotics competitions, where two robots placed in the 2. Shape: the robot shape can be changeable after
ring and each other trying to push out its opponent. starting the race, but without the inseparable parts to
maintain being one central Object.
The idea:
3. Weight: does not exceed 3 kg.
Build a robot with a certain specifications and
commensurate with the laws of that competition 4. Robot must be self-controlling.
(Sumo), this robot must be in exact dimensions to
1 Arduino Ano3
2 DC Motor
1 Ultrasonic sensor
2 IR TCRT5000
1 Battery 9v
4 Robot Wheels
jumper wires
https://youtu.be/lwrcF8nm78A
It is a main board that control all the parts and link it 4- L298N Dual H Bridge for Arduino
together
It is a small panel that provides constant voltage to
the motors, as well as the support of the Arduino This sensor has the ability to distinguish between the
plate with good control of movement and voltage. colors of the ring).
The ultrasonic sensor is used to locate the opponent's It support the main board (Arduino) with the important
robot and is usually placed at the top of the robot. voltage.
As we have already mentioned, the contest ring It support the two motors (DC Motor) with the
designed in a certain size and it have two colors, important voltage and it must be separated to give the
filling is black and frame is white. The contestant full force for the wheels.
should not go out. Therefore, we use the IR sensor to
make sure that the robot will not be out of the ring. 9- Jumper wires
I’ve made two sumo robot designs using Google 3D more creative designs and do your own model.
sketch-up because I like to create paper models of
my robots before I cut parts out of acrylic on the laser In order to be more sensitive to the robot weight in
cutter. To verify that all the parts will fit together submitted or then put the batteries in the front of the
properly, it’s important that the paper models are robot with the front shield at a 45 degree angle to the
printed at the exact size of drawings. form of the robot.
And I take into consideration to be in specific Download the design 1 from here
measuring with competition laws, so try to think in a
Robot2.rar">Download the design 2 from here Open the PDF file with Adobe Acrobat Reader
(recommended software)
You may also Download Paper model template
View in 3D Download
https://www.instructables.com/ORIG/FMT/KWV0/JUINDXYE/FMTKWV0JUINDXYE.skp
…
Download
https://www.instructables.com/ORIG/FT1/MQGW/JCGKB6VC/FT1MQGWJCGKB6VC.pdf
…
As we mentioned before that the robot must have its ring border.
own ability to control it self, so it gives us the ability to
programmed it in more than one way, it depending on · If Read of IR presence of white color, it must move
how you want the robot to play on the ring just as any the robot directly in the opposite direction of the
opponent in real want to win the game. sensor (for example: If the front sensor, which gave
an indication of the white color of the robot moves
Play strategy (1): backward)!
· We will make the robot around itself continuously. Play strategy (2):
· The robot is always measuring the distance · At the start robot measure the distance in front.
continuously during the rotation.
· Robot move back the same measured distance.
· If the opponent distance measured is lower than
(10cm for example), that means the opponent is in · Robot stop rotating and then starts attack suddenly
front of robot us directly. (move forward with full force).
· The robot must stop rotating and then starts the · In case of opponent attach robot must rotate 45
attack (move forward with full force quickly). degrees while to survive itself if falling out of the ring.
· The robot must take the readings from the IR · The robot must take the readings from the IR
sensors always to be sure that we didn’t cross the sensors always to be sure that we didn’t cross the
ring border. sensor (for example: If the front sensor, which gave
an indication of the white color of the robot moves
· If Read of IR presence of white color, it must move backward)!
the robot directly in the opposite direction of the
https://youtu.be/GdatAEPkm08
Step 5: Programming
Download the Ultrasonic library from here first and install it:
https://github.com/ErickSimoes/Ultrasonic/blob/mas...
/*
by ahmed Azouz
https://www.instructables.com/id/How-to-Make-Ardu...
*/
#include Ultrasonic.h
Ultrasonic ultrasonic(4,3);
void setup()
{
Serial.begin(9600);
delay (5000); // as per sumo compat roles
}
void loop()
{
} //--------------------------------------------
void FORWARD (int Speed){
//When we want to let Motor To move forward,
// just void this part on the loop section .
analogWrite(IN1,Speed);
analogWrite(IN2,0);
analogWrite(IN3,0);
analogWrite(IN4,Speed);
}//--------------------------------------------
void BACKWARD (int Speed){
//When we want to let Motor To move forward,
// just void this part on the loop section .
analogWrite(IN1,0);
analogWrite(IN2,Speed);
analogWrite(IN3,Speed);
analogWrite(IN4,0);
}//--------------------------------------------
void ROTATE (int Speed)
{
//When we want to let Motor To Rotate ,
// just void this part on the loop section .
analogWrite(IN1,Speed);
analogWrite(IN2,0);
analogWrite(IN3,Speed);
analogWrite(IN4,0);
}//--------------------------------------------
void Stop(){
//When we want to Motor To stop ,
// just void this part on the loop section .
analogWrite(IN1,0);
analogWrite(IN2,0);
analogWrite(IN3,0);
analogWrite(IN4,0);
}
You need to install the "Ultrasonic.h" library first on your Arduino IDE
Download it from here: https://github.com/JRodrigoTech/Ultrasonic-HC-SR04
I'm sorry ! But the Ultrasonic-HC-SR04 library does not work for the arduino Uno, how do I fix it?
https://www.tinkercad.com/things/0yuaGglNlQA
Good Morning
Do you have PDF Design of the robot two wheels
Good morning,
Sure I will upload it so soon
Good night
thanks for attention
At first sorry for late.
Second.. we need the ultrasonic sensor to read the distance continuously, because the target
(opponent) is not in a fixed place , so your robot must read more inputs to an action in time.
I want to ask about it where I should but it because in the circuit it's not found also how I can
compare between the Altra Sonic sensor circuit and bridge circuit and how I can bute the it with
them ?
Excellent job .. Excellent achievement and performance .. The idea .. steps .. teaching style and
professional vocabulary are really great .. God bless you .. and wish you bright future.