0% found this document useful (0 votes)
19 views18 pages

Group 1 Robotics Activity

The document describes three activities for a robotics seminar and field trip. The first activity involves assembling a car robot. The second activity involves coding the robot to perform movements like forward, reverse, turning, and stopping. The third activity involves coding the robot for line tracing.

Uploaded by

Kenneth Aquino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views18 pages

Group 1 Robotics Activity

The document describes three activities for a robotics seminar and field trip. The first activity involves assembling a car robot. The second activity involves coding the robot to perform movements like forward, reverse, turning, and stopping. The third activity involves coding the robot for line tracing.

Uploaded by

Kenneth Aquino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Subject: Seminars and Field Trips (Robotics topic)

Date: June 5, 2023


Group #: 1
Activity #: 1
Title: Assembling of Car Robot

I. Summary/Description/Overview:
The objective of the project is to build or assembling a car robot that could passes through a
specific course with corresponding turns.
II. Learning Objectives:
The students should be able to:
1. Understand the description and functions of each part.
2. Assemble the parts needed for this project.
3. Familiarize the Arduino board and its component.

III. Materials:

Item and Quantity Description/Specs Picture of the Material


Mini USB to USB Used to charge the battery
for the robot.

Motor Driver Controls the operation of


the electric motors.

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


Arduino Nano A compact and versatile
microcontroller that has an
open-source hardware and
software platforms which is
designed for easy
prototyping and
development of electronic
parts.

Pepito Board An alternative for the bread


board, designed specifically
for robotics. This is used a
sort of motherboard of the
robot.

Motor Brackets Used to hold the motors and


wheels in place.

Gear Motors Motors that power the


wheels, enabling it to spin
and move.

Caster Wheel This is the acting front wheel


of the robot.

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


Battery Used to power the robot
remotely which 9 volts of
power.

2 Wheels Powered by through a


motor, this allows the robot
to move around.

2 Short Screws and 2 nuts. Used to keep the motor


driver in place.

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


4 long screws and 4 nuts. Used to keep the motor in
place.

2 long screws and 2 nuts. Used to put the caster wheel


in place.

IV. Instruction:
1. Clip both red and black wire.
2. Connect the wire to the motor driver.
3. Solder the wire into the motor driver.
4. Put the motor brackets in the gear motors.
5. Loose the screw of the green part of the motor driver.
6. Put the wire to the green part of the motor driver
7. Tighten the screw of the green part of the motor driver.
8. Put the motor driver to the designated place in the pepito board and screw it.
9. Put the gear motors on the pepito board and screw it.
10. Insert the wire to the motor driver.
11. Insert the caster wheel under the pepito board and screw it.
12. Insert the wheel to the bracket of the gear motors.

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


V. Code: [copy-pasted code from Arduino IDE]
*As of this part, there is no code yet*
VI. Documentation:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


VII. References:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


Subject: Seminars and Field Trips (Robotics topic)
Date: July 17, 2023
Group #: 1
Activity #: 2
Title: Implementation of Forward, Reverse, Turn Left, Turn Right, Stop

I. Summary/Description/Overview:
The objective of the project is to code a car robot that could do forward, reverse, turn left, turn
right and stop.
II. Learning Objectives:
The students should be able to:
1. Understand how it supposed to do.
2. Write a code for the car movements
3. Do trials in the written program to the car robot.

III. Materials:
*No materials needed for this activity*
IV. Instruction:
1. Analyze how the car is supposed to moved.
2. Write some codes in the program for the forward.
3. Try if the program works properly.
• If the program works properly, then you can proceed to the other car movements.
• If the program doesn’t work properly, then try to modify it until it succeeds.
4. Write and code the program until everything works properly.
5. Save your program into your device.

V. Code: [copy-pasted code from Arduino IDE]

int LeftA = 5;
int LeftB = 9;
int RightA = 6;
int RightB = 10;
int SPK = 3;
byte LED = A1;

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


void setup() {
pinMode(LeftA, OUTPUT);
pinMode(LeftB, OUTPUT);
pinMode(RightA, OUTPUT);
pinMode(RightB, OUTPUT);
pinMode(LED, OUTPUT);
pinMode(SPK, OUTPUT);
}

void loop() {
//digitalWrite(LED, HIGH);
//digitalWrite(LED, LOW);
forward();
delay(2000);
Stop();
delay(1000);

reverse();
delay(2000);
Stop();
delay(1000);

TurnLeft();
delay(450);
Stop();
delay(1000);

TurnRight();
delay(450);
Stop();
delay(1000);
//delay(1000);
//TurnLeft();
//Stop();
//TurnRight();
//delay(500);
//reverse();
//delay(500);
}
//HIGH = 1
void forward() {
digitalWrite(LeftA, 1);
digitalWrite(LeftB, LOW);
digitalWrite(RightA, LOW);

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


digitalWrite(RightB, 1);
}

void reverse() {
digitalWrite(LeftA, LOW);
digitalWrite(LeftB, 2);
digitalWrite(RightA, 2);
digitalWrite(RightB, LOW);
}
//LOW IN TURN IS
void TurnLeft () {
digitalWrite(LeftA, LOW);
digitalWrite(LeftB, LOW);
digitalWrite(RightA, LOW);
digitalWrite(RightB, 1);
}

void TurnRight () {
digitalWrite(LeftA, 1);
digitalWrite(LeftB, LOW);
digitalWrite(RightA, LOW);
digitalWrite(RightB, LOW);
}

