Go to Post I think I'm going to need a 12 step program to help cure me from my Cryptic Dave Lavery Chief Delphi Post Analyzation Disorder I got goin' on here. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 26-01-2007, 21:41
slimemonkey slimemonkey is offline
Registered User
FRC #1015 (Pi Hi Samurai)
Team Role: Programmer
 
Join Date: Mar 2006
Location: Ann Arbor, MI
Posts: 10
slimemonkey is an unknown quantity at this point
Encoders Module?

Is there an "encoders module" that we may use to use an encoder in our robot?

By the way, thank you very much for the python scripts. We found it very useful so far.
  #2   Spotlight this post!  
Unread 26-01-2007, 21:46
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Encoders Module?

Quote:
Originally Posted by slimemonkey View Post
Is there an "encoders module" that we may use to use an encoder in our robot?

By the way, thank you very much for the python scripts. We found it very useful so far.
http://adambots.gotdns.com/cgi-bin/v...EncodersModule
  #3   Spotlight this post!  
Unread 26-01-2007, 21:52
Samuel H. Samuel H. is offline
Registered User
no team
 
Join Date: Dec 2005
Rookie Year: 1000
Location: World
Posts: 40
Samuel H. has a spectacular aura aboutSamuel H. has a spectacular aura about
Re: Adams Coprocessor Solution

Sorry for the confusion... as soon as I get a chance I will get Bazaar and check it out.
__________________
Team 931 Alumni
Freshman
South Dakota School of Mines and Technology
  #4   Spotlight this post!  
Unread 26-01-2007, 23:20
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Adams Coprocessor Solution

I plan to get working with this some starting tomorrow. I'm hoping that with the great boost that 245 is offering I will have some nice modules completed and available for later usage. Good luck everyone.

If anyone is wondering here's what we are using this year for a coproccessor:
http://www.jkmicro.com/products/omniflash.html
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #5   Spotlight this post!  
Unread 28-01-2007, 21:13
ScottWalls ScottWalls is offline
Registered User
FRC #0245 (AdamBots)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2003
Location: Rochester Hills
Posts: 31
ScottWalls will become famous soon enoughScottWalls will become famous soon enough
Re: Adams Coprocessor Solution

Impressive, cuog!

For reference, soon some changes will be made to the code to protect some intellectual property. We're all in this together, after all. Once I make these changes, I will alert you all. There should be no significant changes in functionality.

Thank you all for being so patient.

(Note: The encoder modules are very old, and I haven't looked at them in a while. Use at your own risk, although I'd be more than willing to give you some support!)
  #6   Spotlight this post!  
Unread 29-01-2007, 13:55
slimemonkey slimemonkey is offline
Registered User
FRC #1015 (Pi Hi Samurai)
Team Role: Programmer
 
Join Date: Mar 2006
Location: Ann Arbor, MI
Posts: 10
slimemonkey is an unknown quantity at this point
PWM to velocity?

One more question about the encoder module..

I couldn't find the actual python code anywhere online...

We have been able to set up the PID module for the power to each motor. The joysticks decide the value to be reached and the pwm values change until that value is reached.

Our next task is how to use a velocity target value and connect that to the motor output (based on the error velocity value).

We plan on doing this using potentiometers to determine the velocity...can anyone help us on somehow reaching the target velocity by altering the pwm output on the motors?
  #7   Spotlight this post!  
Unread 30-01-2007, 12:36
ScottWalls ScottWalls is offline
Registered User
FRC #0245 (AdamBots)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2003
Location: Rochester Hills
Posts: 31
ScottWalls will become famous soon enoughScottWalls will become famous soon enough
Re: Adams Coprocessor Solution

I'll scour around for some of the old encoder modules, although I don't recommend you use them just yet.

You intend to use potentiometers to figure out velocity? I would recommend that you use encoders to control velocity, as potentiometers deal more with position. However, if you would still like to use potentiometers, Post again and I can walk you through code to do so.

Also, for reference, that application of PID is not terribly useful in any real application, although it is fine to test that PID functions. This is because to use a PID loop here is to match joystick output to voltage, which is already perfectly responsive. To add a PID loop only lowers this responsiveness. A more appropriate use of PID would be to match joystick input to velocity output on the motors given by encoders. In this way, you could move the joystick to a position to attain a given velocity, meaning even if there is some resistance against your robot, the PID loop would compensate for it (less driver control).
  #8   Spotlight this post!  
Unread 30-01-2007, 17:17
slimemonkey slimemonkey is offline
Registered User
FRC #1015 (Pi Hi Samurai)
Team Role: Programmer
 
Join Date: Mar 2006
Location: Ann Arbor, MI
Posts: 10
slimemonkey is an unknown quantity at this point
Re: Adams Coprocessor Solution

Thank you for the tip about the encoders.

We decided to match the joystick to the voltage only temporarily to test the PID loop, and until we had a way of measuring the velocity of the wheels. Our main problem is this:

Once we have a set velocity based on the joystick, by how much do we increment the pwm to each motor to reach this velocity? The PID loop will tell us the error in the velocity and the correction value in terms of velocity right? How do we translate this in terms of change in pwm to each motor?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Vex Brain as FRC Coprocessor Tom Bottiglieri General Forum 25 18-04-2006 22:36
VEX + Coprocessor? ForgottenSalad FIRST Tech Challenge 4 13-04-2006 17:45
Offboard coprocessor! Ben Englert Programming 19 28-03-2006 18:34


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

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