View Single Post
  #12   Spotlight this post!  
Unread 25-06-2008, 14:17
markulrich's Avatar
markulrich markulrich is offline
Head Captain and LabVIEW Programmer
FRC #2129 (Ultraviolet)
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Minneapolis
Posts: 46
markulrich has a spectacular aura aboutmarkulrich has a spectacular aura about
Re: Is the maximum PWM value 254 or 255?

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.
Attached Thumbnails
Click image for larger version

Name:	target v estimated.jpg
Views:	99
Size:	41.8 KB
ID:	6722  

Last edited by markulrich : 25-06-2008 at 15:23. Reason: typo