Thanks for your answer. But i donĀ“t know, how this structure or command
write. I work with AVR microprocessor, no with linux. Can you send me some
examples  of command, which I solve my problem? . I need only number with
range 0-4000 from 0-1,8V (AIN0). I use machinekit,debian 3.8. and beagle
bone black (own cape).Thanks

2016-04-20 16:06 GMT+02:00 Charles Steinkuehler <char...@steinkuehler.net>:

> On 4/20/2016 8:15 AM, Matus Kamensky wrote:
> > Hi. I use machinekit  for controlling my CNC mill and i need read ADC
> pin (AIN0)
> > to set speed of my motor (0-4000rpm). I need convert voltage (0-1,8V) to
> > pwmgen.parameter(0-4000). Can You help me? Thanks.
>
> Start with the BBB temperature code:
>
>
> https://github.com/machinekit/machinekit/blob/master/src/hal/user_comps/hal_temp_bbb.py
>
> ...use "none" for the thermistor and use the .raw HAL pin in your HAL
> file.  If you want, you can delete the code that converts ADC values
> to a resistance and then a temperature value, or add some appropriate
> scaling so you can directly connect the .raw output pin to your pwmgen
> input.
>
> --
> Charles Steinkuehler
> char...@steinkuehler.net
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/zTS1a2GxEYs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/57178CCD.9030907%40steinkuehler.net
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAC8WByYG2-ww6%2B3908jmErq_qNuRGqRkDJrDg91R6SVNqOW5Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to