Go to Post Just got our robot crate back. The FedEx driver told me he was watching the robotics competition online and asked how our team did. He knew about Team 27 and 469. We must be doing a great job in Michigan promoting FIRST if a FedEx driver watch FRC matches online and was excited talking about it. - Ed Law [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 28-01-2012, 16:07
cajsc cajsc is offline
Registered User
FRC #4091
 
Join Date: Jan 2012
Location: Dominican Republic
Posts: 4
cajsc is an unknown quantity at this point
getting adxl345 to work

Greetings

I'm a mentor in software in a rookie team and we're trying to get the ADXL345 accelerometer sensor to work with no luck. It's kind of frustrating since we have 4 days in this with no luck.

Do somebody know a tutorial that actually explains how to get this sensor to work step by step? because the example code that is in the NI page we are not understanding what they do and how to use that info to actually make it work in our program.

Please note that we're using LabView 2012, and that we're a rookie team and this is the first year we're competing.

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2012, 00:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: getting adxl345 to work

The ADXL345 I2C Accelerometer example shows how to connect to and read from the device. Once you have it working, you can copy the Open into Begin.vi, copy the Close into Finish.vi, and copy the Read wherever you want to use it. Find the I2C RefNum get and set functions in the WPI Library -> Communications -> I2C function palette.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2012, 12:18
cajsc cajsc is offline
Registered User
FRC #4091
 
Join Date: Jan 2012
Location: Dominican Republic
Posts: 4
cajsc is an unknown quantity at this point
Re: getting adxl345 to work

Thank you a lot, the only tutorial we found on internet was using the other protocol, but now that you said it it makes a lot of sense.

I think we were just too frustrated because we didn't make work at first.

I'll try that and let you know it all went. Thanks
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2012, 15:24
cajsc cajsc is offline
Registered User
FRC #4091
 
Join Date: Jan 2012
Location: Dominican Republic
Posts: 4
cajsc is an unknown quantity at this point
Re: getting adxl345 to work

Ok i make it work, Thanks a lot for your help
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


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

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