SlideShare uma empresa Scribd logo
1 de 10
Aaron Truitt, Reyna Monrreal, and Pengcheng Zhai
Professor Oruklu – TA Linjie Li - ECE 100-004
PROBLEM STATEMENT:
The objective is to program a robot using Handy board/
interactive C in order to go through a maze in a quick and
efficient manner . The maze is unknown so the
timing, speed, and interactive C code will be the variables
we are allowed to control & aid the robot into the
undisclosed maze.

Reyna
INVESTIGATION/ RESEARCH:
Handy bugs are small robots that can be manipulated to do a series of
functions. They allow us to program them to the tenth of a second or to a
random program (where we put it in the code to do a random operation).
This will make to “turtle” move around the maze and with each mistake or
flaw noticed we can quickly make adjustments without dismantling the
whole robot. Getting the robot to have good maneuvering skills in order
to win the race is a process of constant trial and error.
With each modification we get we have to change certain aspects of the
small robot to accommodate for those changes. A situation that came
across was the moment when the robot hits a perfect right angle and it
continues to perform as programmed becoming further stuck.
One of the ways we dealt with this was using what is called a random in the
code. The random performed a large turn when it was enabled. Enabled
after 3-4 bumps on the right angle it made a complete turn so as to get
unstuck (an emergence (Martin 2001).

Reyna
CONSTRAINTS & SUB-PROBLEMS
The speed prevents the handy bug from making good turns. The speed was
a good idea in theory, the time to cross the maze would be less and the
program gave less time for turns (Sleep.9) so the angle became less
when it turned and it would be first to finish. Metasens4.ic
A small issue that constantly came up would be the installing of the cables
into the ports, if they were in backwards our wheels would go to
opposite way and affected the robots ability to escape emergence(going
back and forth on a corner)
When the test was conducted to prove the efficiency of the handy bug, it u
fortunately came out of the entrance. This was believed it was due to
probability. However the robot turned at an angle that was too wide for
it to bump against the wall in order to continent going forward.
A shorter angle was programmed and as the handy bug hit the wall it went
backwards rested for a fraction of a second and made a smaller turn
angle. This again prevented it from going out of the entrance.
The programming however still needed less time due to the consistent
Reyna
problem of exiting thought the entrance.
Alternative Solution random.ic

forward
while(1)

left touch?

yes

yes

recent?

yes

5 times?

no

left avoid

left avoid

random avoid

reset timer

yes

reset timer

bump=1

right
touch?

reset timer

incr.bump

bump=0

recent?

yes

yes

5 times?

right avoid

right avoid

random avoid

reset timer

reset timer

reset timer

bump=1

incr, bump

bump=0

Pengcheng Zhai
forward

Alternative Solution turnaround.ic

while(1)

left touch?

yes

yes

recent?

yes

3 times?

no

left avoid

left avoid

turnaround towards right

reset timer

yes

reset timer

bump=1

right
touch?

reset timer

incr.bump

bump=0

recent?

yes

yes

3 times?

right avoid

right avoid

reset timer

reset timer

bump=1

incr, bump

turnaround towards left

reset timer

bump=0

Pengcheng Zhai
Optimum solution
• different floating numbers
void left_avoid() { backward();
sleep(.4); right(); sleep(.4);}void
right_avoid() { backward(); sleep(.4);
left(); sleep(.4);

0.4 second turning sleep time approximately 150º
angles turn

void left_avoid() { backward();
sleep(.15); right(); sleep(.15);}void
right_avoid() { backward(); sleep(.15);
left(); sleep(.15);

Vs.
0.15 second turning sleep time approximately
45º angles turn

• Main method
void random_avoid() {
backward(); sleep(.4);
set_beeper_pitch(1000.);
beeper_on(); if (random(2) ==
0 ) left(); else right();
sleep((float) random(100)/100. +
.5); beeper_off();
undeclared direction
while(1)
{forward();
if
(digital(10) )
{if (timer()< 2.)
{if (recent_bumps ==5)
{random_avoid();
reset_timer();
recent_bumps= 0;

5 times bumps and less than 2
seconds

void main(){ int recent_bumps=0; reset_timer();
if (digital(10) )
{if (timer()< 2.)
{if
(recent_bumps ==3)
{right();
sleep(.3);
reset_timer();
recent_bumps= 0;
}
else
{left_avoid();
reset_timer();
recent_bumps++;
}
}
else {
left_avoid();
reset_timer();
recent_bumps= 1;
}
}
if
(digital(RIGHT_TOUCH) )
{if (timer()< 2.)
{if (recent_bumps ==3)
{left();
sleep(.3);
reset_timer();
recent_bumps= 0;
}
else
{right_avoid();
reset_timer();
recent_bumps++;
}
}
else
{right_avoid();
reset_timer();
recent_bumps=1;
}
} }}

3 times bumps less than 2 second;
100% chance to turnaround after 3 bumps.

Pengcheng Zhai
Optimization in Construction

•
•
•
•

Lowered center of gravity
Structural stability
1:1 Gear Ratio
Extended bumpers

Aaron Truitt
ANALYSIS AND TESTING
• Tested in maze scenarios.
• Steady results and reliable outcomes
• Average time of 56.7 seconds in lab tests per
maze completion.
• Durability

Aaron Truitt
FINAL EVALUATION
•

Best Solution For Your Business.

•

Our Design team has more ideas to
come!

int LEFT_MOTOR= 1;
int RIGHT_MOTOR= 3;
void forward()
{
fd(LEFT_MOTOR);
fd(RIGHT_MOTOR);
}

void right_avoid() {
backward(); sleep(.15);
left(); sleep(.15);
}
void main()
{
int recent_bumps=0;
reset_timer();

void backward()
{
bk(LEFT_MOTOR);
bk(RIGHT_MOTOR);
}

while(1)
{forward();
if (digital(10) )
{if (timer()< 2.)
{if (recent_bumps ==3)
{right();
sleep(.3);
reset_timer();
recent_bumps= 0;
}
else {left_avoid();
reset_timer();
recent_bumps++;
}
}
else { left_avoid();
reset_timer();
recent_bumps= 1;
}
}
if (digital(RIGHT_TOUCH) )
{if (timer()< 2.)
{if (recent_bumps ==3)
{left();
sleep(.3);
reset_timer();
recent_bumps= 0;
}
else {right_avoid();
reset_timer();
recent_bumps++;
}
}
else {right_avoid();
reset_timer();
recent_bumps=1;
}
}
}

void right()
{
fd(LEFT_MOTOR);
bk(RIGHT_MOTOR);
}
void left()
{
bk(LEFT_MOTOR);
fd(RIGHT_MOTOR);
}
void stop()
{
off(LEFT_MOTOR);
off(RIGHT_MOTOR);
}

int LEGHT_TOUCH= 10;
int RIGHT_TOUCH= 11;
float _timer;
void reset_timer() {
_timer= seconds();
}
float timer() {
return seconds() _timer;
}
}
void left_avoid() {
backward(); sleep(.15);
right(); sleep(.15);
}

}

Mais conteúdo relacionado

Semelhante a HandyBug Robot

Maze Solver Robot using Arduino
Maze Solver Robot using ArduinoMaze Solver Robot using Arduino
Maze Solver Robot using ArduinoGautamJagdhish
 
Independent design project
Independent design projectIndependent design project
Independent design projectFabian Okidi
 
Beginners guide vibration
Beginners guide vibrationBeginners guide vibration
Beginners guide vibrationKasinathan PMP
 
Beginners guide vibration
Beginners guide vibrationBeginners guide vibration
Beginners guide vibrationnagasqueen
 
Beebe - Balancing by timed oscillation (AUS)
Beebe - Balancing by timed oscillation (AUS)Beebe - Balancing by timed oscillation (AUS)
Beebe - Balancing by timed oscillation (AUS)Ray Beebe
 
Why is monitoring vibration important
Why is monitoring vibration importantWhy is monitoring vibration important
Why is monitoring vibration importantFabinhoGarcia
 
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMINGROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMINGTAMILMECHKIT
 
Robotics using EV3 Introduction
Robotics using EV3 Introduction Robotics using EV3 Introduction
Robotics using EV3 Introduction Puneet Kumar
 
The Charming Genius of the Apollo Guidance Computer
The Charming Genius of the Apollo Guidance ComputerThe Charming Genius of the Apollo Guidance Computer
The Charming Genius of the Apollo Guidance ComputerBrian Troutwine
 

Semelhante a HandyBug Robot (11)

Maze Solver Robot using Arduino
Maze Solver Robot using ArduinoMaze Solver Robot using Arduino
Maze Solver Robot using Arduino
 
Independent design project
Independent design projectIndependent design project
Independent design project
 
Sphero Write Up
Sphero Write UpSphero Write Up
Sphero Write Up
 
Beginners guide vibration
Beginners guide vibrationBeginners guide vibration
Beginners guide vibration
 
Beginners guide vibration
Beginners guide vibrationBeginners guide vibration
Beginners guide vibration
 
Beebe - Balancing by timed oscillation (AUS)
Beebe - Balancing by timed oscillation (AUS)Beebe - Balancing by timed oscillation (AUS)
Beebe - Balancing by timed oscillation (AUS)
 
Why is monitoring vibration important
Why is monitoring vibration importantWhy is monitoring vibration important
Why is monitoring vibration important
 
Lecture2
Lecture2Lecture2
Lecture2
 
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMINGROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
ROBOTICS-ROBOT KINEMATICS AND ROBOT PROGRAMMING
 
Robotics using EV3 Introduction
Robotics using EV3 Introduction Robotics using EV3 Introduction
Robotics using EV3 Introduction
 
The Charming Genius of the Apollo Guidance Computer
The Charming Genius of the Apollo Guidance ComputerThe Charming Genius of the Apollo Guidance Computer
The Charming Genius of the Apollo Guidance Computer
 

Último

(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...motiram463
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Call Girls in Nagpur High Profile
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...Call Girls in Nagpur High Profile
 
presentation about microsoft power point
presentation about microsoft power pointpresentation about microsoft power point
presentation about microsoft power pointchhavia330
 
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...anilsa9823
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gapedkojalkojal131
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...Pooja Nehwal
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...Pooja Nehwal
 
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaUnited Arab Emirates
 
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...ranjana rawat
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311  Call Girls in Thane , Independent Escort Service ThanePallawi 9167673311  Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service ThanePooja Nehwal
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样qaffana
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Pooja Nehwal
 
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...ranjana rawat
 

Último (20)

(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
 
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
 
presentation about microsoft power point
presentation about microsoft power pointpresentation about microsoft power point
presentation about microsoft power point
 
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
 
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
 
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311  Call Girls in Thane , Independent Escort Service ThanePallawi 9167673311  Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
 
Call Girls In Vaishali 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Vaishali 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Vaishali 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Vaishali 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
 
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
 

HandyBug Robot

  • 1. Aaron Truitt, Reyna Monrreal, and Pengcheng Zhai Professor Oruklu – TA Linjie Li - ECE 100-004
  • 2. PROBLEM STATEMENT: The objective is to program a robot using Handy board/ interactive C in order to go through a maze in a quick and efficient manner . The maze is unknown so the timing, speed, and interactive C code will be the variables we are allowed to control & aid the robot into the undisclosed maze. Reyna
  • 3. INVESTIGATION/ RESEARCH: Handy bugs are small robots that can be manipulated to do a series of functions. They allow us to program them to the tenth of a second or to a random program (where we put it in the code to do a random operation). This will make to “turtle” move around the maze and with each mistake or flaw noticed we can quickly make adjustments without dismantling the whole robot. Getting the robot to have good maneuvering skills in order to win the race is a process of constant trial and error. With each modification we get we have to change certain aspects of the small robot to accommodate for those changes. A situation that came across was the moment when the robot hits a perfect right angle and it continues to perform as programmed becoming further stuck. One of the ways we dealt with this was using what is called a random in the code. The random performed a large turn when it was enabled. Enabled after 3-4 bumps on the right angle it made a complete turn so as to get unstuck (an emergence (Martin 2001). Reyna
  • 4. CONSTRAINTS & SUB-PROBLEMS The speed prevents the handy bug from making good turns. The speed was a good idea in theory, the time to cross the maze would be less and the program gave less time for turns (Sleep.9) so the angle became less when it turned and it would be first to finish. Metasens4.ic A small issue that constantly came up would be the installing of the cables into the ports, if they were in backwards our wheels would go to opposite way and affected the robots ability to escape emergence(going back and forth on a corner) When the test was conducted to prove the efficiency of the handy bug, it u fortunately came out of the entrance. This was believed it was due to probability. However the robot turned at an angle that was too wide for it to bump against the wall in order to continent going forward. A shorter angle was programmed and as the handy bug hit the wall it went backwards rested for a fraction of a second and made a smaller turn angle. This again prevented it from going out of the entrance. The programming however still needed less time due to the consistent Reyna problem of exiting thought the entrance.
  • 5. Alternative Solution random.ic forward while(1) left touch? yes yes recent? yes 5 times? no left avoid left avoid random avoid reset timer yes reset timer bump=1 right touch? reset timer incr.bump bump=0 recent? yes yes 5 times? right avoid right avoid random avoid reset timer reset timer reset timer bump=1 incr, bump bump=0 Pengcheng Zhai
  • 6. forward Alternative Solution turnaround.ic while(1) left touch? yes yes recent? yes 3 times? no left avoid left avoid turnaround towards right reset timer yes reset timer bump=1 right touch? reset timer incr.bump bump=0 recent? yes yes 3 times? right avoid right avoid reset timer reset timer bump=1 incr, bump turnaround towards left reset timer bump=0 Pengcheng Zhai
  • 7. Optimum solution • different floating numbers void left_avoid() { backward(); sleep(.4); right(); sleep(.4);}void right_avoid() { backward(); sleep(.4); left(); sleep(.4); 0.4 second turning sleep time approximately 150º angles turn void left_avoid() { backward(); sleep(.15); right(); sleep(.15);}void right_avoid() { backward(); sleep(.15); left(); sleep(.15); Vs. 0.15 second turning sleep time approximately 45º angles turn • Main method void random_avoid() { backward(); sleep(.4); set_beeper_pitch(1000.); beeper_on(); if (random(2) == 0 ) left(); else right(); sleep((float) random(100)/100. + .5); beeper_off(); undeclared direction while(1) {forward(); if (digital(10) ) {if (timer()< 2.) {if (recent_bumps ==5) {random_avoid(); reset_timer(); recent_bumps= 0; 5 times bumps and less than 2 seconds void main(){ int recent_bumps=0; reset_timer(); if (digital(10) ) {if (timer()< 2.) {if (recent_bumps ==3) {right(); sleep(.3); reset_timer(); recent_bumps= 0; } else {left_avoid(); reset_timer(); recent_bumps++; } } else { left_avoid(); reset_timer(); recent_bumps= 1; } } if (digital(RIGHT_TOUCH) ) {if (timer()< 2.) {if (recent_bumps ==3) {left(); sleep(.3); reset_timer(); recent_bumps= 0; } else {right_avoid(); reset_timer(); recent_bumps++; } } else {right_avoid(); reset_timer(); recent_bumps=1; } } }} 3 times bumps less than 2 second; 100% chance to turnaround after 3 bumps. Pengcheng Zhai
  • 8. Optimization in Construction • • • • Lowered center of gravity Structural stability 1:1 Gear Ratio Extended bumpers Aaron Truitt
  • 9. ANALYSIS AND TESTING • Tested in maze scenarios. • Steady results and reliable outcomes • Average time of 56.7 seconds in lab tests per maze completion. • Durability Aaron Truitt
  • 10. FINAL EVALUATION • Best Solution For Your Business. • Our Design team has more ideas to come! int LEFT_MOTOR= 1; int RIGHT_MOTOR= 3; void forward() { fd(LEFT_MOTOR); fd(RIGHT_MOTOR); } void right_avoid() { backward(); sleep(.15); left(); sleep(.15); } void main() { int recent_bumps=0; reset_timer(); void backward() { bk(LEFT_MOTOR); bk(RIGHT_MOTOR); } while(1) {forward(); if (digital(10) ) {if (timer()< 2.) {if (recent_bumps ==3) {right(); sleep(.3); reset_timer(); recent_bumps= 0; } else {left_avoid(); reset_timer(); recent_bumps++; } } else { left_avoid(); reset_timer(); recent_bumps= 1; } } if (digital(RIGHT_TOUCH) ) {if (timer()< 2.) {if (recent_bumps ==3) {left(); sleep(.3); reset_timer(); recent_bumps= 0; } else {right_avoid(); reset_timer(); recent_bumps++; } } else {right_avoid(); reset_timer(); recent_bumps=1; } } } void right() { fd(LEFT_MOTOR); bk(RIGHT_MOTOR); } void left() { bk(LEFT_MOTOR); fd(RIGHT_MOTOR); } void stop() { off(LEFT_MOTOR); off(RIGHT_MOTOR); } int LEGHT_TOUCH= 10; int RIGHT_TOUCH= 11; float _timer; void reset_timer() { _timer= seconds(); } float timer() { return seconds() _timer; } } void left_avoid() { backward(); sleep(.15); right(); sleep(.15); } }