void Stop () {
digitalWrite(LeftA, LOW);
digitalWrite(LeftB, LOW);
digitalWrite(RightA, LOW);
digitalWrite(RightB, LOW);
}

VI. Documentation:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


VII. References:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


Subject: Seminars and Field Trips (Robotics topic)
Date: August 14, 2023
Group #: 1
Activity #: 3
Title: Implementation of Line-tracing

I. Summary/Description/Overview:
The objective of the project is to code a car robot that could do follow black line in a track.
II. Learning Objectives:
The students should be able to:
1. Understand how it supposed to do.
2. Write a code for the car movements
3. Do trials in the written program to the car robot.

III. Materials:
*No materials needed for this activity*
IV. Instruction:
1. Analyze how the car is supposed to moved.
2. Write some codes in the program for line tracing.
3. Try if the program works properly. If the program doesn’t work, try to modify it.
4. Write and code the program until everything works properly.
5. Save your program into your device.

V. Code: [copy-pasted code from Arduino IDE]

int LeftA = 5;
int LeftB = 9;
int RightA = 6;
int RightB = 10;
//int SPK = 3;
byte LED = A1;
int LSens = A3;
int RSens = A2;

void setup() {

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


pinMode(LeftA, OUTPUT);
pinMode(LeftB, OUTPUT);
pinMode(RightA, OUTPUT);
pinMode(RightB, OUTPUT);
pinMode(LED, OUTPUT);
//pinMode(SPK, OUTPUT);
pinMode(LSens, INPUT);
pinMode(RSens, INPUT);

void loop(){

if ((analogRead(RSens)<600)&&(analogRead(LSens)<600)){
forward();
delay(1000);
}
else if ((analogRead(RSens)>600)&&(analogRead(LSens)<600)){
TurnRight();
delay(1000);
}
else if ((analogRead(RSens)<600)&&(analogRead(LSens)>600)){
TurnLeft();
delay(1000);
}
else {
Stop();
delay(1000);
};

void Stop() {
analogWrite(LeftA, 0);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);
analogWrite(RightB, 0);
}

void forward() {
analogWrite(LeftA, 1200);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


analogWrite(RightB, 100);
}

//LOW IN TURN IS
void TurnRight() {
analogWrite(LeftA, 0);
analogWrite(LeftB, 80);
analogWrite(RightA, 0);
analogWrite(RightB, 105);
}

void TurnLeft() {
analogWrite(LeftA, 150);
analogWrite(LeftB, 0);
analogWrite(RightA, 100);
analogWrite(RightB, 0);
}

VI. Documentation:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


VII. References:
https://circuitdigest.com/microcontroller-projects/arduino-uno-line-follower-robot

https://www.youtube.com/watch?v=t7k9D1jDEtk

https://www.youtube.com/watch?v=5jh-5HGvC-I

https://www.youtube.com/watch?v=OgYb53HWPAo&list=PLHvJ4bw0xno7Cjq3eRMIZo5YBNrL6NKgw&i
ndex=23

https://github.com/sunfounder/3in1-kit/blob/main/car_project/4.follow_the_line/4.follow_the_line.ino

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


Subject: Seminars and Field Trips (Robotics topic)
Date: August 16, 2023
Group #: 1

Activity #: 4
Title: Line-tracing Robot Race

I. Summary/Description/Overview:
The objective of the project is to test and measure the points and time take for the robot to
finish the racing track.
II. Learning Objectives:
The students should be able to:
1. Test if the robot car follows the black line path.
2. Do trials in the written program to the car robot.
3. Check if the robot car finishes the whole track.

III. Materials:
*No materials needed for this activity*
IV. Instruction:
1. Train the robot car in the black line track.
2. Configure the program of the robot if still need to fix.
3. Record the result of the race.

V. Code: [copy-pasted code from Arduino IDE]

int LeftA = 5;
int LeftB = 9;
int RightA = 6;
int RightB = 10;
//int SPK = 3;
byte LED = A1;
int LSens = A3;
int RSens = A2;

void setup() {
pinMode(LeftA, OUTPUT);

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


pinMode(LeftB, OUTPUT);
pinMode(RightA, OUTPUT);
pinMode(RightB, OUTPUT);
pinMode(LED, OUTPUT);
//pinMode(SPK, OUTPUT);
pinMode(LSens, INPUT);
pinMode(RSens, INPUT);

void loop(){

if ((analogRead(RSens)<600)&&(analogRead(LSens)<600)){
forward();
delay(340);
}
else if ((analogRead(RSens)>600)&&(analogRead(LSens)<600)){
TurnRight();
delay(340);
}
else if ((analogRead(RSens)<600)&&(analogRead(LSens)>600)){
TurnLeft();
delay(340);
}
else {
Stop();
delay(340);
};

void Stop() {
analogWrite(LeftA, 0);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);
analogWrite(RightB, 0);
}

void forward() {
analogWrite(LeftA, 135);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);
analogWrite(RightB, 100);

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


}

//LOW IN TURN IS
void TurnRight() {
analogWrite(LeftA, 0);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);
analogWrite(RightB, 100);
}

void TurnLeft() {
analogWrite(LeftA, 135);
analogWrite(LeftB, 0);
analogWrite(RightA, 0);
analogWrite(RightB, 0);
}

VI. Documentation:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara


VII. References:

Kenneth Aquino Raphael Lim Jerwin Andrew Pecara

You might also like