Go to Post Your team will be more of a team and not a group of students who are just building a robot. Instead of being in FIRST, you will be FIRST. - JackN [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 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?
  #2   Spotlight this post!  
Unread 26-01-2012, 21:25
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Questions on wiring the Accelerometer/Gyro

As I haven't worked with the accelerometer for a while, I'll let someone more familiar with that explain it.

Quote:
Originally Posted by Michael_Lee View Post
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?
That table there indicates the two different signal circuits on the gyro. The one indicated by "rate" is the signal circuit that returns the actual yaw rate of the gyro. The one indicated by "temperature" is the signal circuit that returns an operating temperature with which to calibrate the gyro output. If you've ever used one before, you'll have noticed that gyros tend to drift; that is, the signal they return is not 100% accurate. Temperature fluctuations can be used in signal processing to eliminate some of this drift. Both the rate and temperature output signals are analog (that is, they use proportional voltage to carry a signal), so they both go into the analog breakout.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #3   Spotlight this post!  
Unread 26-01-2012, 21:53
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Questions on wiring the Accelerometer/Gyro

What we did was IC2 and its those 2 sets of 4 pins next to the phone jack looking port. Make sure to use the 4 pins closer to the phone jack. we just used two 2-pin connectors, the ones with female on both sides.

As far as the gyro is concerned, make sure to plug it into the analog breakout, the thing that goes on the module. https://docs.google.com/viewer?url=h...20Breakout.pdf

dont forget to change the jumper and the analog breakout needs to have the wires going into the PD board.
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:50.

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