Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kykaz
Beginner
1,198 Views

Help with Sparkfun Intel Edison ADC Breakout board

Jump to solution

Hello folks, I am very new here and also new at the whole IOT and I was wondering if someone can help me with an issue with the SparkFun ADB Breakout board with an Intel Edison Mini Sparkfun breakout board and I am confused.

There is a lot of documentation about how to use a FlexSensor and the Edison using arduino, but I am using C++ and I found a few C++ sources in the sparkfun repo to read from analog to digital.

I also have a few touch sensors, compiling works well, no errors, but when I try to read from AN0, I get bogus data. I am including # include "SparkFunADS1015.h" and parkFunADS1015.cpp file into my project and like I said no compiling errors, I tried to use a 10k oHM and plug to ground(from connecting to ardino board documentation) but am using a sparkfun intel Edison min block], AN0 and 3.3 volts but does not seem to do anything, the ranges are .00002 to .000025.

When I used a touch sensor, I get no data.

What gives? Am I newbie enough not to understand this or is there something else missing (yes, am not an EE or a electrical voltage type of guy)

Any help would be appreciated

Products

https://www.sparkfun.com/products/13045 https://www.sparkfun.com/products/13045

https://www.sparkfun.com/products/13327 https://www.sparkfun.com/products/13327

https://www.sparkfun.com/products/8606 https://www.sparkfun.com/products/8606

https://www.sparkfun.com/products/8712 https://www.sparkfun.com/products/8712

https://www.sparkfun.com/products/13024 https://www.sparkfun.com/products/13024

Thanks again and I look forward for an answer

1 Solution
Carlos_M_Intel
Employee
41 Views

Hi KarlosEdison,

I check the libraries you are using from: https://github.com/sparkfun/SparkFun_ADC_Block_for_Edison_CPP_Library GitHub - sparkfun/SparkFun_ADC_Block_for_Edison_CPP_Library: C++ library and example for using SparkFun's ADC block for …

These libraries use the MRAA library so I would like to know if you have the latest version on your board or which version do you have.

You can install the latest version by running the following commands:

echo "src iotkit http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586 http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586" > /etc/opkg/iotkit.conf

opkg update

opkg install mraa

I suggest you to also install the UPM library too (just in case), you can check some examples of this libray in:https://github.com/intel-iot-devkit/upm/tree/master/examples upm/examples at master · intel-iot-devkit/upm · GitHub. If you are using one of those sensors, the library will help you a lot.

opkg install upm

Also, check the raw readings from the ADC in /sys/bus/iio/devices/iio:device1, if you are using the AN0 you should be able to see the readings with cat /sys/bus/iio/devices/iio:device1/in_voltage0_raw. Start checking these files while using the sensors so you can see if the ADC is working or not, then you can start debugging the code and libraries.

Regards,

Charlie

View solution in original post

1 Reply
Carlos_M_Intel
Employee
42 Views

Hi KarlosEdison,

I check the libraries you are using from: https://github.com/sparkfun/SparkFun_ADC_Block_for_Edison_CPP_Library GitHub - sparkfun/SparkFun_ADC_Block_for_Edison_CPP_Library: C++ library and example for using SparkFun's ADC block for …

These libraries use the MRAA library so I would like to know if you have the latest version on your board or which version do you have.

You can install the latest version by running the following commands:

echo "src iotkit http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586 http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586" > /etc/opkg/iotkit.conf

opkg update

opkg install mraa

I suggest you to also install the UPM library too (just in case), you can check some examples of this libray in:https://github.com/intel-iot-devkit/upm/tree/master/examples upm/examples at master · intel-iot-devkit/upm · GitHub. If you are using one of those sensors, the library will help you a lot.

opkg install upm

Also, check the raw readings from the ADC in /sys/bus/iio/devices/iio:device1, if you are using the AN0 you should be able to see the readings with cat /sys/bus/iio/devices/iio:device1/in_voltage0_raw. Start checking these files while using the sensors so you can see if the ADC is working or not, then you can start debugging the code and libraries.

Regards,

Charlie

View solution in original post

Reply