Tutorials/Programming with the new VEX Integrated Encoder Modules
| Line 12: | Line 12: | ||
For more information and assembly instructions for the Integrated Motor Encoder for the '''VEX 2-wire 393 Motor''', [http://www.robotc.net/blog/wp-content/uploads/2012/02/393.pdf click here]. | For more information and assembly instructions for the Integrated Motor Encoder for the '''VEX 2-wire 393 Motor''', [http://www.robotc.net/blog/wp-content/uploads/2012/02/393.pdf click here]. | ||
| − | For more information and assembly instructions for the Integrated Motor Encoder for the '''VEX 2-wire 269 | + | For more information and assembly instructions for the Integrated Motor Encoder for the '''VEX 2-wire 269 Motor''', [http://www.robotc.net/blog/wp-content/uploads/2012/02/269.pdf click here]. |
|- | |- | ||
|colspan="2"|All of the basic Fischertechnik sensors meet these qualifying characteristics, making them perfect candidates for use with the VEX Cortex! | |colspan="2"|All of the basic Fischertechnik sensors meet these qualifying characteristics, making them perfect candidates for use with the VEX Cortex! | ||
Revision as of 08:50, 7 May 2012
Tutorials → VEX Speaker module
| ROBOTC 3.06 now includes functionality to support the new VEX Integrated Encoder Modules!
The VEX Integrated Encoder Modules (IEMs) replace the plastic caps on the backs of 2-Wire Motors (269 and 393) with quadrature encoders. Unlike the existing VEX Shaft Encoders, they connect to the Cortex Microcontroller using the I2C port and provide feedback directly from the motor (with the added benefit of not hogging up your digital ports). These encoders will allow you to identify and control how fast the motors spin, how far the robot travels, and what direction it should move. For more information and assembly instructions for the Integrated Motor Encoder for the VEX 2-wire 393 Motor, click here. For more information and assembly instructions for the Integrated Motor Encoder for the VEX 2-wire 269 Motor, click here. | |
| All of the basic Fischertechnik sensors meet these qualifying characteristics, making them perfect candidates for use with the VEX Cortex! | |
I2C Overview
| As stated above, these new encoders connect to the single I2C port on the Cortex: | |
| Unlike the DIGITAL and ANALOG ports on the Cortex, having only one I2C port does not limit you to only one I2C device. I2C ports allow multiple devices to be connected in a manner frequently referred to as daisy-chaining: | |
| The Integrated Encoder Modules support this by having built-in sets of input and output pins. A 4-wire cable connects the Cortex to Motor 1, another 4-wire cable connects Motor 1 to Motor 2, another 4-wire cable connects Motor 2 to Motor 3, and so on. In fact, ROBOTC 3.06 will support up to 8 devices on the single I2C port! | |
