AnsweredAssumed Answered

Beaglebone built-in ADC with IIO

Question asked by guido79 on Nov 22, 2012
Latest reply on Nov 23, 2012 by larsc

Hi, this is my first post. Hope I'm going to be on-topic. I write code in C language. I'm trying to read the analog inputs of the beaglebone at an higher rate than the one which can be achieved through the sysfs method (open the file with fopen, read a single value with fscanf, close the file, repeat). In the #beagle IRC channel at freenode, I was told to look at the IIO project. I was also told that the latest kernel 3.7 for the beaglebone (angstrom distribution) was equipped with IIO support for the built-in ADC, but that it is not tested yet. Well, I would like to test it. The problem is, I have no idea about how to write an hello world application reading data from the analog inputs. I guess I should bypass the sysfs and talk directly to the IIO layer, but I'm having hard times finding the proper documentation and examples. Any help would be appreciated, thanks

Outcomes