Author Topic: EEVblog #473 - Microcontroller Voltage Doubler  (Read 18512 times)

0 Members and 2 Guests are viewing this topic.

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
EEVblog #473 - Microcontroller Voltage Doubler
« on: May 25, 2013, 12:10:13 pm »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #1 on: May 25, 2013, 12:20:11 pm »
So..  what to do next.

Multiplying the voltage up is cool and all but its not really a "doubler"

So.. for no reason at all, presenting the unnecessarily complex 3 stage doubler. 

(yeah i know it's bad. I couldn't get LTSpice to do what i wanted so the push/pull driver sections are overly complex and require two i/o)
















« Last Edit: May 25, 2013, 12:27:49 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Alana

  • Frequent Contributor
  • **
  • Posts: 297
  • Country: pl
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #2 on: May 25, 2013, 12:37:25 pm »
Crazy thing - i'm working on a project and Dave is doing video that exacly matches what i need to learn to finish it.
Is there a formula that allows to calculate/estimate how much current can i get from such voltage doubler depending on caps value and frequency?
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 8973
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #3 on: May 25, 2013, 01:49:08 pm »
I have done a few designs that used the Lx node of an existing switching regulator to derive additional rails, like getting a -12V rail from a 12V to 5V buck regulator. I put a 10 ohm or so resistor in series from the Lx to the cap in order to avoid current spikes false tripping the protection.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #4 on: May 25, 2013, 02:04:32 pm »
Crazy thing - i'm working on a project and Dave is doing video that exacly matches what i need to learn to finish it.
Is there a formula that allows to calculate/estimate how much current can i get from such voltage doubler depending on caps value and frequency?

Essentially the same as the ripple calculation for a transformer input rectifier cap, though you will have more losses so assume significantly less "ideal" situations. Best to just test it. It's rather easy to throw together a little boost converter instead, if you need current. The only disadvantage IMHO is approximately double the cost. You can even drive it from an MCU pin.

The first capacitor (the one that takes the square wave input) is harder to calculate because its value depends almost entirely on the rise time of the square wave.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline LaurenceW

  • Frequent Contributor
  • **
  • Posts: 258
  • Country: gb
    • It's Time, Jim, but not as we know it
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #5 on: May 25, 2013, 02:08:05 pm »
OK, so what happens if you connect the OUTPUT back to the DC input, in place of the 3V DC??  I might just have to try it...

It might be worth mentioning that the price you pay for these doublers is a considerably higher input current, since the output  POWER has to come from somewhere, of course.  << Oh! there - I think I've just answered my first question - the voltage will just collapse under its own load...

And I reckon you COULD get to the moon on 1mA (and about 5MV should do it...)
If you don't measure, you don't get.
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #6 on: May 25, 2013, 03:41:12 pm »
Is there a formula that allows to calculate/estimate how much current can i get from such voltage doubler depending on caps value and frequency?

The pump capacitor is charged (or 'loaded') with the supply voltage less a diode drop. That charge is pumped to the output leaving a diode drop voltage on the capacitor.

Q = CV so the charge transferred to the load on each cycle is C * (Vsupply - 2 * Vdiode). Multiply that by the pumping frequency to get charges per second which is amps. These pumps are current limited.

Circuit resistances mean the capacitor won't fully charge or discharge so reality will be somewhat less and reduces with increasing frequency.

10kHz, 3.3v, 100n and Schottky diodes with say 0.2v drop works out to about 2.9mA.

Edit: I should point out that is the current limit into heavy load. The lighter the load the higher the output voltage and so the more charge left on the capacitor and less charge transferred per cycle.
« Last Edit: May 25, 2013, 03:57:47 pm by Rufus »
 

Offline Jon Chandler

  • Frequent Contributor
  • **
  • Posts: 539
    • Throw Away PIC
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #7 on: May 25, 2013, 04:20:55 pm »
Dave's example of using a doubler to operate a 5v LCD from 3 volts is handy, but there may be another method that requires less current.

