View Single Post
  #5   Spotlight this post!  
Unread 06-02-2014, 21: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,112
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: Need a bit of help with the Sonar

Quote:
Originally Posted by jordan11623 View Post
The program is Labview, I'm not really sure what the program language is... If you can help us from that point, that would be fantastic.
Few people know that the actual name of the graphical language in the LabVIEW environment is "G". Most would just say you're programming in LabVIEW.

Why did you pick the MB1222 device? I2C is powerful, but it's one of the more complex schemes available in the MaxBotics sensor line.

If you feel up to the challenge, you can use the ADXL345 I2C Accelerometer example as a starting point. It shows how to communicate with an I2C device. The MB1222 datasheet tells what the 8-bit equivalent read and write addresses are (E0 and E1), and describes how to interpret the response.

If you aren't comfortable blazing new trails, you would find your job to be much easier if you used something like the MB1010 or MB1020 instead. Reading its output can be as simple as reading an analog voltage, something which is well supported by the FRC programming tools.
Reply With Quote