Go to Post We put our alumni to work. That either benefits all or drives them out for good. :) - Wayne C. [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 05-02-2004, 13:26
cadets cadets is offline
Registered User
#1033
 
Join Date: Nov 2003
Location: Richmond, VA
Posts: 8
cadets is an unknown quantity at this point
Question Delaying/Dampening motor response

I need to know how to delay or dampen motor responses to the joystick input.
__________________
BHScadet05
  #2   Spotlight this post!  
Unread 05-02-2004, 14:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Delaying/Dampening motor response

Quote:
Originally Posted by cadets
I need to know how to delay or dampen motor responses to the joystick input.
It's discussed in this thread.
http://www.chiefdelphi.com/forums/showthread.php?t=24613
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 05-02-2004, 15:09
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Delaying/Dampening motor response

that other thread is kinda of hodgepodge of questions and answers, with several different problems/solutions being discussed.

Im assuming from your question that you dont want the operator to be able to slam the motors from full forward to full reverse - that you want the software to filter the commands so the motors dont take such a pounding?

I can understand wanting to do this - the motors are very powerful and you can break small gears and pins in your drivetrain if they are not up to the task - but filtering the response to the joystick input is like adding inertia to your bot - like adding a lot of weight to it

which means, it will speed up gradually, and slow down and stop gradually - this will protect the drivetrain, but your robot will handle like a bucket of jello on ice

If you want to have a safe mode, or new-driver pratice mode, I would suggest simply scaling the joystick signals, so that full forward is only 1/2 or 1/4 forward - this is easy to do by dividing the joystick variable by 2, then adding 64 to get 127 back to 'zero', or dividing by 4 and added 96.

In the competition you want a skilled driver who wont slam the joysticks back and forth - who will drive with a steady hand on the throttles - and you want a bot that CAN slam into reverse, or spin on a dime, if necessary in the heat of battle - as long as the driver only uses all that power only when necessary.
  #4   Spotlight this post!  
Unread 05-02-2004, 18:00
Robby's Avatar
Robby Robby is offline
Registered User
AKA: Kevin Beranek
FRC #0269 (Cooney Robotics)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 47
Robby has a spectacular aura aboutRobby has a spectacular aura about
Re: Delaying/Dampening motor response

you could also just record the last used pwm value and compare it to your desired pwm value and if the two are more than so far apart, add or subtract only a certain percentage of the change desired by the joystick input?

- hope that makes sense
  #5   Spotlight this post!  
Unread 05-02-2004, 18:27
Venkatesh Venkatesh is offline
Registered User
FRC #0030
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 260
Venkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to behold
Re: Delaying/Dampening motor response

Our team has given some thought to the issue of smooth joystick control and the like.

Last year, we did some tests with recording prior pwm values and stepping up or down in small increments to reach a desired speed. However, the robot became very difficult to handle as certain motions of the joystick would take time to become apparent.

We also attempted something interesting. We used an x^3 (i forgot the other terms of the expression, but this was the largest) curve, so that our joysticks were very sensitive (small changes in input value -> precise changes in output) near the center, but relatively insensitive in the end. We added some ramping code to the curve, so that changes wouldn't be abrupt.

We discovered that if drivers need to get used to only one thing (ramping) they get frustrated, but if they have to get used to two things (ramping and non-linear joystick), they are happier.

I also had had the idea to use inductors in between the joysticks and the OI. I did some testing, and the 2004 OI doesnt like it. It sometimes fails to recognize the existance of the joystick. I have not tried capacitors to smooth the output yet.

Our conclusion: train the driver to not jam on the joysticks.
__________________
-- vs, me@acm.jhu.edu
Mentor, Team 1719, 2007
Team 30, 2002-2005
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 21:58.

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