Go to Post Torment us no longer, Oh most great and knowledgable Dave. We savor your every utterance. - Gary Dillard [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 19-01-2010, 22:30
TD912 TD912 is offline
Registered User
AKA: Chris Leung
FRC #1989 (Viking Robotics)
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Vernon, NJ
Posts: 156
TD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud of
New digital accelerometer wiring/LabView programming

Hello CD,
I'm attempting to wire up the new accelerometer that came in the 2010 KoP, as I somehow managed to fry the one from 2009 >_>

I've already seen the manual page here:
http://www.usfirst.org/uploadedFiles...ual%20RevA.doc

I'm jut asking a few questions here just to help make sure I don't fry the new one as well!

So it seems there are two ways to wire the accelerometer to the DigiSidecar, one using I2C or SPI. SPI uses up 4 I/O slots where I2C has it's own area behind the phone-plug-like NXT connector. I'm guessting the resulting output fm the accelerometer will be the same in either case. Are there any advantages to using one method over the other?

Also, how would you properly go about reading the output from the accelerometer in LabView? The old analog accelerometer was pretty simple to work with, but I'm not totally sure how to access the I2C or SPI inputs...

Edit: I searched before I posted this, but i must have missed this thread. It partly answers my question:
http://www.chiefdelphi.com/forums/sh...ad.php?t=80419

But that still leaves the question of which protocol/port is better to use.

And a bit off-topic, but would there be any reason why the gyro is outputting really insane data, as I'm obviously not rotating at 2000 degrees per second... Or did I damage or program the gyro wrong too?

Last edited by TD912 : 19-01-2010 at 23:13.
  #2   Spotlight this post!  
Unread 19-01-2010, 23:22
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: New digital accelerometer wiring/LabView programming

Quote:
Originally Posted by TD912 View Post
And a bit off-topic, but would there be any reason why the gyro is outputting really insane data, as I'm obviously not rotating at 2000 degrees per second... Or did I damage or program the gyro wrong too?
You might be trying to read the temperature output instead of the rate output.
  #3   Spotlight this post!  
Unread 20-01-2010, 01:50
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New digital accelerometer wiring/LabView programming

Quote:
Originally Posted by TD912 View Post
So it seems there are two ways to wire the accelerometer to the DigiSidecar, one using I2C or SPI. SPI uses up 4 I/O slots where I2C has it's own area behind the phone-plug-like NXT connector. I'm guessting the resulting output fm the accelerometer will be the same in either case. Are there any advantages to using one method over the other?
I2C requires fewer wires and is supported in all 3 languages. SPI may be somewhat faster. I prefer I2C.

Quote:
Originally Posted by TD912 View Post
Also, how would you properly go about reading the output from the accelerometer in LabView? The old analog accelerometer was pretty simple to work with, but I'm not totally sure how to access the I2C or SPI inputs...
You should look at the examples in the LabVIEW Getting Started Window >> Examples. Look for ADXL345.
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
New Accelerometer and LabView gwpierson NI LabVIEW 13 05-02-2010 15:15
Accelerometer Wiring dboisvert Electrical 1 16-02-2009 00:09
Wiring Solinoid to Digital I/O kiettyyyy Electrical 10 13-06-2006 02:40
Accelerometer: Analog or Digital? psquared Programming 2 10-02-2005 16:38
Accelerometer Wiring/Input DAN THE MAN Control System 1 06-02-2005 20:02


All times are GMT -5. The time now is 07:41.

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