Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PWM

(you are viewing a thread; or go back to list of threads)

PWM (by oster)
Show the program please PWM on the image. Thank you
Sat Aug 21 2010, 16:07:07, download attachment PWM.GIF
(no subject) (by Jonathan Westhues)
I am assuming that for the first example, you want to set the PWM duty cycle with two push buttons, one to increase the duty cycle and one to decrease it. See the attached example.

For the second example, you can just A/D convert the input, to get a value between 0 and 1023, then divide that by 10, to get a value between 0 and 102, then clamp it to 100 if it's more than 100 (using a greater than or less than op). The resulting value, between 0 and 100, can be specified as the PWM duty cycle.
Sat Aug 21 2010, 16:16:17, download attachment up-down.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):