On 11/23/2013 08:24 AM, JJ wrote:
> I managed to compile BBIO and before that I installed python2 packages.
> Now there's a new problem, let's see following code
> |
>
>
> importAdafruit_BBIO.ADC asADC
>
>
> ADC.setup()
> value =ADC.read("P8_36")
> voltage =value *1.8#1.8V
> printvoltage
> |
>
> It should print the analog pin 5 value, but this error appears:
> |
> # python2 voltage.py
> Traceback(most recent call last):
>   File"voltage.py",line 3,in<module>
>     ADC.setup()
> RuntimeError:Unableto setup ADC system.Possiblecauses are:
>   -A cape witha conflicting pin mapping isloaded
>   -A device tree objectisloaded that uses the same name fora
> fragment:helper
>  
> |
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
which arch kernel are you running? You should be on the legacy one for
the beagle if you're working with capes also you should make sure you're
using dtc-overlay as opposed to dtc.

This post has some information in regards to the device tree and arch
linux arm.
http://www.adminempire.com/beaglebone-basics-for-arch-linux/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to