I've found that the logic of many 5 volt character LCDs works fine on 3.3 volts; the problem is that the Ve (contrast) input requires a negative voltage when the supply voltage drops below a certain point.  Rearranging the circuit slightly, it can be used to generate a negative voltage.  Connecting the negative voltage to Ve through a pot may make those "mute" 5 volt LCDs happy on 3.3 volts or lower.
 

Offline einstein

  • Contributor
  • Posts: 18
  • Country: be
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #8 on: May 25, 2013, 04:59:41 pm »
figure 23 page 19: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00002294.pdf
I use the l6208 to drive a stepper motor.
i have question about D1,D2, Rp; Cp, Cboot, is that also a dickson voltage doubler? Wat's the function of cboot and rp? This circuit gives me 18V when i feed 12V in to drive the mosfets in the upper half of the h-bridge? I think Dave gave me the answer for a question for my school project i have to do in the last year secondary eduction.
Almost as smart as Albert Einstein!
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #9 on: May 25, 2013, 05:17:39 pm »
i have question about D1,D2, Rp; Cp, Cboot, is that also a dickson voltage doubler? Wat's the function of cboot and rp? This circuit gives me 18V when i feed 12V in to drive the mosfets in the upper half of the h-bridge?

Yes, it is a charge pump. Rp limits the current when charging/discharging Cp. Cboot is the same as Dave's second cap in his video. Only that it is connected to Vs, instead of ground. This reduces the voltage over it, while the output Vboot is still above Vs. I.e. less charge is needed to get it up to a voltage above Vs.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline einstein

  • Contributor
  • Posts: 18
  • Country: be
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #10 on: May 25, 2013, 08:01:56 pm »
Thank you for your answer, and Dave thank you for the explanation.
Almost as smart as Albert Einstein!
 

Offline JoannaK

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: fi
    • Diytao making blog
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #11 on: May 25, 2013, 10:50:04 pm »
Dave's example of using a doubler to operate a 5v LCD from 3 volts is handy, but there may be another method that requires less current.

I've found that the logic of many 5 volt character LCDs works fine on 3.3 volts; the problem is that the Ve (contrast) input requires a negative voltage when the supply voltage drops below a certain point.  Rearranging the circuit slightly, it can be used to generate a negative voltage.  Connecting the negative voltage to Ve through a pot may make those "mute" 5 volt LCDs happy on 3.3 volts or lower.

Not a bad idea. I have not tested this, but it since since the digital cmos logic usually works with allmost any voltage the idea seems valid. The reaction speed of the logic may be a bit lower, but it's not much of an issue with an text mode lcd.
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #12 on: May 25, 2013, 11:15:53 pm »
OK, so what happens if you connect the OUTPUT back to the DC input, in place of the 3V DC??  I might just have to try it...

You get to start an indiegogo free energy campaign :)
 

Offline andyturk

  • Frequent Contributor
  • **
  • Posts: 895
  • Country: us
Re: Scope question...
« Reply #13 on: May 25, 2013, 11:38:00 pm »
Attached is a screen grab from David's video. It's a close-up of his scope showing the various voltages.

What's going on with the "slice marks" in the green trace? It's as if the transitions on the yellow and blue traces are blacking out the green. Interestingly, the fuscia trace is solid all the way across even though it too must be crossed by the yellow and blue transitions.

 :-//
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: Scope question...
« Reply #14 on: May 26, 2013, 01:46:32 am »
Attached is a screen grab from David's video. It's a close-up of his scope showing the various voltages.

What's going on with the "slice marks" in the green trace? It's as if the transitions on the yellow and blue traces are blacking out the green. Interestingly, the fuscia trace is solid all the way across even though it too must be crossed by the yellow and blue transitions.

It's probably the order that the scope draws them on screen.
CH4 (fuscia) was drawn last so is 'on top'

I'm not sure what governs the order as it doesn't seem to be 1 2 3 4.
It's probably whatever order that the channels were enabled in.
« Last Edit: May 26, 2013, 01:54:01 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Pat Pending

  • Regular Contributor
  • *
  • Posts: 161
  • Country: us
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #15 on: May 26, 2013, 06:14:52 am »
In the closing edits what movie is that sound track from?
 

