LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA + Arduino + Adafruit ADS1015

Hi,

I'm trying to get the Adafruit ADS1015 breakeout board working in LabVIEW using an Arduino and I2C communication. I started with the Adafruit ADS1X15 library for the Arduino and created a single sketch for the Arduino that allows me to read one channel (e.g. A0) and everything seems to work fine (see attached sketch).

I then went to LabVIEW and created a vi that should do exactly the same. However, it does not give the same results as the Arduino. I don't think that it is the conversion of the two data bytes because when I read them from the buffer they don't match the results I from the Arduino.

ScreenShot.PNG

I'm even not sure if the configuration actually works. If I use a differnt channel in the Arduino sketch (A1 ... A3) but I still only vary the voltage on A0 nothing happens as expected, since all channels are configured as single ended. If I do the same using the LV sketch, the values I read change for A0 and A1 but not if I vary the voltage on A2 or A3 that makes me thinking that something is not working with the I2C communication. However, if I change the address to something random I get a timeout, so at least LV is talking to the ADS1015 through the Arduino.

Does anyone have an idea what's going on?

I'm using an Arduino UNO R3 and an Adafruit ADS1015 breakout board (http://www.adafruit.com/blog/2012/10/26/new-product-ads1015-12-bit-adc-4-channel-with-progrmmable-ga...), LV 2011 and version 2.2.0.79 version of the LabVIEW Interface for Arduino.

Cheers,

Thorsten

0 Kudos
Message 1 of 1
(6,678 Views)