Go to Post pit visitor: "Why'd you use #35 chain?" team member "less links to CAD...." - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 27-01-2005, 14:26
Tom McCurdy's Avatar
Tom McCurdy Tom McCurdy is offline
Physics-Electronics
#1677 (QuantumNinja)
Team Role: Webmaster
 
Join Date: Jan 2005
Location: Portage, Michigan
Posts: 49
Tom McCurdy will become famous soon enough
Send a message via AIM to Tom McCurdy
Accelerometer

How do you connect the accelerometer and how do you read the data?
  #2   Spotlight this post!  
Unread 27-01-2005, 14:58
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Accelerometer

Kevin Watson has graciously donated his time and wrote us an accelerometer driver with supporting documentation. You can get it here.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #3   Spotlight this post!  
Unread 28-01-2005, 08:18
MichaelGoldfarb MichaelGoldfarb is offline
Registered User
AKA: Goldfarb
FRC #0312 (Heatwave)
Team Role: Programmer
 
Join Date: Aug 2004
Rookie Year: 2003
Location: St. Pete, FL
Posts: 11
MichaelGoldfarb is an unknown quantity at this point
Send a message via AIM to MichaelGoldfarb Send a message via MSN to MichaelGoldfarb
Re: Accelerometer

Basically to read the value of any analog input device:
Code:
Get_Analog_Value(rc_ana_in0X)
__________________
I'm crazy!
  #4   Spotlight this post!  
Unread 30-01-2005, 22:08
roboticsjenkins's Avatar
roboticsjenkins roboticsjenkins is offline
robotics_jenkins
AKA: Andrew
#0616 (Southampton Indian Robotics)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Courtland, Virginia
Posts: 15
roboticsjenkins can only hope to improve
Send a message via AIM to roboticsjenkins Send a message via Yahoo to roboticsjenkins
Re: Accelerometer

Could anyone tell us how to change the Analog Input for the Accelerometer? I have been reading ans can not seem to find it. This is one of those things we are probably just looking over and can't find. If anyone can help us that would be great.




THIS QUESTION WAS POSTED SO THE PROGRAMMERS CAN STOP DRIVING ME CRAZY....(IM AN ELECTRONICS PERSON)
  #5   Spotlight this post!  
Unread 30-01-2005, 22:11
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Accelerometer

Quote:
Originally Posted by roboticsjenkins
Could anyone tell us how to change the Analog Input for the Accelerometer? I have been reading ans can not seem to find it. This is one of those things we are probably just looking over and can't find. If anyone can help us that would be great.




THIS QUESTION WAS POSTED SO THE PROGRAMMERS CAN STOP DRIVING ME CRAZY....(IM AN ELECTRONICS PERSON)
Hook up your accelerometer, using the FIRST provided pinout guide. Then put a printf in your code that prints that analog value. Now, move the accelerometer to see how the values vary.
  #6   Spotlight this post!  
Unread 30-01-2005, 23:45
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Accelerometer

Quote:
Originally Posted by roboticsjenkins
Could anyone tell us how to change the Analog Input for the Accelerometer? I have been reading ans can not seem to find it. This is one of those things we are probably just looking over and can't find. If anyone can help us that would be great.
The ADC channel selection is the first thing that's done in Initialize_ADC( ).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
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 vs Gear Tooth Sensors zdeswarte Electrical 4 22-01-2005 15:35
Example accelerometer code released. Kevin Watson Programming 0 20-01-2005 03:45
Accelerometer data sheet Joe Ross Electrical 16 19-01-2005 12:26
Accelerometer buss Electrical 1 09-01-2005 00:10
Using Accelerometer with '04 controller sanddrag Control System 4 20-02-2004 12:18


All times are GMT -5. The time now is 12:59.

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