Go to Post Break Robot. Re-engineer. Repeat! - Mr MOE [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
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 16-02-2013, 12:37
idooriane idooriane is offline
Electrical Head Team
FRC #1943 (NeatTeam)
Team Role: Electrical
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Israel
Posts: 6
idooriane is an unknown quantity at this point
Need Help In Connecting Accelerometer

Hey,
I have an accelerometer and gyro on the same board (photo below...), but I don't know how to connect them.
I think the model of the accelerometer is ADXL345 and about the gyro I don't know the model.


Thanks
NeatTeam #1943
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 14:33
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,994
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need Help In Connecting Accelerometer

Quote:
Originally Posted by idooriane View Post
Hey,
I have an accelerometer and gyro on the same board (photo below...), but I don't know how to connect them.
TeamCodeOrange video:

3:56-6:06 gyro, uses PWM cable, connects to analog input

6:07-8:06 accelerometer (requires 4 PWM cables going to 4 PWM inputs on DSC, or a custom cable for plugging into I2C on DSC)

http://www.youtube.com/watch?v=5dCwb...me0nC_xUILWCam


Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2013, 05:29
idooriane idooriane is offline
Electrical Head Team
FRC #1943 (NeatTeam)
Team Role: Electrical
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Israel
Posts: 6
idooriane is an unknown quantity at this point
Re: Need Help In Connecting Accelerometer

Quote:
Originally Posted by Ether View Post
TeamCodeOrange video:

3:56-6:06 gyro, uses PWM cable, connects to analog input

6:07-8:06 accelerometer (requires 4 PWM cables going to 4 PWM inputs on DSC, or a custom cable for plugging into I2C on DSC)

http://www.youtube.com/watch?v=5dCwb...me0nC_xUILWCam


Thanks for the help!!
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2013, 10:27
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: Need Help In Connecting Accelerometer

The ADXL345 example projects in LabVIEW have details on exactly how to wire it and exactly how to initialize and read values from it. I've only ever used the I2C communication, but I know it works, and it only uses four wires.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-09-2013, 13:39
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Re: Need Help In Connecting Accelerometer

Has anyone seen a source for prefrabicated multidrop I2C cables?

What about SPI cables that can be attached to sidecar?
Reply With Quote
  #6   Spotlight this post!  
Unread 29-09-2013, 13:59
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,544
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 In Connecting Accelerometer

We used 2 PWM cables for our SPI device. One was oriented traditionally and had power, ground, and one signal for the device. The other was oriented horizontally and carried the other 3 signals.

If you want to use SPI in java, be sure to grab the class here: http://firstforge.wpi.edu/sf/go/artf1567
Reply With Quote
  #7   Spotlight this post!  
Unread 29-09-2013, 21:31
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Re: Need Help In Connecting Accelerometer

will try that a little later this week.

Was wondering if anyone had cabled multiple devices to SPI or I2C, and how they fabricated cables.
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 08:02.

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