Go to Post FIRST is not about a robot competition . . there just happens to be one at every FIRST event. - Stuart [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 26-01-2012, 21:01
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Questions on wiring the Accelerometer/Gyro

I'm pretty new to electronics, and am having trouble figuring out how to wire the accelerometer and the gyro.

According to the guide I found here, I have to

Quote:
Connect 0V and 5V to the (-) and PWR pins that are just beyond Digital I/O 1, and [CK, DI, DO, CS] in order.
I have several questions. First, there are pins sticking out on both the accelerator end and the Digital I/O. Does that mean I have to splice two of the cable things together to get two female ends? What is the cable thing called anyways?

It seems that CK, DI, DO, and CS are individual pins on the accelerometer. Am I correct in assuming that CK would be wired to Digital I/O 1, DI goes to I/O 2, DO goes to I/O 3, and CS goes to I/O 4? How would that work? The Digital I/O side looks like it requires three holes per slot, whereas each pin on the accelerometer needs only one hole. Are two of the holes on the Digital I/O unused? Which end connects to the accelerometer?

How does that work on the code side? According to the WPILib documentation (for C++), it looks like there are only three constructors for the Accelerometer:

Code:
Accelerometer(UINT32 channel)
Accelerometer(UINT8 moduleNumber, UINT32 channel)
Accelerometer(AnalogChannel *channel)
These constructor arguments seem to imply that the Accelerometer is wired up to the Analog Breakout. How does that work, given that the accelerometer is actually wired to the Digital Sidecar?


The instructions for the Gyro were also a bit cryptic to me. It gave basically this table:
Code:
 Rate   | Temperature
--------|------------
 +5V    | +5V
--------|------------
 Ground | Ground
What does that mean? Does that also go into the Digital Sidecar? In C++, the Gyro has pretty much the same constructor as the Accelerometer. Does that also mean it goes into the Analog Breakout?

Final question/request. Apparently, Labview comes with example wiring diagrams for this. Our team is using WindRiver and don't have Labview installed. If it's not too much trouble, could somebody take a screenshot of the wiring diagram and link to it?
 


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 04:13.

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