Hi,
You can try this idea. It will never go under 50% using 125 as a constant. Then divide your adcin by 2 this variable will be 0 to 127
Duty = 125 + adcin/2
Hi,
You can try this idea. It will never go under 50% using 125 as a constant. Then divide your adcin by 2 this variable will be 0 to 127
Duty = 125 + adcin/2
Last edited by mark_s; - 25th October 2015 at 23:39.
Bookmarks