Hi, i am trying to use Sparkfun ADC block with Grouve Loudness Sensor. The problem is that if I use the sample code from Intel Website it returns error below:
Error: Invalid AIO pin specified - do you have an ADC?
If I go with sparkfun ADC Block Library it return me crazy values like sound level being 2000DB. Tested the sensor with Arduino and the sensor works just fine.
Can anyone help?
https://github.com/intel-iot-devkit/upm/blob/master/examples/c%2B%2B/loudness.cxx This one.
I use ViasulGDB for visual Studio. But remember is the Sparkfun ADC block that i use not intel mini breakboard / arduino breakboard. I use same process to upload the GPS sample code and it is working perfectly. Only with sensors that uses ADC block i have the error.
An older topic I opened regarding ADC Block is http://https//communities.intel.com/thread/101466 this one
Were you able to solve the issue in the other thread? Did you get results from those suggestions?
I don't have a Loudness sensor to test it myself but the first things to check are your Edison image, make sure that you're running the latest image, if you're already running the latest image you can try with the previous one, this way we'll make sure that the problem is not caused by the image. You can find the latest image here https://software.intel.com/en-us/iot/hardware/edison/downloads https://software.intel.com/en-us/iot/hardware/edison/downloads. The previous one can be downloaded from here http://downloadmirror.intel.com/25028/eng/edison-image-ww25.5-15.zip http://downloadmirror.intel.com/25028/eng/edison-image-ww25.5-15.zip.
Regarding the block itself, take into account these things: