We went back to work with the IR sensor and LED, but with a few adjustments. We added another IR sensor and LED to the robot; the first sensor to the left and the newly added sensor to the right. Since this is similar to the other time we worked with the IR sensor and LED the first time, we copied the code from our previously-written programs DetectTurnMove and SerialYunMove, and added some new code. With our new program, TwoIR_6_29_2015, the robot was able to move and avoid objects on its own.
We used these figures from pages 238-239 in the book "Robotics with the Boe-Bot" as reference for wiring the LEDs and IR sensors |
Goal
- Make the robot move autonomously by adding to it a second set of sensor and LED
Program written
- TwoIR_6_29_2015
Comments
Post a Comment