Today we were given the assignment of completing an obstacle course using pretty much all of the sensors we have been studying about. It starts out on a line and you must clap to make it start.I will use a sound sensor for this part. It then moves forward and stops in a box for 5 seconds. For this section, I plan on using the light sensor to detect the edge of the box so my robot can be more accurate and always stop even if the robots starting distance changes. The next step is to bump into a pillar, back up, and turn right. For this, I plan on putting a touch sensor on the front of my robot which will detect the wall. I will turn down the power on my motor so the robot doesnt break when it hits the wall. It will hit it gently and then back up and turn right. The next section is to sense a desk but not touch it. After you sense it, you must turn right. For this I will use the ultrasonic sensor. An important consideration is to put the ultrasonic sensor in the front but behind the touch sensor so the touch sensor will be able to touch the wall in the previous step. The next part will probably be the hardest. It involves sensing a randomly placed object in the course and avoiding it. For this, I will use the ultrasonic sensor again and tell it to go right it it detects an object. After it goes right, I will tell it to go forward so i dont hit the object and then turn left and forward until the finish line which I will use a light sensor. I will tell the robot to stop once it senses the black line.
great blog i like how you use the light sensor to be more accurate.
ReplyDeleteGreat plan,
ReplyDeleteI like the idea of slowing down your robot in order to avoid hitting the pillar with great impact (which could greatly harm your robot's sense of direction). I will have to reconsider my plan, so i can hopefully complete the course.
Nash.