0% found this document useful (0 votes)
13 views

Qw6ambp9t_PopBot X2 Line Tracking Robot With Multiple Junctions

Uploaded by

shai0shinso
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Qw6ambp9t_PopBot X2 Line Tracking Robot With Multiple Junctions

Uploaded by

shai0shinso
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Pop-Bot X2

Robot Line
Tracking with
Multiple
Junctions
Objectives
a. explain the significance of programming a
line-tracking robot capable of navigating
multiple junctions
b. create a program enabling the
Pop-Bot X2 to follow a map with
multiple intersections/junctions
Have you ever thought about how
delivery robots navigate complex
paths with intersections in
warehouses or streets?
Short video or animation of a robot
navigating a complex line tracking map
with intersections, such as warehouse
robots or autonomous vehicles.

Challenge: Observe and identify key


moments where the robot makes
decisions (e.g., turning at intersections).
• Objective: Allow students to interact with the Pop-
Bot X2 and observe its behavior.
• Explore Activity:
– Divide students into small groups and provide each group
a Pop-Bot X2 and a line tracking map with intersections.
– Let them test the robot on the map to see its default
behavior.
– Encourage students to note observations, such as how
the robot behaves at junctions and whether it can decide
a path.
Sample Line Tracking Program with Multiple Junctions

#include <popx2.h> // PopX2 Library


void setup() {
OK(); // Press the Ok button to start line tracing
}

void loop() {
int count= 0;
int IRa = analog(1); // right IR sensor
int IRb = analog(0); // left IR sensor
motor(ALL4, 80);
if(IRa < __ && IRb < ___ ) // if both sensors detect a line
{
motor(ALL4, 100);
delay(200);
count++; // post increment operator
if(count == 1) // Junction 1
{
// add codes here
}
if(IRa < __) // if the Right IR sensor detects a black line
{
motor(1, -50); // spin to the right for 0.5 milliseconds
motor(2, 50); //
delay(500); //
}
if(IRb < ___) // if the Left IR sensor detects a black line
{
motor(1, 50); // spin to the left for 0.5 milliseconds
motor(2, -50); //
delay(500); }
Formative Task Group Activity
• Directions:
Create accurately a program that makes the Pop-
Bot X2 robot follow a line tracking map from the
starting line to the finishing line, passing through
multiple intersections / junctions.
Formative Task 1 Requirements
Junctions 1 &
2– robot
Junction 1
should beep
Place the and pause for
Junction 2
robot 3 seconds
before the Junction 3
Start line. – robot
should
Junction 3 stop
Scoring Rubric
• Accuracy – 10 pts.
• Individual Role Participation – 5 pts.
• Program Source Code – 20pts.
• Teamwork – 10pts.
• Total : 45 pts.
Program source code version 2
#include<popx2.h>
int L,R;
int countJB=0;

void setup() {
OK();
}
void loop(){
L=analog(0);
R=analog(1);
JB(); // function for junction black
TBL(); // function for trace black line
}
void JB() // black junction
{
int L=analog(0);
int R=analog(1);
if(L< ___&&R<____)
{
countJB++;
if (countJB==1) // Junction 1
{
sound(1500,100);
fd(50);
}
void TBL() //trace black line
{
int L=analog(0);
int R=analog(1);
if (L <=___)
{
sl(70);
}
else if(R <=___)
{
sr(70);
}
else
{
fd(25);
} } // end of code
A c ti o n w h e n b o t h I R s e n s o r s
d e t e c t s a j u n c ti o n
START
A c ti o n w h e n b o t h I R s e n s o r s
d e t e c t s a j u n c ti o n
START
A c ti o n w h e n b o t h I R s e n s o r s
d e t e c t s a j u n c ti o n
END - STOP
Summary
• Significance of programming robots for real-
world navigation.
• Basics of handling intersections in line
tracking.
• Reflect on how these skills can apply to larger
robotics projects or real-world automation
challenges.
Written Work 1 – 3rd Quarter

• Directions: Make your own Mind Map about the given


question with your personal reflection summary. 30
pts.
Written Work 1 – 3rd Quarter
"How can the Pop-Bot X2 effectively navigate
through a track with multiple junctions using
its line-tracking capabilities? Consider factors
such as sensor integration, decision-making
algorithms, and overall navigation strategy in
your response?”

Deadline: January 20, 2025


Mind Map Scoring Rubric
1) Content Relevance (10 points):
• Clear inclusion of key concepts related to line
tracking and multiple intersections.
• Demonstrates a deep understanding of the
Pop-Bot X2's functionality in such scenarios.
2. Organization and Structure (5 points):

• Logical arrangement of main topics and


subtopics.
• Flow of information is easy to follow.
3. Creativity and Innovation (5 points):

• Integration of innovative ideas or approaches


in addressing the challenges of multiple
intersections.
• Creative use of visuals and symbols.
4. Clarity and Readability ( 5 points):

• Clear and concise wording.


• Proper use of fonts, colors, and
spacing to enhance readability.
5. Depth of Analysis (5 points):
• In-depth analysis of the challenges posed by
multiple intersections in line tracking.
• Thorough exploration of potential solutions and
considerations and your personal reflection
summary.
Purposeful Assignment
• Prepare for the performance task 1 next
meeting on Pop-Bot X2 Line tracking
with multiple intersections

You might also like