Hey all. I trying to use the BeagleBone Black to drive a motor system and 
simultaneously read the output voltage. Originally I was using the native 
sysfs ADC and PWM modules. The PWM worked perfectly however the ADC would 
lock, return erroneous values, and give the error "Resource Temporarily 
Unavailable". After extensive research this was narrowed down to a kernel 
driver error. Therefore to get around this I decided to utilize the PRU's 
via the freebasic libpruio library. This effectively solved the ADC issue 
or so I thought. Using the PRU's for ADC from say a trim pot or a 
photo-resistor to measure values works flawlessly....

However I have noticed that attempting to read ADC values (even when using 
the PRU's) while simultaneously outputting a PWM signal to drive the motor 
system causes the ADC to "freeze". That is the value gets stuck and will 
not update, even though other values will continue to update. Closing the 
program and rerunning it causes the program to hang requiring a force exit. 
And to get it working again requires a reboot. 

I find it hard to believe that no one else has run into this issue, I also 
find it hard to believe that no one else has ever attempted to 
simultaneously use the ADC and PWM on the BeagleBoard. 

So ...

1) Has anyone run into this issue before?

2) Does anyone have a possible solution?

3) Does anyone have an effectively working method of driving a motor with 
on board PWM while simultaneously reading analog values with the on board 
ADC? 

Thank you in advance. I have been losing my mind over this. 

-- 
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/d/optout.

Reply via email to