Mini Project ROBOT BARU
Mini Project ROBOT BARU
CLO 1 / 2 / 3 / 4
PLO 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12
DK 1 / 2 / 3 / 4 / 5 / 6 / 7
DP 1 / 2 / 3 / 4 / 5 / 6 / 7
NA 1 / 2 / 3 / 4 / 5 / 6
ELECTRICAL ENGINEERING DEPARTMENT
ACADEMIC SESSION: 1 2023/2024
DEC 50122 : EMBEDDED ROBOTICS
ASSESSMENT: MINI PROJECT
TITLE: SUMO ROBOT
LECTURER’S NAME:
GROUP NO. :
TOTAL
STUDENT ID & NAME : MARKS
(100%)
(3)
(4)
(5)
In this project, you need to design and develop an Autonomous Sumo Robot. Task to be
completed (autonomous):
SUMO Arena
3 You must plan and complete this robot within 3 weeks. Your report must include
RM 17.9 1
RM 4.90 1
RM13.90 1
RM29.00 1
5 Rocker Switch Small 2 Pins Red
RM1.60 1
RM2.70 1
10 IR sensor
RM6.00 2
11 Battery AA
RM15.00 2
TOTAL RM106.5
WORK DELEGATION AMONG GROUP MEMBERS
TEST
ROBOT BUY
COMPONENT
INSERT CODING
ON ROBOT
DO CODING
ON ORDUINO
DO CONNECTION
ON COMPONENT
BLOCK DIAGRAM
IR SENSOR ULTRASONIC
IR SENSOR
SENSOR
SKETCH OF THE ROBOT
CIRCUIT DESIGN WITH SIMULATION IN PROTEUS
CODING
void setup() {
pinMode(ENA, OUTPUT);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENB, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(IR1, INPUT);
pinMode(IR2, INPUT);
pinMode(TRIG_PIN, OUTPUT);
pinMode(ECHO_PIN, INPUT);
Serial.begin(9600);
}
void loop() {
int ir1Value = digitalRead(IR1);
int ir2Value = digitalRead(IR2);
int distance = getDistance();
Serial.print("IR1: ");
Serial.print(ir1Value);
Serial.print(", IR2: ");
Serial.print(ir2Value);
Serial.print(", Distance: ");
Serial.print(distance);
Serial.println(" cm");
delay(10);
}
void moveForward() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA, 255);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
analogWrite(ENB, 255);
}
void moveBackward() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
analogWrite(ENA, 200);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
analogWrite(ENB, 200);
}
void turnLeft() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
analogWrite(ENA, 200);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
analogWrite(ENB, 150);
}
void turnRight() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA, 150);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
analogWrite(ENB, 200);
}
void stopRobot() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
analogWrite(ENA, 0);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
analogWrite(ENB, 0);
}
void moveFast() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA, 240);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
analogWrite(ENB, 240);
}
int getDistance() {
digitalWrite(TRIG_PIN, LOW);
delayMicroseconds(2);
digitalWrite(TRIG_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG_PIN, LOW);
return distance;
}
RESULT
DISCUSSION
We have to construct the sumo robot for this little project. The 2WD smart robot car chassis,
the 2Amp 7V-30V L298N Motor Driver / Stepper Driver (2 Channels), the Bluetooth serial transceiver
HC-05, the Uno compatible Ch340 with USB cable, the rocker switch small with 2 red pins, the jumper,
the ultrasonic, the infrared, the breadboard, and the battery must all be purchased first.
The robot's obstruction is detected by the ultrasonic.Therefore, we add the code such that the
DC motor will cut off when the robot encounters an impediment. The white or distinct line can be
detected by the infrared sensor.Thus, we put the coding so that it will change orientation when
the infrared sensor detects a different line.
We first insert the code for the ultrasonic function and how it operates. Second, we insert the
infrared sensor function coding, and it functions as well. But the infrared sensor only functions when
we insert both codes.
After connecting everything and configuring the Arduino, we see that all of the hands-on work
we do, along with guidance from Pn Faizah during our lecture, enable us to successfully complete
this small project.
Name Registration Number
S1 NURUL LIDIYA BT MOHD SULAIMAN 08DEU21F1077
S2 NUR YUANA QHAIRUNISHA BT MASRULL 08DEU21F1098
S3
S4
Rubric for Practical Skill (CLO3,
PLO5)
Skills Excellent (5) Very Good Good (3) Fair (2) Unsatisfactory (2) Weight S1 S2 S3 S4
(4)
Able to
Able to write Able to write
Development Able to write write and
and able run it and able run
and and able run able run Unable to write
with more than it with more 3
implementation it without any it with or run it
3 but less than than 10
codes. error. less
10 errors. errors.
than 3
errors.
Able to
draw
Able to draw Schematic Schematic
schematic No labeling done
Drawing schematic drawing and not complete
but and unable to 2
schematic complete with labelling not and without
labelling draw schematic
labelling. complete. any labelling.
not
complete.
Able to run Able to
Able to run Able to run
simulation run Unable to run
simulation with simulation
without any simulation simulation.
an error. with an
error . with an
Simulation error. 3
error.
Simulation Simulation log Simulation
Simulation log unable to
log shows show more than log show
shows no generate
less than 3 3 errors but more than 10
error simulation log
errors. less than 10 errors.
errors.
Total
Attribute Sub attribute Very Weak (1) Weak (2) Fair (3) Good (4) Very Good (5) S1 S2 S3 S4
Deliver ideas
Deliver ideas Deliver ideas with Deliver ideas with Deliver ideas with
with minimal
Organization unclearly, satisfactory clarity, good clarity, excellent clarity,
clarity,
of Ideas loosely and comprehensiveness comprehensiveness comprehensiveness
comprehensivene
disorganized. and organization. and organization. and organization.
ss and
organization.
Work was not
divided equally.
Work was Work was divided Work was divided
Only few Work was
Delegation of divided satisfactorily excellently
members are divided well
Work minimally amongst group amongst group
doing the amongst group
amongst group members. members.
work while members.
members
others are
ignored.
No motivation Minimal Satisfactory Very high
High motivation to
Motivation to complete motivation to motivation to motivation to
complete task.
task. complete task. complete task. complete task.
Budget is not
clear, not
Budget is not Budget is not Budget clear,
reasonable and
clear, not clear, reasonable reasonable and
not cost
reasonable but and cost effective. cost effective.
effective. Budget is clear,
cost effective. Budget narrative Budget narrative
Budget reasonable and
Budget narrative identifies expenses identifies expenses
narrative cost effective.
provides detail and provides and provides
Budget and does not Budget narrative
explanation of general general
cost provides itemizes expenses
expenditures but explanation, but explanation, but
detail in detail. Budget
lacks depth and lacks depth and lacks depth and
explanation of calculation are
connections connections connections
expenditures. correct
between costs between costs and between costs and
Budget contains
and the goals of the goals of the the goals of the
calculation
the project. project. project.
errors and/or is
completely
incorrectly.
Total