P
Paul E. Schoen
Guest
"petrus bitbyter" <pieterkraltlaatditweg@enditookhccnet.nl> wrote in
message news:48b9b7c0$0$3112$e4fe514c@dreader26.news.xs4all.nl...
a voltage doubler with the PWM output that can be programmed for a range of
about 4 VDC to 6 VDC. It requires only two capacitors, two resistors, and
a diode. It might need to be monitored by one of the ADCs and trimmed, or
if the load is stable, you could make a table of PWM values and output
voltages. The LTspice ASCII for the circuit is at the end. The simulated
outputs with a 10 kHz PWM into a 5 kOhm load after 100 mSec are as follows:
0% 4.07 VDC
5% 4.24 VDC
10% 4.40 VDC
20% 4.72 VDC
30% 5.04 VDC
40% 5.33 VDC
50% 5.62 VDC
60% 5.86 VDC
70% 6.05 VDC
80% 6.09 VDC
85% 5.98 VDC
90% 5.64 VDC
Paul
==============================================================================
Version 4
SHEET 1 880 680
WIRE -32 16 -64 16
WIRE 160 16 32 16
WIRE 80 80 32 80
WIRE 160 80 160 16
WIRE 160 80 144 80
WIRE 256 80 160 80
WIRE 544 80 336 80
WIRE 608 80 544 80
WIRE 608 128 608 80
WIRE -64 144 -64 16
WIRE 32 144 32 80
WIRE 544 144 544 80
WIRE -64 256 -64 224
WIRE 32 256 32 224
WIRE 32 256 -64 256
WIRE 80 256 32 256
WIRE 544 256 544 208
WIRE 544 256 80 256
WIRE 608 256 608 208
WIRE 608 256 544 256
WIRE 80 304 80 256
FLAG 80 304 0
SYMBOL voltage 32 128 R0
WINDOW 3 13 107 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 37 52 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 100n 100n 100n 80u 100u 2000)
SYMATTR SpiceLine Rser=200
SYMBOL cap 144 64 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C1
SYMATTR Value 1ľ
SYMBOL cap 560 208 R180
WINDOW 0 24 64 Left 0
WINDOW 3 24 8 Left 0
SYMATTR InstName C2
SYMATTR Value 10ľ
SYMBOL schottky -32 32 R270
WINDOW 0 32 32 VTop 0
WINDOW 3 0 32 VBottom 0
SYMATTR InstName D1
SYMATTR Value 1N5818
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 592 112 R0
SYMATTR InstName R1
SYMATTR Value 5k
SYMBOL voltage -64 128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res 352 64 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R2
SYMATTR Value 1k
TEXT 118 280 Left 0 !.tran 200m startup
message news:48b9b7c0$0$3112$e4fe514c@dreader26.news.xs4all.nl...
I agree with your recommendations, but I found that it is possible to makeThe D/A is not that easy.
The most simple solution will be PWM. You'll need a very good low pass
filter to get rid of the sample frequency which in turn will make output
changes slow.
A good and rock-stable way is an R/2R network. You'll need 14 resistors
and 7 output pins to achive 100 (128 to be excact) step resolution. Both
are described in:
http://ww1.microchip.com/downloads/en/AppNotes/00655a.pdf
A more attractive way is using a D/A-convertor. A TC1320 for instance is
a good choice. But the 8-pins chip uses an I2C interface which will be
hard to inplement for a beginner. You can however find example code at
Microchips. For the PIC a PIC12f629 will do.
In all solutions described above you will need an amplifier if you need
an output voltage >5.5V.
a voltage doubler with the PWM output that can be programmed for a range of
about 4 VDC to 6 VDC. It requires only two capacitors, two resistors, and
a diode. It might need to be monitored by one of the ADCs and trimmed, or
if the load is stable, you could make a table of PWM values and output
voltages. The LTspice ASCII for the circuit is at the end. The simulated
outputs with a 10 kHz PWM into a 5 kOhm load after 100 mSec are as follows:
0% 4.07 VDC
5% 4.24 VDC
10% 4.40 VDC
20% 4.72 VDC
30% 5.04 VDC
40% 5.33 VDC
50% 5.62 VDC
60% 5.86 VDC
70% 6.05 VDC
80% 6.09 VDC
85% 5.98 VDC
90% 5.64 VDC
Paul
==============================================================================
Version 4
SHEET 1 880 680
WIRE -32 16 -64 16
WIRE 160 16 32 16
WIRE 80 80 32 80
WIRE 160 80 160 16
WIRE 160 80 144 80
WIRE 256 80 160 80
WIRE 544 80 336 80
WIRE 608 80 544 80
WIRE 608 128 608 80
WIRE -64 144 -64 16
WIRE 32 144 32 80
WIRE 544 144 544 80
WIRE -64 256 -64 224
WIRE 32 256 32 224
WIRE 32 256 -64 256
WIRE 80 256 32 256
WIRE 544 256 544 208
WIRE 544 256 80 256
WIRE 608 256 608 208
WIRE 608 256 544 256
WIRE 80 304 80 256
FLAG 80 304 0
SYMBOL voltage 32 128 R0
WINDOW 3 13 107 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 37 52 Left 0
SYMATTR InstName V1
SYMATTR Value PULSE(0 5 100n 100n 100n 80u 100u 2000)
SYMATTR SpiceLine Rser=200
SYMBOL cap 144 64 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C1
SYMATTR Value 1ľ
SYMBOL cap 560 208 R180
WINDOW 0 24 64 Left 0
WINDOW 3 24 8 Left 0
SYMATTR InstName C2
SYMATTR Value 10ľ
SYMBOL schottky -32 32 R270
WINDOW 0 32 32 VTop 0
WINDOW 3 0 32 VBottom 0
SYMATTR InstName D1
SYMATTR Value 1N5818
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 592 112 R0
SYMATTR InstName R1
SYMATTR Value 5k
SYMBOL voltage -64 128 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res 352 64 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R2
SYMATTR Value 1k
TEXT 118 280 Left 0 !.tran 200m startup