Ultrasonic Sensors
With Ultrasonic Sensor, I had to make my robot go front and let the Ultrasonic sensor avoid hitting in something and make it go forward.
|
|
In this challenge demanded my robot to go 4 ft straight by using EasyC, I set my motors to go forward. I set up them like the pic. on the right. And using wait time to control time, and how far that goes. Using the - and + to make turns. I controlled the rotation by using that.And the while loop and if could be found in Program flow. And it helps you if your robot senses something and help avoid hitting it.
|