Go to Post Uh. Oh. Wildstang is simple and has a swerve. Where have I seen that before? - EricH [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 25-01-2012, 21:16
EthanPieper EthanPieper is offline
Registered User
FRC #4095
 
Join Date: Jan 2012
Location: Milwaukee Pius
Posts: 5
EthanPieper is an unknown quantity at this point
Accelerometer issues

Ethan here of #4095, rookie team, w00t.

We are having issues working with the accelerometer. Honestly in regards to connecting it to our system and working with it, we have gotten nowhere. So I'm reaching out to you lovely people in hopes that you can help us connect our accelerometer to the system so that we can test it using cRio (cRIO, cRiO, CrIoo?).

Anyways, thanks in advance if you can help us.

Update: Got it connected to the board.
Can somebody double check this?

PWR -> 5V
(-) -> 0V
Dig. I/O 1 -> CK
Dig. I/O 2 -> DI
Dig. I/O 3 -> DO
Dig. I/O 4 -> CS

6 wires in between.

Not sure how to continue...

Last edited by EthanPieper : 25-01-2012 at 21:39.
  #2   Spotlight this post!  
Unread 25-01-2012, 23:13
CardcaptorRLH85's Avatar
CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 60
CardcaptorRLH85 is on a distinguished road
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
Re: Accelerometer issues

If I remember correctly, the kit accelerometer is an analog device. You need to wire it to the cRIOs Analog Sidecar rather than the Digital Sidecar.
__________________

  #3   Spotlight this post!  
Unread 25-01-2012, 23:25
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 216
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Accelerometer issues

Quote:
Originally Posted by CardcaptorRLH85 View Post
If I remember correctly, the kit accelerometer is an analog device. You need to wire it to the cRIOs Analog Sidecar rather than the Digital Sidecar.
The accelerometer that came in the KOP has two digital interfaces, I2C and SPI.
The OP looks to be setup for SPI.

The Gyro is analog
__________________
  #4   Spotlight this post!  
Unread 25-01-2012, 23:50
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 216
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Accelerometer issues

Quote:
Originally Posted by EthanPieper View Post
Ethan here of #4095, rookie team, w00t.

We are having issues working with the accelerometer. Honestly in regards to connecting it to our system and working with it, we have gotten nowhere. So I'm reaching out to you lovely people in hopes that you can help us connect our accelerometer to the system so that we can test it using cRio (cRIO, cRiO, CrIoo?).

Anyways, thanks in advance if you can help us.

Update: Got it connected to the board.
Can somebody double check this?

PWR -> 5V
(-) -> 0V
Dig. I/O 1 -> CK
Dig. I/O 2 -> DI
Dig. I/O 3 -> DO
Dig. I/O 4 -> CS

6 wires in between.

Not sure how to continue...
If you are using LabVIEW, have you tried the ADXL345 SPI Accelerometer example program? That's how we started our testing only we used the I2C interface and example.
Go to Support/Find FRC Examples/Sensors/ADXL345 SPI Accelerometer.
__________________
  #5   Spotlight this post!  
Unread 26-01-2012, 20:45
Chiller Chiller is offline
Registered User
AKA: Connor Christie
FRC #4095 (RoXI Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 118
Chiller is on a distinguished road
Re: Accelerometer issues

Quote:
Originally Posted by rwood359 View Post
If you are using LabVIEW, have you tried the ADXL345 SPI Accelerometer example program? That's how we started our testing only we used the I2C interface and example.
Go to Support/Find FRC Examples/Sensors/ADXL345 SPI Accelerometer.
We just need to know how to connect the wires, that's why this post is in ELECTRICAL.
  #6   Spotlight this post!  
Unread 26-01-2012, 23:06
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 216
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Accelerometer issues

Quote:
Originally Posted by Chiller View Post
We just need to know how to connect the wires, that's why this post is in ELECTRICAL.
The LabVIEW example shows how to wire both the sensor and digital sidecar.
Running the example will allow you to verify that everything is functional before attempting to run your own code.
__________________

Last edited by rwood359 : 26-01-2012 at 23:12.
  #7   Spotlight this post!  
Unread 27-01-2012, 13:38
ultradan's Avatar
ultradan ultradan is offline
Team #3550 Robotronics
FRC #3550 (Robotronics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Montreal
Posts: 10
ultradan is an unknown quantity at this point
Thumbs up Re: Accelerometer issues

You should open LABVIEW and goto the accelerometer example. They show an example (drawing) how to connect the wires...and a short piece of software to test it.

Our team tested all our sensors using the examples in labview. Depending on what type of sensor you'll need, you simply test as shown, and the go to the software and copy&paste the portion in your main robot application.

Hope this help
  #8   Spotlight this post!  
Unread 27-01-2012, 16:33
EthanPieper EthanPieper is offline
Registered User
FRC #4095
 
Join Date: Jan 2012
Location: Milwaukee Pius
Posts: 5
EthanPieper is an unknown quantity at this point
Re: Accelerometer issues

Quote:
Originally Posted by Chiller View Post
We just need to know how to connect the wires, that's why this post is in ELECTRICAL.
Shush, Connor, that's not the only thing we need help with.

Alright well the accelerometer is wired into the SPI, so it should still work with the example program, right?

So far to test we've been using the printf statements to check out the values, is that all fine and dandy?

Eventually the gyro will be wired into analog though, yes?

Also we're using windriver...

Thanks for the help guys.

Last edited by EthanPieper : 27-01-2012 at 18:23.
  #9   Spotlight this post!  
Unread 31-01-2012, 00:22
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Accelerometer issues

We used the ADXL345 I2C accelerometer LabVIEW example from this year (2012) and found that the example vi ran for several seconds, and then quit. Further checking was that it threw an error, that the string that the software expected from the device was incorrect.

Anyone else find that the VI only ran for several seconds?
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


All times are GMT -5. The time now is 18:58.

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