Go to Post FIRST like life is what you make of it, if you would rather go through FIRST worrying about what other teams do to make their robots, then your destined for disappointment. if you go through FIRST making the most of it doing the best you and your team can then it doesn't matter what other teams do. - Mike Schroeder [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 09-02-2010, 21:24
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Soldering the accelerometer help

Do you mean accelerometer or encoder?
Accelerometers measure the speed of an object.
Encoder measures speed of a rotating shaft
Accelerometer is like a gyro, but linear and not rotary


If you are mounting it to a shaft on your transmission and it has a colored disc with a bunch of lines on it, it is an encoder. You wire the +5, GND, and A to a PWM cable (+5 to Red, GND to Black, A to White) and plug it in to a DIO port on the DSC. You wire the B to the white wire of another PWM cable and connect it to another DIO port, preferably one next to the other one. If the software thinks it driving backwards when it is driving forward, swap the A and B channels (by physically swapping the two PWM cables or in software).

If you actually mean an accelerometer, then the +5, GND, and A would go to 1 PWM cable and the B would go to another, and they would go to the first two analog channels on the first analog board (those are the only ones you can use accelerometers or gyros on). A would measure movement in one direction, B would measure movement in a direction perpendicular to it.

If you are trying to make an acurate auton. program, I suggest the rotary encoders. They don't drift like analog sensors do. For rotation, I suggest using the gyro, not trying to determine rotation from the two encoders.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
 


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
accelerometer help!! wildcats Electrical 2 18-01-2009 15:51
Accelerometer Help! Questions4mQ202 Electrical 4 15-01-2009 19:44
Accelerometer help Red Mage Programming 3 30-01-2008 18:49
URGENT! We need help with the accelerometer lkdjm Electrical 5 11-02-2005 16:42
URGENT! We need help with the accelerometer lkdjm Technical Discussion 0 08-02-2005 14:35


All times are GMT -5. The time now is 07:48.

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