Sunday, February 11, 2018

Lab 16: Ultrasonic Rangefinder and other Sensors

In this lab, we worked with the ultrasonic rangefinder and continued to program the VEX robot in preparation for our final lab.  A lot of this lab consisted of reading the provided information and learning how the ultrasonic rangefinder can help us complete our final lab challenge.  At the end of the lab, there were two mini challenges to complete.  The first mini challenge required us to write a program that causes the robot to turn away from obstacles in front of it.



You can see that when the robot is right next to an object in front of it, the ultrasonic rangefinder recognizes this and the robot turns.



The second challenge required us to write a program for the VEX robot which made the robot turn in circles until it located an object in front of it.  We used a pink lunch bag as the object.  The VEX then spun in circles until the ultrasonic rangefinder located the lunch bag.  Once the lunch bag was located, the VEX then moved forward until right next to the bag, then the robot stopped.  This was practice for stopping in front of the burning candle and preparing to blow out the flame for our final lab challenge.



The VEX instantly located the lunch bag and quickly moved towards it, then stopped just short.  This movement was a direct result of our programming.  Parameters can always be adjusted by modifying the code to the VEX.



Lab 16 finished!

No comments:

Post a Comment

Lab 17: Using IR Sensors for flame and line detection for the VEX

In this lab, we used everything we learned in the previous labs to complete this final lab challenge.  The challenge was to navigate a maze ...