Tuesday, June 9, 2009

Reza's Workday 6/9/09

Today, I originally planned to do work with the Lego Designer program, but before I decided to continue in the modification of the forklift. I had been planning to add a color sensor to it to add for more complex activities. It took me about an hour to find out how to write the color sensor into the code. After talking to Faradjine and Brad, they told me that it reads similar to an ultrasonic sensor, so I implemented it as one, and it worked as online sources suggested.
Next, I had to add the sensor to the robot, but I didn't have a lot of space to work with. I was told by Faradjine that the color sensor does not work too well when it is placed too far from an object, so I tried to replace the light sensor with the color sensor. This required me to change the code I was using to follow a black line, but this was a simple fix. I then ran a few tests, but it appeared that the color sensor does not read quickly enough to pick up the thin black line as the bot is turning too quickly. It only worked after signficantly slowing down the bot, but this also proved to be troublesome when making sharp turns. After working on this for about two hours, I decided to scratch the idea and go back to the light sensor. I would have to make modifications to the bot to add the color sensor without getting in the way and becoming unstable. I spent 2 hours trying to change the design to find little success.
Tomorrow, I think I will add an extenstion piece coming off of the side to place the sensor on, or I will try exchanging positions with the light sensor and attempt to get the ligh sensor to work from the new position.