top of page
Search
Writer's pictureBryn Ardot

stay off the edge

In this challenge I had to make a robot that stayed off the edge of a table. Theoretically (and by that i mean almost certainly, I just haven't tested it yet) it could stay off an endless pit, a regular pit, and stairs.


Reflection:


In the process of completing this challenge I learned some more of the functionality of the color sensor block, specifically, the reflected light intensity function, and the fact that at a certain point, no light bounces back to detect any reflected light intensity.


One thing that went well was that it never fell off the edge. After i worked out a couple kinks that prevented it from moving period, It never once fell of the edge, it reliably backed up and safely turned.


One thing that didn't go as well, as mentioned previously, was that it had a couple kinks to work out before it even worked. the first was that it originally would detect the table as a reflected light intensity of less than 50, triggering the back up, turn around portion. another was that it just straight up wouldn't move at first, because it was sending signals to the wrong outputs.


I think I need to improve upon the angle it rotates at, I want it to be far enough to not encounter the same problem, so not at an angle like 90, 180, or 360 degrees, because then it would encounter the same problem. whether that be an edge, a wall, or a line on the ground. In this program it turns roughly 180 degrees.


Requirements:


This robot needs to be able to detect a a steep drop.

it also needs to be able to move


pseudocode:

1. start loop

2.if color sensor does not detect a drop, move forward at half speed

3. else, back up, and turn at a weird angle.

4. got to loop start


I hereby dub this robot: Stay off the edge, here are some pictures and video:








1 view0 comments

Recent Posts

See All

Bumperbot

Comments


bottom of page