Go to Post The students that I have known in FIRST over my 8 years of involvement have been far more inspired by the competition and some of the jaw dropping creations of "elite" teams than by anything that we made ourselves. - MattB703 [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 09-02-2010, 20:58
LavaEagle LavaEagle is offline
Registered User
FRC #2660
 
Join Date: Oct 2009
Location: WA
Posts: 22
LavaEagle is an unknown quantity at this point
Soldering the accelerometer help

My team understands how to wire and where to wire and want to figure out the programming part of it.

However we do not know exactly how to attach the wires correctly to the accelerometer board and then to the sidecar.

Especially since it needs 4 wires. (5v, scl, sda, Ov)

Thank you!
Team 2660

Last edited by LavaEagle : 10-02-2010 at 17:48.
  #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
  #3   Spotlight this post!  
Unread 09-02-2010, 21:30
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Soldering the accelerometer help

Lava,
There is a really nice Sensor manual available for download on the First website in the 2010 robot documents area. You can find it under Section 8, The Robot. It has most everything you will need and a few links to the manufacturer's websites to help you along. The answer to your question is involved but the manual will answer many of your questions.
http://www.usfirst.org/roboticsprogr...nt.aspx?id=452
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #4   Spotlight this post!  
Unread 09-02-2010, 23:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Soldering the accelerometer help

Quote:
Originally Posted by apalrd View Post
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...
The ADXL345 accelerometer in the 2010 Kit of Parts uses SPI or I2C digital communication. It was the 2009 accelerometer that had analog outputs. I think the I2C connection is the easiest to use, and the LabVIEW support for it is perfect.
  #5   Spotlight this post!  
Unread 10-02-2010, 00:26
samir13k samir13k is offline
Registered User
AKA: Samir Shaikh
FRC #4329
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: St. Louis, MO
Posts: 281
samir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant future
Send a message via AIM to samir13k Send a message via MSN to samir13k
Re: Soldering the accelerometer help

Quote:
Originally Posted by Alan Anderson View Post
The ADXL345 accelerometer in the 2010 Kit of Parts uses SPI or I2C digital communication. It was the 2009 accelerometer that had analog outputs. I think the I2C connection is the easiest to use, and the LabVIEW support for it is perfect.
I actually attempted to use the I2C port first with little success, so i went to the SPI ports and had it working just fine... No guarantees i didnt have any errors, we all make some, but i triple checked the I2C and couldnt debug the problem. at the same time i didnt fuss to much about it considering that i still had it functioning...
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
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 21:01.

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