Vex Gyro Sensor Programming
For the love of physics walter lewin may 16 2011 duration.
Vex gyro sensor programming. First the sensors program will check for smart motors and bumper switches configured in the smart ports listed for the driver control program. This code will also be compatible with the new vexcode programming suite vex is developing. The vex iq gyro has a graphic on its top that denotes and rotation directions. Motor encoders that are 360 degrees per wheel revolution.
Driver control programming part 2 6. Gyro sensors are used to stabilize large ships as well as monorail trains in order to keep the people and cargo on them safe. Check that smart ports 1 12 have the correct types of devices listed in the table above. Use the gyro to make precise measured turns.
The front facing eye sensor also acts like a distance sensor and returns the distance of a detected object in mm and inches. They will make you physics. Vex and vex robotics are trademarks or service marks of innovation first international inc. Autonomous programming functions 8.
Returns the accumulated value of the gyro sensor plugged into ndeviceindex in degrees. Lectures by walter lewin. Some common uses for a gyro sensor with a vex iq robot include. The msp430 communicates with the latest mems gyroscope across a very high speed 10 mhz spi bus.
Autonomous programming line by line 7. Use the gyro sensor and the pen to draw a triangle with the vr robot. If the program does not find smart motors or bumper switches it will check for the devices listed in the table. A gyro turning clockwise will decrease its values.
Draw a triangle with gyro. Among other things the gyro allows your robot to make very precise consistent turns. Use the infrared line trackers to follow lines or stop on marks lines on the floor. The new vex yaw rate gyro is one of the more sophisticated sensors in the vex robotics system but it s also one of the most useful and powerful.
Gyro sensors are used to measure movement in some handheld electronic devices such as video game remote controls. Program the vr robot to move forward and reverse to various distances. A gyro sensor that is built into the drivetrain. Other sensors like the shaft encoders allow you to control your robot s turns but indirectly.
The vr robot has the following sensors. Sensor programming part 2 10. Sensor programming part 1 9. The vex iq gyro sensor uses a texas instruments msp430 microcontroller running at 16 mhz to process requests and calculate angles.
The mems gyro measures rotation rate with 16 bit resolution. We ll use the ultrasonic distance sensor to measure distance and make the robot react to obstacles.