Go to Post I think being successful in FIRST is creating an environment where people can grow, learn, change, and recreate... It's about making an environment where kids feel they can be successful... in whatever discipline they choose. - ColleenShaver [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-02-2012, 11:09
DavisC DavisC is offline
Registered User
FRC #0539 (Titans)
Team Role: College Student
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Virginia
Posts: 200
DavisC is just really niceDavisC is just really niceDavisC is just really niceDavisC is just really nice
Getting Started with the Accelerometer

Ok, so I understand how it is connected to the DSC but what is the cable that everyone is using?

Also, would the accelerometer be good for measuring speed and therefor distance?

And also is there a default program for the accelerometer somewhere in C++? Or is there a tutorial somewhere?

Thanks,
Davis
__________________
FRC Team 539
Student Member: 2010 Breakaway - 2014 Aerial Assist
Mentor: 2015 Recycle Rush - present
Reply With Quote
  #2   Spotlight this post!  
Unread 28-02-2012, 16:43
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,112
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: Getting Started with the Accelerometer

We built our own cable, using a four-conductor-wide ribbon cable (colors blue, violet, grey, white) with female pins and four-wide housings from Hansen Hobbies.

Accelerometers aren't very good at giving speed data, and they're really bad at giving distance data, especially in a mechanically noisy environment like FRC robots.

I'm afraid the only examples and tutorials I'm familiar with are for LabVIEW.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-02-2012, 19:24
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Getting Started with the Accelerometer

Accelerometer gives you accelerations. In order to obtain speed or distance data, you need to integrate the data against time to obtain speed (and double integration to obtain distance). Because of the fact that the accelerometer will pick up a lot of noise especially when the robot is moving, it means you will have major cumulative error in your integration. The error is especially bad for double integration. So beware if you decided to do this. We tried this a couple of years ago because we couldn't mount encoders on the wheels. We ended up using a lot of tricks to minimize the error. For example, disable the accelerometer until we need it, reset the accumulators right before we need to enable it, only use it for short runs, disable the accelerometer right after we reach target etc. Also, mount the accelerometer on shock absorbing material to minimize vibrations.
__________________
Reply With Quote
Reply


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 02:32.

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