Go to Post Silly, Silly, don't you realize there are no borders in FIRST:) - HW [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 13-02-2014, 21:50
SgtMartian's Avatar
SgtMartian SgtMartian is offline
Sam Hassall
FRC #1075 (Sinclair Sprockets)
Team Role: CAD
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Whitby, ON
Posts: 12
SgtMartian is an unknown quantity at this point
Need help measuring RPM with the american Digital E4P-250 encoders

My team is using Omni drive for the first time in years, and none of the current members have used it before. Our robot does not want to drive straight and we can't get all the wheels to spin at the same speed. We've done swerve drive in the past, so we've used encoders, but using them for RPM is confuzzling our programmer.

Whenever we give it a command for all the wheels to spin at the same speed in a strafing configuration, it slowly veers away, or simply goes nowhere near where we want it to. We managed to solve this problem when we just set the motor speeds to constants to move it in its different directions, however they were like .5,.6, and .8. They had to be very different. We don't even have rotational control set up yet. Everything else on the 'bot is good though.

We're trying to check the output shaft speeds to make sure that they are all the same using the boston Digital E4P-250.

We don't think the problem is mechanical, so can anyone enlighten me on how to fix the problem? I think it is a combo of just checking the motor speeds and weight distribution.

pls halp.
  #2   Spotlight this post!  
Unread 13-02-2014, 23:26
Kevin Selavko's Avatar
Kevin Selavko Kevin Selavko is offline
Registered User
AKA: Voltonless
FRC #3260 (SHARP)
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Beaver PA USA
Posts: 155
Kevin Selavko is on a distinguished road
Re: Need help measuring RPM with the american Digital E4P-250 encoders

You could try adding a gyroscope to help with driving straight.

Code:
If gyro_error > 0
 motors_right++

If gyro_error < 0
 motors_left++

If motors_left + motors_right > desired_speed
 all motors--
__________________
Team SHARP
Pittsburgh Regional Champions 2014
Vex Pittsburgh Excellence Award 2014
Vex Pittsburgh Champions 2014
Vex Maryland Champions 2014
Pittsburgh Regional Finalists 2013
Buckeye Regional Finalists 2013

Last edited by Kevin Selavko : 13-02-2014 at 23:30.
  #3   Spotlight this post!  
Unread 14-02-2014, 01:29
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,599
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need help measuring RPM with the american Digital E4P-250 encoders

If you've used encoders for position before, using them for velocity is a simple as replacing the call to getDistance() with a call to getRate().
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 19:20.

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