Selecta 3 in 1
Selecta 3 in 1
Technological
University
Main Campus
Final Project
Building a Sumobot/
Line Follower Robot
Group Members:
Candog, Shannen Aira A.
Cordova, Yssa Gie A.
Dayangco, Jacenfa O.
Sayson, Krishia T.
Tan, Niño James A.
Project Overview:
The project is a dual-mode robot designed to operate as both line follower and a
Sumobot. It is equipped with a DIP switch to toggle between two operational
modes as well as a calibration mode. In line follower mode, the robot utilizes IR
sensors to detect and follow a path marked by a black line on a white surface,
using an algorithm to get the position of the robot on the line to be fed into PID
to control motors with different speeds in a smooth manner. The sumobot also
utilizes the IR sensor for edge detection and uses two distance sensors to
provide differential speeds on left and right motors but without using PID.
The inspiration for the design of this project is the Tesla Cyber Truck.
Material Range A0 A1 A2 A3 A4 A5 A6 A7
Tarpaulin Min 344 301 348 432 405 345 343 333
Print
Electrical Min 380 332 396 464 447 421 413 379
Tape
Line Follower :
The line follower starts with reading the sensor values and updating a
boolean array which is used for checking if the robot is off the line (the
boolean array is all false). If the robot is on the line, then we use PID
Control, we get the position and error to get the correction values needed
for left and right motors.
If the robot is off the line, then it will start turning left or right depending
on the last recorded position before going offline. It will also start
counting how long it is turning to detect the possibility of turning in the
opposite direction.
Transitioning from off the line to PID control revolves around checking the
correction value from PID control. From the principle that if the correction
is 0, then the robot is at the center of the line, once the robot starts
turning, it will slow down when detecting black lines again and will start
moving forward when the robot is at the center of the line. You can
increase the range from 0 to 10 or more in the correction to make sure
the transition always happens
Sumobot:
First, sumobot uses the line sensors to see if it’s still inside the
sumobot ring. If all sensors say it’s safe (no white edges detected),
it continues. If not, it backs up and turns to avoid falling out of the
arena.
If the robot is safely inside the arena, it checks both left and right
using distance sensors. If nothing is close (radius of the arena), it
ignores that side. If both sides see nothing, then the robot moves
forward slowly to search. If it detects something close (radius of
the arena), it assumes it’s the opponent. If it’s very close (less than
10cm), it gets more aggressive and moves faster. It then uses a
helper function to decide how to turn toward the opponent and
moves the wheels accordingly.
If the robot ever sees the edge of the ring, it stops attacking, backs
up and turns, then goes back to searching.
1.3. Output Section
< Explain how you drive the dc motor based on the signal coming from
the microcontroller. If an IC is used, attached the functional table and
electrical specification of the IC >
The DRV8833 allows motor direction and speed using pwm, the table
below shows the input and the function it performs.
On default, we are using fast decay as we need more control of the motor
for every iteration.
We’re driving the motor at 7v, which is 1v higher than the motor and
within the voltage range of the motor driver. The driver can provide 1
amps on both outputs.
2. Chassis Design:
Legend:
3. Ultrasonic Sensors
4. Geared Motors
6. IR Sensor
8. Chassis
10. Housing
11. Push Button
12. Dip Switch
Type-C Nano 3.0 with the 1 ₱136.87 Global Merch Park - China
bootlaoder compatible Nano
controller for arduino CH340 USB
driver 16Mhz ATMEGA328P
Total ₱1416.5
Final Robot
Description No. of Price per Store bought
Items unit
Type-C Nano 3.0 with the 1 ₱136.87 Global Merch Park - China
bootlaoder compatible Nano
controller for arduino CH340 USB
driver 16Mhz ATMEGA328P
Dayangco, Jacenfa O.
Sayson, Krishia T.
Email Address:sayson.krishai8@gmail.com