Offline stryker

  • Regular Contributor
  • *
  • Posts: 98
  • Country: au
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #16 on: May 26, 2013, 06:17:52 am »
Hi

I'm not sure I can put my question into words that will make sense, but here goes...

Would it be possible to take the PWM signal through a parallel input to the first stage via a transistor not gate, and feed that inverted pulse to smooth out the output by shifting the 3V upward on both halves of the wave?  ie, the red shifted pulse would become the blue line?

There has to be a good reason why not I'm sure, and I thought I'd best ask before I try it and break something :)

Cheers,
Geoff
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: 00
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #17 on: May 26, 2013, 07:09:34 am »
In the closing edits what movie is that sound track from?
Google is your friend. WarGames (1983.)
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline smashedProton

  • Frequent Contributor
  • **
  • Posts: 641
  • Country: us
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #18 on: May 26, 2013, 07:17:02 am »
I just watched the movie!  Very good.  What an aloha nerd
http://www.garrettbaldwin.com/

Invention, my dear friends, is 93% perspiration, 6% electricity, 4% evaporation, and 2% butterscotch ripple.
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: 00
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #19 on: May 26, 2013, 07:17:33 am »
Stryker, I'm not sure I'm understanding what you're saying, but if you mean having two voltage multiplier stages running in inverse phase, yes that would be possible. You could keep the first stage(s) separate and feed them an inverse phase square wave, and then in the final stage, the diode would be connected to the same capacitor. You could it even generalize it and run x stages at 360/x degree phase.

Is it worth it, that's another question. If you can't get enough juice or a clean enough voltage out of this circuit, then you probably need a whole other voltage boosting solution anyway, like a proper DC/DC converter with an inductive element.
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline stryker

  • Regular Contributor
  • *
  • Posts: 98
  • Country: au
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #20 on: May 26, 2013, 07:26:22 am »
Hi,
Stryker, I'm not sure I'm understanding what you're saying, but if you mean having two voltage multiplier stages running in inverse phase, yes that would be possible.
Yes, that would have been my question converted to english :)

You're right it doesn't sound worth it, but it might be less of a cost than adding more stages to raise the voltage further and then a regulator to smooth things out that Dave mentioned in the vid.

Thanks for validating my thoughts,
Geoff
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #21 on: May 26, 2013, 07:39:13 am »
I just watched the movie!  Very good.  What an aloha nerd

There is also a little known sequel to Wargames!
Not that great, but worth watching for fans of the original.
 

Offline trevwhite

  • Frequent Contributor
  • **
  • Posts: 929
  • Country: gb
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #22 on: May 26, 2013, 07:51:22 am »
Hi.

I was wondering about the 'processor pin' Dave connected his circuit from. How do you ensure the voltage doubler doesnt exceed the output current of the processor pin. Dont want to be blowing the pin up by accident or straining it and shortening the pins' life.

Trev
 

Online tom66

  • Super Contributor
  • ***
  • Posts: 6678
  • Country: gb
  • Electronics Hobbyist & FPGA/Embedded Systems EE
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #23 on: May 26, 2013, 12:55:25 pm »
I wonder if you could add an extension to this: Perhaps a way to regulate the output voltage using the internal comparator of most micros? That way, you'd only need a couple of resistors instead of an LDO. That would require a little microcontroller software and control loop analysis.

And of course, you've also got silly circuits like the microcontroller boost converter I've seen before. It's the same as an ordinary boost converter, but with a diode in series with the switch pin, to protect the IO pin from excessive voltage. It reminds me of my attempt to make a boost converter with an LM555. I think I fried about three or four 555's that day.
 

Offline Pat Pending

  • Regular Contributor
  • *
  • Posts: 161
  • Country: us
Re: EEVblog #473 - Microcontroller Voltage Doubler
« Reply #24 on: May 27, 2013, 03:58:59 am »
In the closing edits what movie is that sound track from?
Google is your friend. WarGames (1983.)

Oh yeah! That's going back a while, thanks for the recap.
While on the topic some might like "Colossus - The Forbin Project",
Just discovered that is was based on a novel by "D Jones" - that's D as in Dennis

« Last Edit: May 27, 2013, 04:03:00 am by Pat Pending »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf