9.17.2010

Day:4 NICE WEATHER WE'RE HAVING, HUH?

or "HAVE YOU SEEN THIS? HAVE YOU?"

This update brought to you a few days late, because I came down with a case of NICE DAY SYNDROME.
THIS IS A SERIOUS BUSINESS CONDITION 
So, here we go!

Friday was a productive day!
Still working with the RDS crickets, but with a new partner
(Kami can be found at kamibots.blogspot.com ! check it out!)

The challenges continue with line following-
Follow the line little robot
This little stack of code makes the bot follow a line!  For real!
See, sensors 1 and 3 are reflectance sensors- they shoot out lights outside the visible spectrum and measure how much bounces back.  From these numbers we can tell what color is beneath each sensor.

There are two sensors, on either side of the bot.
And both trigger the 'wait until' to relinquish control to the next step in the code once the sensors read higher than 500 (which happens when over the black)
By associating the sensor with the motor on the opposite side the (currently nameless) robot turns on say... the right motor when the left is triggered.
The robot then goes to the left and moves the left motor off the line until the right sensor is triggered.
etc
etc
ad nauseum.
or "until you grab it and shut the robot off manualy'-eum.

LIKE THIS-
you can just watch it go around, and around and around.

Cool yeah?
Very cool.

With narration by partner Kami!
(you can check out her blog at http://kamibots.blogspot.com/)

PS SNEAK PEAK!!!???-

No comments:

Post a Comment