Look at the attached chart. The PWM input is x-axis, and y-axis is estimated output (%) based on these figured from IFI:
Quote:
VAULE STATE LED STATUS Pulse Width
0 – 41 Full Reverse RED 0.856 – 1.06 ms
42 – 125 Reverse OFF 1.07 – 1.48 ms
126 – 139 Neutral YELLOW 1.49 – 1.55 ms
140 – 230 Forward OFF 1.56 – 2.00 ms
231 – 254 Full Forward GREEN 2.01 – 2.12 ms
|
The other, darker line is the target output based on a cubic function with dead bands at the beginning, middle, and end. I am working on creating a look-up table to insert into code that could accomplish this. Any suggestions are appreciated.