Go to Post Mmmmm, First Choice day. I can already taste the latency. - ttldomination [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2010, 13:40
gwpierson gwpierson is offline
Registered User
FRC #1764
 
Join Date: Jan 2010
Location: Missouri
Posts: 2
gwpierson is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2010, 13:54
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2010, 14:21
gwpierson gwpierson is offline
Registered User
FRC #1764
 
Join Date: Jan 2010
Location: Missouri
Posts: 2
gwpierson is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2010, 14:28
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: New Accelerometer and LabView

There is an example in LabVIEW for the I2C accelerometer.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2010, 15:19
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: New Accelerometer and LabView

Really?
I see no mention of "accelerometer" or "I2C" in Begin.vi.
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2010, 15:26
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: New Accelerometer and LabView

Quote:
Originally Posted by kamocat View Post
Really?
I see no mention of "accelerometer" or "I2C" in Begin.vi.
In the LabVIEW examples, not the framework code.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2010, 17:34
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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?
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 17-01-2010, 21:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New Accelerometer and LabView

Quote:
Originally Posted by kamocat View Post
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?
It does... but only up to 7 bytes per transaction (i.e. without readdressing).
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2010, 00:44
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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)
__________________
-- Marshal Horn
Reply With Quote
  #10   Spotlight this post!  
Unread 03-02-2010, 01:10
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New Accelerometer and LabView

Quote:
Originally Posted by kamocat View Post
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)
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.
Reply With Quote
  #11   Spotlight this post!  
Unread 05-02-2010, 00:41
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: New Accelerometer and LabView

Quote:
Originally Posted by Error code -44095
The I2C sensor identification string did not match. The expected sensor is not at the address and bus specified. The sensor was expected to return "Address: 58" but instead returned "Sensor did not respond."
I2C.lvlib:Read.vi>>I2C.lvlib:Open.vi>>ADXL345 I2C Open.vi>>i2c accel.vi
<time>06:23:27 02/05/2010
<unique#>1
Any ideas why this might be? I double-checked the wiring. I even checked the code to make sure it had the right address.
__________________
-- Marshal Horn

Last edited by kamocat : 05-02-2010 at 00:44.
Reply With Quote
  #12   Spotlight this post!  
Unread 05-02-2010, 00:48
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New Accelerometer and LabView

Quote:
Originally Posted by kamocat View Post
Any ideas why this might be? I double-checked the wiring. I even checked the code to make sure it had the right address.
Triple check the wiring? 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?
Reply With Quote
  #13   Spotlight this post!  
Unread 05-02-2010, 00:53
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
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?
__________________
-- Marshal Horn

Last edited by kamocat : 05-02-2010 at 01:52.
Reply With Quote
  #14   Spotlight this post!  
Unread 05-02-2010, 15:15
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New Accelerometer and LabView

Quote:
Originally Posted by kamocat View Post
No, I just have an O-scope. (I don't think it'd show me much in this case, or I would use it)
Well... if you can watch the data and clock lines you can check that the address is being sent correctly and that the address is actually not acked.

Quote:
Originally Posted by kamocat View Post
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?
The driver station should not need to be connected as long as your code is getting called. Never hurts to have it, though. One less variable to worry about.

Quote:
Originally Posted by kamocat View Post
I guess this brings up the other question:
How easy is this board to fry from heat or static electricity?
No idea... I've never seen one die.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 22:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi