|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
We have a pretty cool system worked out this year I think. We are using left and right motor drive and we have extreamly precise shaft encoders attached the each motor. I have written the code to control the motors depending on what each shaft encoder is reading. A calculation converts the joystick unsigned char into ticks per 26.2 millisecond loop and then the shaft encoders deciede whether the wheels are going slower or faster then the wanted ticks per loop coming from the joystick. If the joystick ticks and the actual shaft encoder ticks are not equal they are adjusted till they are. What this means is that we can achieve perfectly straight driving and perfect turns. This is also a huge advantage in autonomous mode because we can hand a sub routine a string of values telling the shaft encoders what the motors should be doing and the routine executes it flawlessly. It's much better working in distances than working in loop cycles. Hooray for this years robot control.
![]() |
|
#2
|
||||
|
||||
|
Re: Using Shaft Encoders
Would you know how to setup these shaft encoders?
Thanks. |
|
#3
|
||||
|
||||
|
Re: Using Shaft Encoders
Quote:
Your question is kinda vague. Do an advanced search for "encoder" for the last few weeks and you will get some good info. If you still have questions, please ask away. |
|
#4
|
|||||
|
|||||
|
Re: Using Shaft Encoders
Hey guys, I'm the one that started this thread about a year ago. I have since graduated from high school and I don't believe that my old high school is participating this year. But I would be happy to answer any questions you may have on shaft encoders. We got pretty good with them. Ask away!
|
|
#5
|
||||
|
||||
|
Re: Using Shaft Encoders
Does anyone have a picture of how these are physically tied in with the motors? I want to show the team how it worked for others-directly off a drive shaft, using chains or belts, etc.
Last edited by tbmantia : 14-12-2004 at 12:49. |
|
#6
|
|||
|
|||
|
Re: Using Shaft Encoders
Quote:
D. Viddy - I assume you used the fast c routines to read the encoders. Could you elaborate? |
|
#7
|
|||||
|
|||||
|
Re: Using Shaft Encoders
Quote:
http://www.chiefdelphi.com/forums/pi...gle&picid=9080 The red encoder has the large white gear mounted on it's shaft and the two are mounted by a simple bracket to the robot base. The large white gear is driven by the small white gear mounted on the shaft itself. Last edited by Mark McLeod : 14-12-2004 at 15:41. |
|
#8
|
||||
|
||||
|
Re: Using Shaft Encoders
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Digi-Key Shaft Encoders | D.Viddy | Programming | 45 | 02-01-2005 20:11 |
| Problem with 5/8 in. shaft in this years kit | echos | Kit & Additional Hardware | 5 | 14-01-2004 21:21 |
| Who used wheel encoders | CyberWolf_22 | Technical Discussion | 12 | 04-05-2003 15:37 |
| Can you stop a pneumatic pump at half shaft | mjt902 | Pneumatics | 16 | 06-02-2003 11:58 |
| Where to get shaft encoders | D.Viddy | Programming | 12 | 17-01-2003 09:38 |