|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
New Accelerometer and LabView
So the new accelerometer for 2010 gives you the choice of hooking up to either spi or i2c. The documentation says that these should be attached to the digital sidecar in either the i2c area or DIO 1-4. However, the vi's associated with the accelerometer only allow analog inputs. I know last year's accelerometer required analog inputs, so i'm assuming the vi's are a carry over. So: A) Does someone have some accelerometer vis that will allow digital inputs? or B) Can this accelerometer be plugged into the analog breakout?
|
|
#2
|
||||
|
||||
|
Re: New Accelerometer and LabView
Unfortunately, it's not analog this year; it goes into the I2C port on the digital sidecar.
Perhaps this thread will help: http://www.chiefdelphi.com/forums/sh...d.php?p=900068 |
|
#3
|
|||
|
|||
|
Re: New Accelerometer and LabView
Hmm, thanks for the reply. I had a feeling that was the response i was going to get about B). However, here's hoping someone has a workaround for the analog .vi's. If not, the team will probably just have to use the analog acc from last year.
|
|
#4
|
||||||
|
||||||
|
Re: New Accelerometer and LabView
There is an example in LabVIEW for the I2C accelerometer.
|
|
#5
|
||||
|
||||
|
Re: New Accelerometer and LabView
Really?
I see no mention of "accelerometer" or "I2C" in Begin.vi. |
|
#6
|
||||||
|
||||||
|
Re: New Accelerometer and LabView
In the LabVIEW examples, not the framework code.
|
|
#7
|
||||
|
||||
|
Re: New Accelerometer and LabView
Thank you!
I'll move the functions to my palette. Do you know if the I2C port supports multiple-byte reads? If so, does this mean it could do continuous measurement, without having to re-address to the accelerometer? |
|
#8
|
|||
|
|||
|
Re: New Accelerometer and LabView
It does... but only up to 7 bytes per transaction (i.e. without readdressing).
|
|
#9
|
||||
|
||||
|
Re: New Accelerometer and LabView
Well, as a follow-up:
I finally got around to wiring the accelerometer up. For some reason, I'm not getting any accelerations back from it. I haven't bothered yet to see if I'm actually connecting to it in the first place. However, I did test the wiring before turing the robot on. Did you know: Only one of the two sets of PWM-style I2C headers are connected? (The lego-style female RJ-14 is connected as well) |
|
#10
|
|||
|
|||
|
Re: New Accelerometer and LabView
That's cause the 4 pins farthest from the RJ connector are slow digital outputs, not I2C. You'll notice that the silk screen on the Sidecar says "OUT" next to them. We never bothered to add support for them to WPILib, but the FPGA layer supports them.
|
|
#11
|
||||
|
||||
|
Re: New Accelerometer and LabView
Quote:
![]() Last edited by kamocat : 05-02-2010 at 00:44. |
|
#12
|
|||
|
|||
|
Re: New Accelerometer and LabView
Quote:
It's usually cause by a wiring issue. Do you happen to have a logic analyzer that you can use to look at the bus? |
|
#13
|
||||
|
||||
|
Re: New Accelerometer and LabView
No, I just have an O-scope. (I don't think it'd show me much in this case, or I would use it)
The battery was low, so I put the bench-test on an external 13v supply. No change in response. Should I try running a Driver Station, to see if that makes a difference? I guess this brings up the other question: How easy is this board to fry from heat or static electricity? Last edited by kamocat : 05-02-2010 at 01:52. |
|
#14
|
|||
|
|||
|
Re: New Accelerometer and LabView
Quote:
Quote:
No idea... I've never seen one die. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| KoP Gyro and Accelerometer Placement | DavidB | Electrical | 6 | 05-02-2010 09:18 |
| New TipJar Training Video - Autonomous Mode and LabVIEW Training Giveaway | LVMastery | NI LabVIEW | 3 | 28-01-2009 07:06 |
| New LabVIEW TipJar Tutorial Video: Scalability, Modularity and Style. | LVMastery | NI LabVIEW | 0 | 18-01-2009 14:56 |
| LabVIEW Training and new control system demonstration 10/17-10/19 in Frazier Park, CA | Joe Ross | NI LabVIEW | 0 | 25-09-2008 13:25 |
| gyro and accelerometer problems | paulcd2000 | Programming | 6 | 16-02-2008 15:17 |