Competition Robots
Two competition robots with different jobs: one finds and pushes an opponent out of the ring, the other is driven from a phone to play football.
Technologies
- Arduino
- C++
- HC-05 Bluetooth
- L298N motor driver
- HC-SR04 ultrasonic
- DC motors
Inputs
- HC-05 BluetoothUART
- HC-SR04 ultrasonicTrig / Echo
- Battery packPower
Arduino
Drive logic in C++
Outputs
- L298N motor driverPWM + DIR
- Left DC motorvia L298N
- Right DC motorvia L298N
Problem
Competition robots have to react fast with cheap parts and limited power, and keep working after collisions.
Solution
An Arduino reads an ultrasonic sensor or Bluetooth commands and drives DC motors through an L298N motor driver, with simple, predictable control logic.
Two robots, two jobs
Same core parts, different control logic.
Sumo robot
Find the opponent and push it out of the ring.
The HC-SR04 measures distance; when something is close, both motors drive forward at full power through the L298N.
Robo football robot
Move quickly and push the ball where the driver wants.
Commands from a phone arrive over HC-05 Bluetooth; the Arduino translates them into motor directions and speed.
Control signal chain
Phone app or sensor
Command or distance reading
HC-05 / HC-SR04
UART or trig/echo
Arduino
Decides direction and speed
L298N
PWM + direction pins
DC motors
Left and right wheels
Key features
- Sumo robot: ultrasonic opponent detection
- Robo football robot: phone control over HC-05 Bluetooth
- Dual DC motor drive through an L298N
- Robust chassis for contact competitions
What I learned
- Why motors need a driver instead of an Arduino pin
- Sending and parsing commands over Bluetooth serial
- Tuning behaviour quickly under competition pressure