Does anyone have any information on the accelerometer that we were provided in the KoP this year?
The WPILib user’s guide tells us that it’s I2C based, but that’s all the information I can find. The kit checklist just shows a picture, and there’s no documentation on the FIRST site as there is for the gyro and encoder, not even a part number. I haven’t had a chance to actually look at the board to search for anything that could help.
So, for now, we have no idea how to even hook it up, not even going on to actually reading it and using the data (hopefully WPI’s “shortly after kickoff” will be soon), unless I’ve missed something. Is everyone else in the same situation?
A question, not about the accelerometer but rather about the gyroscope:
We looked at the pin configuration on the documentation that FIRST sent us, and while the picture of the gyroscope looks exactly like the gyroscope we received, the pin configuration doesn’t match the structure of the gyroscope at all.
For instance:
In the schematic, the Temperature and Voltage outputs are on opposite sides.
On the gyro, there are three Temperature and three Voltage outputs, and they lie next to each other in two rows.
Can someone help us? Is the documentation / gyroscope incorrect? Or are we just missing something?
And as a side note, if you do know, how would we wire the gyroscope using a PWM?
Wire your PWM cable such that the white signal line goes to either rate or temperature, the red power line goes to 5 Volts, and the black line goes to ground.
The signals are closest to the signal names: The ground is closest to the edge of the board.
Istheir a test VI to test the accelerometer using I2C in the cRIO code this year?? The one I found was only for testing last years unit using analog inputs??
Should have specified - we need to know which way to solder the PWM to the gyro, not the gyro to the digital board. Thanks for the additional information, though.
We have one PWM space for Rate and another for Temperature.
We figure that we won’t need to use temperature, so all we need to know is which way to orient the PWM (white wire out, or black wire out?).
Depends on your language of choice. I added 2 examples for using the ADXL345 one with I2C and the other with SPI, both for LabVIEW. I haven’t seen any examples for C++ or Java yet. What language are you trying to use?