I'm going to try build a voltage monitor with the goal of changing PWM depending on the input voltage. I'll need the on board A/D and PWM and the end circuit will have to fit in a pretty small place, so I'm figuring on using the PIC12F683. I can fiddle around with the DIP version before I go surface mount. Is this a good IC for my application? I haven't ordered anything yet.
Here are my input voltages and calculated duty cycles.
Vin Duty
30 0.43
29 0.45
28 0.46
27 0.48
26 0.50
25 0.52
24 0.54
23 0.57
22 0.59
21 0.62
20 0.65
19 0.68
18 0.72
17 0.76
16 0.81
15 0.87
14 0.93
13 0.99
Am I on the right track?
Next, to tackle the PWM adjusting. Are there any similar projects that I can study? I searched and didn't find anything like what I'm doing or at least, simple enough for me to grasp.
~ Dave
Bookmarks