|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
As with any sensor, make sure you're getting a proper signal before trying to tune the control algorithm. |
|
#2
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Ether,
we had 2 wheels and hence 2 encoders. Would that cause any problems? also, I am not sure how much to be worried about the singal integrity over the 7 feet of wire that the students had wired next to all other wires. including the 20kHz jaguar output wires going to the motors. |
|
#3
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
I know we found a way to insolate the wire from interference and we were +/- close to 100 rpm before. After, we got it to +/- 1 rpm. I'll talk to the guys who did that and see what they actually did; I think it had some metal foil involved, so perhaps there was a faraday cage effect?
|
|
#5
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
|
|
#6
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
We were worried about the little shaft of a US Didital encoder spinning at such a high rate for so long as well as the high number of counts flying around. I guess many teams did this it and it worked okay so our worries were misplaced.
We used a small 14 tooth steel sprocket and a Hall effect gear tooth sensor for a no-worry solution. Our wheel speed control was rock solid but that may have also been because we had a high mass shooter wheel. |
|
#7
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
|
|
#8
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Our meeting last week was cancelled, but we are meeting tonight to work on this exactly. I will post it here when I find out. Thanks for the reminder.
|
|
#9
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
So it turns out the wire we used is 22 AWG shielded cable which the mentor says is available from Digikey. It has five 22-gauge wires (we only used 4) and these are wrapped with aluminum foil. Around the aluminum is more insolation. The aluminum foil is twisted at one of the ends of the cable, and grounded to the source ground (the jaguar 5 pin connector's ground in this case). It is important to only ground one side of the cable and not both, otherwise you could create a closed circuit, which may cause EMI if there is current going through the foil. My sources say you could also get away with grounding to the frame, but I don't think this is legal and it is usually better practice to ground it to a source anyway.
"[R38] All wiring and electrical devices, including all control system components, shall be electrically isolated from the Robot frame. The Robot frame must not be used to carry electrical current." I could see how both sides could be argued. I don't quite know if the aluminum is considered part of the "wiring", or if this would be considered carrying electrical current by the frame, but this is a tangent anyway since it can be grounded to a source. I wouldn't usually think about the EMI on our robots, but looking at the number of sensors, motors, and other electrical components on that robot in comparison with our past robots, it's not surprising that this would be the one out of all of them to benefit from shielded sensor wires. I could post pictures if anyone is interested. |
|
#10
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
By the way, we were able to get the robot shooting about 50% last night without speed control. This was using the camera feed to the driver station for manual aiming and we had driver voltage control on the shooter motors. We may work toward integrating a simple non-PID speed control algorithm and vision processing from there. The vision processing part was complete during the build season, we just need speed control that works in PWM or to get our CAN working.
|
|
#11
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
If it's not too much trouble, please do.
|
|
#12
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
I'm not doubting that its possible, just doubting our ability to realize that possibility based on our past results. I've also seen so many successful teams with single digit CPR sensors that it got me thinking that if we weren't having success with the 360 count, we could try something else.
We will try it though, and thanks for the help! Last edited by KrazyCarl92 : 13-07-2012 at 08:53. |
|
#13
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
![]() You said in your original post that you had the 360CPR encoders working with the Jag. So that indicates that you have the encoders properly mounted and aligned, which is half the battle. Something to consider: the fewer the counts per revolution, the "staler" your sensor signal will be (more phase lag). If your wheel has enough inertia that probably won't matter. Just something to keep in mind from a control theory point-of-view. |
|
#14
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Quote:
|
|
#15
|
||||
|
||||
|
Re: Low Res Optical Encoders for Speed Control
Last edited by Ether : 24-07-2012 at 20:01. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|