|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Accelerometer code
Ah, the infamous "accelerometer returns zero" issue. The code looks right at first glance.
What cable are you using between the cRIO's DIO module and the Digital Sidecar? There are many reports of the white round-jacketed cable from previous years not working with I2C while a ribbon cable does. There's also the possibility that a ribbon cable from this year's Kit of Parts didn't quite get fixed properly, and has some bad connections at the end where the I2C pins are. |
|
#2
|
|||
|
|||
|
Re: Accelerometer code
First of all, thanks for the quick reply!
We have used the white round-jacketed cable from previous years and not the ribbon cable because the ribbon cable was destroyed when we tried to fix it (It had arrived broken in the KOP)... We are now trying to get a new ribbon cable. I also tried to use the accelerometer with SPI, but it had the same problem (acceleration is always 0). Is it also because of the cable? the code for the SPI try is attached. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|