|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: Accelerometer Example of New Crio
There's updated files for the SPI ADXL345 example attached to the firstforge bug report. http://firstforge.wpi.edu/sf/go/artf1432
|
|
#2
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
The fixed SPI example still doesn't work for me. I've finally gotten I2C working though, apparently it only works with the flat cable.
|
|
#3
|
|||
|
|||
|
Re: Accelerometer Example of New Crio
Not sure what "flat cable" you are talking about. If it is the DB-37 cable from the kit, then it "only works" if you fix the cable end to not be reversed.
|
|
#4
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
Yes, I meant that flat cable the replaced the thick round ones in previous years. What I meant to say is that the ADXL345 doesn't work with the old cable, in other words only works with the newer flat one. (our cable needed to be flipped but we already did that)
|
|
#5
|
|||
|
|||
|
Re: Accelerometer Example of New Crio
Quote:
-Joe |
|
#6
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
Quote:
Quote:
Quote:
Sure, these are Java, but I'm still seeing a recurring pattern.... |
|
#7
|
|||
|
|||
|
Re: Accelerometer Example of New Crio
My Labview Getting Started window does not list any tutorials. Can they be found anywhere else?
|
|
#8
|
|||||
|
|||||
|
Re: Accelerometer Example of New Crio
Quote:
|
|
#9
|
|||
|
|||
|
Re: Accelerometer Example of New Crio
We couldn't communicate on the I2C bus using the round cable. Switching to the flat cable fixed the problem.
|
|
#10
|
|||
|
|||
|
Re: Accelerometer Example of New Crio
Quote:
-Joe |
|
#11
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
We also struggled with the ADXL345 in I2C mode. Running the included LabVIEW example the device worked intermittently. I looked at SDA and SCL with an O-Scope and noticed they where kind of floating when communication had error-ed out. My fix for this was to place a 100 ohm pull up resistor on both SDA and SCL. This made the ADXL345 perform wonderfully on the I2C bus. We have implemented this fix on our robot and so far have been very happy with the ADXL345's performance.
|
|
#12
|
||||||
|
||||||
|
Re: Accelerometer Example of New Crio
Quote:
|
|
#13
|
||||||
|
||||||
|
Re: Accelerometer Example of New Crio
Quote:
Looking through previous year's KOP lists, it looks like there have been several sources. In 2009 and 2010, it was a cablestogo pn 02688. Last year it was SF Cable pn D720-03. Maybe one of these was missing a pin that related to I2C. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|