|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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:
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) The instructions for the Gyro were also a bit cryptic to me. It gave basically this table: Code:
Rate | Temperature --------|------------ +5V | +5V --------|------------ Ground | Ground 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
|
||||
|
||||
|
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:
|
|
#3
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|