Go to Post FIRST is more than FRC. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2016, 09:07
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,012
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoders direct driven by mini cim? Is it bad?

Quote:
Originally Posted by aphelps231 View Post
Our main technical mentor said we can't put an encoder on our shooter, driven by mini CIMs, because it would overload the code or something.
Encoder signal detection and processing is handled by the FPGA in the roboRIO. Your code runs in the CPU. So using an encoder will not steal resources from your code.

Quote:
Being the one who designed and built the shooter, I've been kicking myself in the butt trying to figure out how to get some type of low res encoder on it. So far we've tried a Hall effect sensor and a metal proximity detector, with magnets on the shaft and bolt heads on a hex hub, respectively. Both didn't work.
I wish you had posted here when you were trying to get it to work. Many many teams have successfully used Hall sensors for shooter wheel speed control.

Quote:
would an encoder reading downwards of 2,000 cps (counts per second, 5,800 RPM @ 20 ticks/rotation = ~2,000 cps) overload the code/RoboRIO?
No. See previous comment about FPGA vs CPU.

Quote:
I'd like to say no since the RoboRIO operates in the MHz (I think) and that should be plenty but id love it if you would share your experiences.
The FPGA samples the DIO for edges at 40MHz. This is completely separate from the roboRIO's CPU, which has 2 cores each running at 667 MHz. Your code runs in the CPU.

Quote:
The same mentor suggested we use an algorithm based on battery voltage to decide how much voltage to give the shooter.
This can help, but it's not as effective as using speed feedback.

Quote:
I really don't like this option, I'd rather run it open loop since battery voltage is constantly fluctuating.
The whole point of using a voltage-based algorithm is to compensate for the fluctuating voltage. But it's not the best way to control speed.

Quote:
There is a 20 tick encoder on andymark that mounts directly to a mini cim.
What is the part number of that encoder?


  #2   Spotlight this post!  
Unread 24-02-2016, 10:22
snoman's Avatar
snoman snoman is offline
Registered User
FRC #3275 (Accelerators 3134 & Regulators 3275)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Minnesota
Posts: 362
snoman is a splendid one to beholdsnoman is a splendid one to beholdsnoman is a splendid one to beholdsnoman is a splendid one to beholdsnoman is a splendid one to beholdsnoman is a splendid one to beholdsnoman is a splendid one to behold
Re: Encoders direct driven by mini cim? Is it bad?

we are using a magnetic encoder with the talon srx and java seems to be working well for us. i am not the programmer but may be able to get and post code. pm me if you are interested
__________________
Coach of the Cass Lake Bena Regulators 3275 (Boys)and mentor Accelerators 3134(Girls)
https://www.facebook.com/accerleratorsandregulators/
https://www.youtube.com/channel/UCQU...Cr8I4wezAbMefA
  #3   Spotlight this post!  
Unread 24-02-2016, 11:40
aphelps231's Avatar
aphelps231 aphelps231 is offline
Andrew Phelps
FRC #1318 (Issaquah Robotics Society)
Team Role: Mechanical
 
Join Date: Mar 2014
Rookie Year: 2012
Location: United States
Posts: 77
aphelps231 has a spectacular aura aboutaphelps231 has a spectacular aura about
Re: Encoders direct driven by mini cim? Is it bad?

Quote:
Originally Posted by Ether View Post
What is the part number of that encoder?

http://www.andymark.com/encoder-p/am-3314.htm

am-3314
__________________

team1318.org

2016: Flight Director, Alliance/Match Strategy
2015: Mechanical Lead
2013-2014: Fabrication

2016: 2x district finalists, Quality, DCMP Entrepreneurship Awards
2015: 3x district winners, Innovation in Control, Creativity, Team Spirit awards
2014: Galileo Division finalists, PNW District Championship winners, 1x district winners, District Chairman's, Innovation in Control, Entrpreneurship awards
2013: Entrepreneurship award
  #4   Spotlight this post!  
Unread 24-02-2016, 13:03
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Re: Encoders direct driven by mini cim? Is it bad?

We have used both a $5 IR light sensor of ebay pointed at a black and white disk attached to a shooter. Also used an industrial IR light sensor. Both seemed to work.

We have also used a grayhill encoder in the past but you would be operating it slightly above its rated RPM of 5000.

http://www.grayhill.com/assets/1/7/Opt_Encoder_63R.pdf
  #5   Spotlight this post!  
Unread 24-02-2016, 13:32
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,622
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Encoders direct driven by mini cim? Is it bad?

We had the VP encoders in 'Quadrature' mode hooked up to the Talon SRX's in 'Speed' mode, running at 8k RPM. Was pretty nice to not have to worry about the RIO running the sensing for 2 shooter wheels, the tilt potentiometer and turret absolute encoder - the SRX's do it all individually.

We're switching to the CIMcoder and a CIM-ile setup for non-sensor reasons though.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Closed Thread


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


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

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