The scale HAL component should do exactly what you want: http://www.machinekit.io/docs/man/man9/scale/
You can set a gain and an offset value to convert the 0 -1 input to a 40-60% of an PWM output value. Am Samstag, 25. Februar 2017 02:40:20 UTC+1 schrieb Andrij Senyk: > > Hello, > > I have BlackBuck 8M laser diode driver ( > http://www.ebay.com/itm/BlackBuck-8M-8A-Buck-Laser-Driver-NDB7A75-NUBM44-NUMB05-NUBM06-NUBM08-/122257691806/?_ul=RU > ) > with next spec > modulation input 0-5V or 0-5V TTL/PWM > Frequency - 4kHz > Modulation rise/fall time - 40/60ms > > I user arduino as TTL generator everything are ok but when duty cycle > around 40% - 0% laser power, duty cycle 60% - 100% laser power > > Question possible to config on BBB > 0-40% duty cycle - 0% laser power > 60-100% duty cycle - 100% laser power > > and for example > 41% duty cycle - 5% laser power > 40,2% duty cycle - 1% laser power > 40,5% duty cycle - 2,5% laser power > etc > > another solution? > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.