Community
cancel
Showing results for 
Search instead for 
Did you mean: 
IBanc
New Contributor I
1,425 Views

Sparkfun ADC - invalid AIO Pin

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?

 

Thank You!

0 Kudos
5 Replies
idata
Community Manager
56 Views

Hi Iosif,

 

 

Could you please provide the links that you used to get the sample code? Did you use the one from this website https://github.com/intel-iot-devkit/upm/blob/master/examples/javascript/loudness.js https://github.com/intel-iot-devkit/upm/blob/master/examples/javascript/loudness.js? Also, which process are you following to upload the code to your board? I would like to check if the error has something to do with the configuration of the module or the block. Also, I don't seem to find the ADC block library, could you please provide it?

 

 

Regards,

 

Pablo
IBanc
New Contributor I
56 Views

Hi,

 

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

 

Thank You!
idata
Community Manager
56 Views

Hi Iosif,

 

 

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:
  • The voltage range: -6.144V to +6.144V
  • The reference voltage is configured by software.
You can also test the block with Python, have you give this a try?

 

 

Regards,

 

Pablo
IBanc
New Contributor I
56 Views

Solved by itself in 24 hours.

Thanks!

ARobe11
Beginner
56 Views

How did you solve this?

I'm having the similar error.

Thanks,

Tony

Reply