We are having issues working with the accelerometer. Honestly in regards to connecting it to our system and working with it, we have gotten nowhere. So I’m reaching out to you lovely people in hopes that you can help us connect our accelerometer to the system so that we can test it using cRio (cRIO, cRiO, CrIoo?).
Anyways, thanks in advance if you can help us.
Update: Got it connected to the board.
Can somebody double check this?
PWR -> 5V
(-) -> 0V
Dig. I/O 1 -> CK
Dig. I/O 2 -> DI
Dig. I/O 3 -> DO
Dig. I/O 4 -> CS
If you are using LabVIEW, have you tried the ADXL345 SPI Accelerometer example program? That’s how we started our testing only we used the I2C interface and example.
Go to Support/Find FRC Examples/Sensors/ADXL345 SPI Accelerometer.
The LabVIEW example shows how to wire both the sensor and digital sidecar.
Running the example will allow you to verify that everything is functional before attempting to run your own code.
You should open LABVIEW and goto the accelerometer example. They show an example (drawing) how to connect the wires…and a short piece of software to test it.
Our team tested all our sensors using the examples in labview. Depending on what type of sensor you’ll need, you simply test as shown, and the go to the software and copy&paste the portion in your main robot application.
We used the ADXL345 I2C accelerometer LabVIEW example from this year (2012) and found that the example vi ran for several seconds, and then quit. Further checking was that it threw an error, that the string that the software expected from the device was incorrect.
Anyone else find that the VI only ran for several seconds?