![]() |
VEX Optical Shaft encoders in FRC
If it were allowed, would VEX Optical shaft encoders be a suitable piece of hardware to use in FRC? I ask because they are very cheap, at $20 for two.
|
Re: VEX Optical Shaft encoders in FRC
Quote:
You get what you pay for with encoders. |
Re: VEX Optical Shaft encoders in FRC
You could use the Vex Shaft Encoders in FRC. According to the Vex Shaft Encoder Manual, the Vex encoders can handle up to 1,020 rpm with 100 pulses per revolution. They cannot be geared directly off the CIM motors, but this is a decent speed. The sensor itself is a digital sensor, releasing a string of 0s and 1s. For every 01 pulse, that is 1/100 of a revolution.
|
Re: VEX Optical Shaft encoders in FRC
They only give counts with no direction info. However this simplifies the programming. When I saw that VEX was going to offer encoders, I couldn't see how they were going to implement the interrupts and state machine in easy c. They aren't - just a simple counter. They should be considered off the shelf. There should be an easy c add in. If there was a take off on the cop trans then every team could have some sort of autonomous action with out to much effort. This could improve the 2006 game action. To many teams in 2006 had a autonomous strategy of do nothing.
|
Re: VEX Optical Shaft encoders in FRC
the guys at vexlabs.com discourage the use of interrupts because pwm generation for the motors is done in timing loops, so interrupt processing would cause glitches in the pwm. also, the high priority interrupt is used by timer0 to sync the pwm generation so that it does not happen while r/c data is being sent from the master processor, so that spi interrupts, (also high priority), do not cause glitches in the pwm.
so although they frown on use of the low priority interrupt, they really, really discourage use of the high priority interrupts. |
Re: VEX Optical Shaft encoders in FRC
Quote:
|
Re: VEX Optical Shaft encoders in FRC
Quote:
. According to the Vex Shaft Encoder Manual, the Vex encoders do not plug into the Interrupts. They plug into any port on the Analog/Digital inputs. The Vex Ultrasonic Sensor plugs into the Interrupt ports, and from experience I've had working with the Ultrasonic Sensor, it only pings out when you tell it to in the code. |
Re: VEX Optical Shaft encoders in FRC
Quote:
So to compute how far your robot has traveled you just read the count number which is in units of 1/90 of a rotation, take into account your wheel diameter, and you have distance. To compute the speed the robot is moving use a timer block to get the time that has passed since the last shaft encoder reading. Now you have the distance and the time so you can compute the average speed the robot was going. Brad |
Re: VEX Optical Shaft encoders in FRC
Quote:
the master controller does indeed appear to do little but decode the signal from the radio. out of every 18.5 ms it spends 6 to 12 ms decoding ppm input from the radio and then has 6 ms in which to push the data over the spi bus to the user controller. and it will do this for two radios. i think the master also controls the reset on the user controller. |
| All times are GMT -5. The time now is 18:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi