Go to Post "THAT'S NOT SAFE!" "But I'm wearing safety goggles!" - Samheartsrobots [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-10-2005, 14:38
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,516
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
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.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
Reply With Quote
  #2   Spotlight this post!  
Unread 02-10-2005, 15:36
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: VEX Optical Shaft encoders in FRC

Quote:
Originally Posted by sanddrag
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.
I guess you could, but I'm pretty sure they are not quadature output, and I bet their max speed is pretty low, so if you geared them down enough you could use them, but don't expect the precision that you would get out of one of the grayhill, honeywell, or us digital encoders that go for $40-$60 each.

You get what you pay for with encoders.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-10-2005, 16:28
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
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.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-10-2005, 19:32
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-10-2005, 21:18
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-10-2005, 10:17
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: VEX Optical Shaft encoders in FRC

Quote:
Originally Posted by foobert
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.
I'm confused by this - on the FRC controller, the PWM outputs are sent by the master uP. Is this not true on the Vex controller? Seems like a waste of a chip then to just do the radio stuff.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-10-2005, 14:29
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: VEX Optical Shaft encoders in FRC

Quote:
Originally Posted by foobert
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...
I'm confused . 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.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-10-2005, 04:42
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: VEX Optical Shaft encoders in FRC

Quote:
Originally Posted by artdutra04
I'm confused . 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.
When programming with EasyC the encoders plug into the interrupt port. The way you use it is to create a program block that starts the sensor (begins counting interrupts in the background) and later in the program another block that stops counting. Anywhere in between those you can read the current count or reset it to another value.

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
Reply With Quote
  #9   Spotlight this post!  
Unread 04-10-2005, 07:52
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: VEX Optical Shaft encoders in FRC

Quote:
Originally Posted by BrianBSL
I'm confused by this - on the FRC controller, the PWM outputs are sent by the master uP. Is this not true on the Vex controller? Seems like a waste of a chip then to just do the radio stuff.
the motor outputs on the vex controller are re7, rg0, rg3, rg4, re0, re1, re2 and re3 on the user controller. the first four of these are pins that may be used for hardware pwm. just for laughs i used pins 1 and 2 to control the brightness of a couple of leds according to stick positions.

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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hollow Shaft optical encoders magical hands Control System 2 24-03-2005 09:12
Using Digi-Key Shaft Encoders D.Viddy Programming 45 02-01-2005 20:11
Shaft Encoders wun Programming 3 12-10-2004 16:40
Optical Sensors Used as Encoders? uvabrad825 Technical Discussion 22 03-05-2004 13:22
Where to get shaft encoders D.Viddy Programming 12 17-01-2003 09:38


All times are GMT -5. The time now is 13:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi