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