• Powered the doubler/quadrupler the wrong way... dddoooohhhh...

    Now, with correct wiring, I get with n stages and loads:

    var c=`
    
    //   n=1    n=2    N=3    n=4    n=5    n=6
    // out V  out V  out V  out V  out V  out V  Load R
    // -----  -----  -----  -----  -----  -----  ------
    //  4.57   5.85   7.07   8.26   9.59  10.80    none
    //                       7.77   8.86   9.89    100K
    //                       7.57   8.60   9.51     47K
    //                       7.47   8.42   9.21     33K
    //                       7.31   8.14   8.88     22K
    //                       6.86   7.28   7.67     10K
                    
    `; // putting in multi line comment to overcome low legibility of forum
    

    This is with this code:

    // voltageMultiplier.js
    //
    // n stages, 10uF and 1N4004 w/ 22uF between out and GND
    // w/ 3.3V on C-_D and A8 on C-
    //
    //   n=1    n=2    N=3    n=4    n=5    n=6
    // out V  out V  out V  out V  out V  out V  Load R
    // -----  -----  -----  -----  -----  -----  ------
    //  4.57   5.85   7.07   8.26   9.59  10.80    none
    //                       7.77   8.86   9.89    100K
    //                       7.57   8.60   9.51     47K
    //                       7.47   8.42   9.21     33K
    //                       7.31   8.14   8.88     22K
    //                       6.86   7.28   7.67     10K
    //
    
    var vMulP  = A8     // voltage Multiplier PWM Pim
      , vFreq  = 4096   // PWM frequency
      , vRVal  = 0.5    // PWM relative value;
      ;
    
    function von() { // voltage on
      pinMode(vMulP,"output");
      analogWrite(vMulP,vRVal,{freq:vFreq});
    }
    
    function voff() { // volatage off
      pinMode(vMulP,"input");
    }
    
    

    on n stages capacitors-diodes voltage multiplier with 10uF capacitors and 1N4007 diodes on A8 on PWM on a PICO (the pin and PWM I thought I blew in a different conversation...).

    4 stages are just a TAD - uppercase - short on the 10V I was looking for. In other words, either the loss is significant or the input is not pushy enough... so I had to add some more stages...

    Interestingly was that the lower frequency 4..8KHz fared better than the higher 16..32K. This may be fixed with different capacitors... and may be diodes too...

    Because we do not have negative swing like with real AC, the wiring is not as usual: What usually is connected to Ground (GND), has to go to 3.3V... ;-)


    1 Attachment

    • VoltageMultiplier.png
About

Avatar for allObjects @allObjects started