EEVblog
HTML-код
- Опубликовано: 20 авг 2024
- Dave explains and demonstrates how out of phase digital signals can effectively double your voltage. The magic of moving your reference point. And how you can verify this with a differential probe.
A question bought up in the comments of the previous LCD driving video.
The HVP70 High Voltage Differential Probe
Coupon code "bargainprobe"
www.eevblog.com...
amzn.to/2Bk4AnY
EEVblog Main Web Site: www.eevblog.com
The 2nd EEVblog Channel: / eevblog2
Support the EEVblog through Patreon!
/ eevblog
Donate With Bitcoin & Other Crypto Currencies!
www.eevblog.co...
EEVblog Amazon Store (Dave gets a cut):
astore.amazon.c...
T-Shirts: teespring.com/s...
💗 Likecoin - Coins for Likes: likecoin.pro/@...
You've got 10Vpp BUT you've still got 5VRMS. For me it's not a voltage doubler. However if you add a diode and a capacitor then you'll get 10VDC and you now have a charge pump voltage multiplier. Note that 1.5v calculators use this kind of voltage doubler to generate 3v for the digital logic and to drive the LCD. On dot-matrix LCDs the controller also uses this kind of voltage multiplier to generate voltage up to 15 volts or more in order to achieve a good contrast.
@Integrated Electronics - Your concept is correct, but the LCD drive is not 5V RMS since this is a square wave. RMS only applies to pure sine waves. With a square AC waveform the effective voltage is the same as the peak voltage, in this case, 5V.
EDIT: In retrospect I realize that RMS does apply to square AC (it applies to any waveform), its just that for square waves the RMS == Nominal so it's not normally used in reference to square waves.
For those that are still struggling to understand, try this. Imagine you have a speaker, you apply 5vdc, the speaker cone moves out and stays there right? Now remove the 5v DC and the cone returns to its resting point right? Now reverse the wires and apply 5vdc again, this time the cone moves IN right? Now, how many volts AC, peak to peak, would move the speaker cone the equivalent distance max out, to max in? Have a guess.
Good analogy....
Simo.. you are referring to the equivalent of a centre tapped transformer with the speaker analogy. the speaker is biased to be mid travel you push or pull its cone.
it has nothing to do with the particularly poor video.
*Facepalm* Your comment only highlights your lack of understanding.
i would say it highlights the lack of clarity and mis-explanation in the video actually. But if you are confident how about you explain the 10V being created to drive the LCD here ?
Troll on to your heart's content.
I'll just put a copy of my response to the comment on the other video, in case it helps someone:
At time t0:
COM is at 0V relative to circuit ground
Pin A is at 5V relative to circuit ground.
Pin A is therefore at 5V relative to COM.
At time t1:
COM is at 5V relative to circuit ground.
Pin A is at 0V relative to circuit ground.
Pin A is therefore at -5V relative to COM.
In other words, Pin A just went from 5V to -5V relative to COM, which makes a change of 10V.
Yes but at any given point of time the voltage difference between com and a is 5V and so voltage difference is not actually 10 but only appears to be so
@@ahmedejaz1125 The point is that you can generate a square wave of double the usual amplitude, without anything special. So you can drive your LCD with a 10V square wave instead of just 5V.
Yes. And the “real” magic is why does this swing matter to the LCD element.
Here is a short note for those who still find it confusing... :)
Easiest way to understand it is, let's have the two points called A and B, where probes are connected in this video.
For first half cycle, A = 5V, B = 0, and for half second cycle, A = 0V, B = 5V
If we call A our "ground reference", A must always be considered 0V.
This makes B look like -5V in the first half cycle (because B is ALWAYS 5V less than A in first half cycle.
In the second half cycle, B is 5v higher than A, which makes it +look like 5V. So you effectively have B swinging from -5V to +5V, with respect to A.
Why A? Because that's where the LCD COM pin was connected to!
@Pratik, yours is by far the simplest explanation. The key is that we are always measuring *relative* to A. The chip's GND pin is completely irrelevant (except for the reason below). All our measurements are relative to A, nothing to do with GND.
However the gotcha is.. if we use a non isolated power source, the moment we make the mistake of grounding Pin A, while trying to measure things with a grounded oscilloscope probe by attaching the croc clip to Pin A and the probe clip to B ... fzzzt..... there goes the magic smoke, 'cos we just shorted out Pin A to GND. If we have our circuit on a bread board, and powered by a battery, then we are OK, since everything has galvanic isolation from the oscilloscope ground, so by attaching the croc clip to A, the whole breadboard will float relative to the oscilloscope GND +/- whatever offset we have at Pin A , so we can get away with measuring the difference between A and B. Power the circuit from a mains power source, where 0V is not galvanically isolated from our oscilloscope and ... fzzzttt... we blow things up.
Today's bed time reading.... en.wikipedia.org/wiki/Test_probe
It's just like taking a stereo amp and putting it into bridge mode and wiring the speaker across the two outputs.
Yes it is, but from the comments I don't think many people here understand amp bridging either. H-Bridge motor drivers work the same way too, but people are having trouble grasping that if you keep swapping the voltages on the ends of any component then that component sees EXACTLY the same source waveform as it would if driven by a true AC supply.
new drinking game. every time dave says "actually" take a shot. if you can still understand the video by the end you win
7 miutes in, i'm drunk
@@gigglesseven You almost killed me, now I'm back from hospital
It's simple, the scope is measuring relative to it's Gnd reference (the Gnd clip). When the Reference voltage on the Gnd clip is 0V and the probe is at +5V the difference is a +5 Volts. Now, the confusing part. The logic is changing the voltage at the Reference Point (The Gnd Clip) to +5V and at the same time the probe is now at 0V. Zero is below 5, the result is that the measured Value is now -5V. You end up with a +5v to -5v Differential swing on the scope. BUT, it is still a 5 Volt Peak to Peak signal relative to the logic circuit (no voltage doubling) the AC RMS is 2.5volts, you only end up with a "SIMULATED" -5Volts because the COM of the LCD is Floating relative to circuit com and not at a fixed reference point. Your single ended voltage is still 5 Volts no mater the polarity (of a single signal). It is simply the function of TWO different wave forms that give you the 10Volts (remember the LCD's com pin is floating). The Differential AC RMS of the to signals is still 5V. No doubling took place ;-)
It's also worth mentioning that each segment of the LCD would have its own XOR gate, wired exactly as the one shown for segment A. In this way, all the driven segments will change polarity relative to the LCD's Com pin at the same time. Effectively driving the LCD with an AC Square wave. With current flowing from com to segment pin and then having the current change direction and flow from Segment pin to the Com pin (exactly as an AC Signal would).
In common inverter technology, this technique is known as "full bridge" by comparison to the classical "half bridge" structure. It involves four switches and is equivalent to revert voltage and current in the load (then here alternating from +5V to -5V). However it is not usually called a voltage doubler as there is no way to obtain a 10V voltage relative to a common ground without using a storing capacitor somewhere. So voltage doubler: yes and no, everyone is right !
Yout absolutly right!
Sadly Dave didnt mentiond it.
Oh dammed he does in the end of the vid as subtitles...
Yes your right, however using the word doubler for such a circuit is technically incorrect, there is never a 10V applied to the LED device only alternately a +5V and a -5V but not a 10V voltage difference between the PIN of the LED has he falsely suggests by an inappropriate understanding of what he sees on the scope (a 10Vpp signal doesn't mean that a 10V is present at any time)
Henri BONDAR,
I agree, it's a bit confusing to some I'm sure, when you say "voltage doubling" ... it's not necessarily doubling the voltage, but doubling the possible excursion. (Remember that voltage potential is only relative.)
Actually 10V voltage SWING (difference between minimum and maximum amplitude) doesn't mean 10V VOLTAGE. Actual voltage is +/-5V, but not +5V and -5V AT THE SAME TIME, so not +10 nor -10V differential. But the SWING is definitely 10V.
Yes your right this is an inverter and not a voltage doubler as Dave falsely suggest
Its definitely doubling the AC component of the voltage across the load, just as a bridged audio amp doubles the voltage across the load. I think there's some confusion here betwen DC and AC - peak-to-peak voltage is a property
only of the AC component, we are only talking here of the AC component.
Another way to think of this setup is using phasors - the pre-inverter and post-inverter signals are 180 degrees out
of phase, as as phasors(*) you can call them +5 and -5, the difference is 10.
(*) This strictly only applies to sine waves of identical frequency, I gloss over the harmonics, but it works the same.
But the amplitude of AC component (DC is zero in this case) is 5V, not 10. Swing is not amplitude.
yes but there is 10v, but 10v ac.relative to virtual ground, 5v dc relative to actual ground.
Ok, if true I should be able to power, say 4 red LEDs at like 2mA or more from this instead of just two right?;) No, it is only 5 volts (like he said, sort of like an H-bridge... polarities keep switching... so a motor would just see 5v ... first from one direction then from the other for example). Interestingly, RS-485 works like this also (10v noise immunity with only 5v ... ethernet based on '485).
If you measure 5vdc with a multimeter then swap the probes over you will see -5vdc.
This is basically what this circuit is doing - alternating between 5vdc and -5vdc resulting in 10v peak to peak.
Yeah that's almost exactly how I was imagining it. But I was thinking of a 9v battery hooked directly up to a scope. Then simply flip the battery and now you have -9v.
except it isn't. you are just using a multimeter to look at 5V that is swapping polarity . it never is or will be 10V .
with the 9V example, you still only have 9V too
amojak The claim here is it is 10V peak to peak. Which is exactly what it is doing...
Vpp is the distance between the pos and neg peaks, not the value of the peak in reference to GND.
I had the exact same thoughts and questions when I watched the last video. But I paused the video, thought about it for a while, rewatched dave's explanation, rewatched the scope example, looked at it from a different point of view, and suddenly it became clear. I thought I was just slow, I didn't realize others would actually call you out as wrong or misleading. Its like staring at an optical illusion for a while then suddenly seeing it clearly.
To be fair to the doubters, I've learned how LCD driving works 40 years ago and I still found Dave's explanation confusing.
@@PhoenixRevealed It is confusing. The output of the inverter is always +5V or -5V relative to the input. So feed a square wave and you get a +5V/-5V square between the input and output pins. Relative to the circuit ground it's another story, but if your device is floating this doesn't matter and it just sees a square wave going between +5V and -5V, for a total change of 10V each time.
Hi Dave, I've agreed with every video you've made ... until now. It's not voltage doubling. It's just alternating 5 V across the load one way and then the other way. Your explanation gives an impression that there will be 10 V across the load (between those 2 test points), but in reality, there's only 5 V potential at any given moment. It's just that the polarity changes. If you hook up the scope this way, you'll see what you see, I completely agree with that, because your reference is constantly changing. Another thought experiment: if we hook up 1k resistor between those 2 test poins, what will be the power loss on that resistor? I'm saying 25 mW (that's equal to constant 5 V across 1k (0 V on one end and 5 V on the other for 50 % of the time and then the opposite for another 50 % of time)), but according to your reasoning, you'll probably say 50 mW (which would be equal to constant 10 V from your "voltage doubler"). What is correct?
Although it may be seen as trivial, in *P = V x I* the voltage is *the absolute value* of a given voltage in time. Either we do have electromotive force, or we don't. The absolute value of V across the load *never surpasses 5V* , be it in a direction or in the other, the load never gets a whole 10V emf because the reference (i.e. "no charges moving because there is no force") is right in the middle.
I've got to say, this channel confuses me from here and there. Good thing I want to acquire solid basics of electronics. Unfortunately, I've yet to found them here.
@@waltercomunello121 It will sound twice as loud if you drive a speaker. Something is being doubled. The waveform is jumping 10V between levels rather than just 5V.
@@gblargg hmm intersting, maybe because the speakers reference doesnt change it reproduces the full 10v swing as the cone moves in phsyical space, so although electronicially theres no doubling just an appearnce of it, phsyically you get the full efffect
@@mikejones-vd3fg It's similar to driving it with a 0 to 10V wave, in that you have 10V signal swings. But like the 5V case, it's only effectively continuously 5V since in the 0 to 10V case half the time it's at 0V.
The same trick is used in car audio amps. Due to 12V power limit they use bridge sircuit to drive loudspeekers. So it is possible to get 24 volts on the output peak to peak.
The simplest way i can think of explaining this is by taking a battery and alternate between connecting it backwards and forwards between the probes.
This is essentially exactly what the circuit is doing with the inverters.
I guess a simple way to look at it would be measuring a 1.5V battery with a multimeter. Probed one way gives +1.5V and reversing the probes gives -1.5V. The total voltage difference possible is therefore 3V from a 1.5V battery.
I challenge you to run a component requiring 3VDC from a 1.5V battery just by continually reversing the battery. Can't be done.
You could think it like this: You have the two square waves ,out of phase, each on its own 5vpp. If you change the reference point to be one of these square wave outputs, you have to re-draw the voltage waveform for your new reference point, i.e., flatten it. This new flat line represents your new 0v. And since you flattened one wave form and the voltage difference did not change, your other wave form will be amplified. And since we consider our first output as the 0v (let's call it pin A), we see the inverted output (pin B) flipping from +5v relative to it (logic drives A low and B high), to -5v relative to it (logic drives A high and B low), giving us a total of 10vpp.
at 5:53 You shoud not write -5 on the table, some folks could not understand it that way. I think the proper way will be draw an arrow down from 5v to 0v to show from where the magic negative voltage show up.
I think the problem people have is tied to thinking about ground and common. Much easier just to think about pin 1 and pin 2. Then its relatively simple. Two alternating options,
Pin 1 2
Option 1 = 0V 5V
Option 2 = 5V 0V
There is only ever 5V relative to ground, but the LCD is not connected to ground and doesn't know this. As far as the LCD is concerned its got a push-pull alternating 5V alternating signal across it. This is a 10V peak to peak.
This is rather useful beyond driving LCDs. For example if you are driving a loudspeaker with a 12-14V supply like in a car. The peak voltage available is ~12V. If you were to drive the speaker with a single amplifier like a TDA2003, with one side of the coil connected to ground, you could only have maximum of 12V across the coil. That's 6V peak to peak AC or 4V RMS and with a typical 4 ohm speaker only 4W of audio power, not enough if you own a Landrover. If you instead drive the speaker with two amplifiers, in antiphase with the speaker coil between them, as in the LCD example, you have up to 24 volts available, 8V RMS and 16Watts. This is called a Bridge amplifier. There are more exotic solutions, to high power audio from 12V, that this was one of the most common before switching amplifier chips became commonplace.
You made it click. Thanks!
Thanks for clarifying, I was one of the ones who was confused. I believed you I just couldn't get the numbers to add up.
This should be studied in schools, after 10 years from graduating I saw this first time and this has to be something fundamental; It really changed how I look into circuits thanks really,
It is studied in schools. This is basically the exact same technique used in bridged amplifiers and H-Bridge drivers.
I don't think H-Bridge drivers double its voltage and I dont think this circuit will hold even if we put 1mA load there; Most likely output will become 5V with minimum amount of load. Seems like this is very special edge case to me,
Dave, the way that really gelled it for me was the idea of driving a Piezo element with one gpio pin vs2. I think that's a pretty bare-bones example of what you're trying to demonstrate.
It works! I just simulated it with LTSpiceXVII. Input signal = 5 volts at 1KHz, outputs labeled A and B, 10 V P-P displayed by taking V(A) - V(B) which displays as 10V P-P at 1KHz.
I understood it on the first video, but good on ya Dave for helping the community!
Another way to look at it, is in terms of current flow. After all that is what makes it a negative voltage.
A -> B +5V
B -> A -5V
You can also show this differential signal by measuring the current, say by adding a resistor in the circuit and measuring the voltage across it using the scope.
I used this method to drive a piezo-buzzer directly from MCU. Just using two output pins that worked complementary. It's just an equivalent of an H-bridge cirquit. It not doubles your voltage but it doubles the amount of work that current does because instead of "working/not working" cycle it's doing "working forward/working backward" cycle.
Took me a while to get it, but the current is changing direction and that's how you get it. First you have flow one way that we call positive, and then you have flow the other way and we get negative voltage.
its like connecting the leads backwards and then correctly again and again
simplest explanation - just flipping battery terminals at some frequency
Not "doubling" any more than 10 Vpp is "double" 5 Vp. 10 Vpp = 5 Vp which since this is a square wave can be easily seen equal to 5 VAC RMS. The power dissipated by a resistor powered by a 10 Vpp (=5 Vp) AC square wave will be the same as if it was powered by 5 VDC. This circuit does however double what you could get using just a single logic output (tied to a 2.5 V common to provide AC to protect the LCD) as you are going from 2.5 Vp to 5 Vp. (all assuming full swing 5V logic. TTL will be different of course).
Good point. Power dissipation implies that voltage is taken as *absolute value* . Resistors are polarless passive components, they don't care which way charges flow (do they?).
So in this case we should keep in mind that in *P = V I* V is *always 5* and not 10.
I think a good analogy would be someone driving between three cities A, B, and C:
A and C both have a distance of 50 km from B and all cities lie in a straight line on the map. If you were to drive from A to C with a short break in B, an observer in city B would never see you move further than 50 km from B, but an observer at C would see you move up to 100 km away from their location.
A represents +5V, B is circuit ground, C represents -5V and the observer is the oscilloscope ground. The person driving from city to city is the output voltage of your circuit.
While this isn't completely accurate it might help to illustrate your point.
watched this at 1:00AM before going to bed had to run down to the shop right quick to test it and I'll be damn it actually works. Still can't quite wrap my head around it so I'll give it another go tomorrow.
You cant wrap your head around it because Dave got it wrong.
nope it actually worked just can't wrap my head around why. I also put kapton tape around the earth pin on my scope power cable since I'm only dealing with low voltages. This means I don't need any differential probes.
To confirm previous comments such as philips miller one below, Dave is wrong on that one, there is never a 10V voltage difference applied to the LED PINs only alternately +5V and -5V. This circuit can be called an inverter but surely not a voltage doubler !
Cool! I learn something new almost every video! Thanks Dave.
To get your head around this, consider the simple logical inverter fed with a 1Hz square wave signal. Connect a ±5Vdc center-zero DC voltmeter as follows:
1) meter -ve to "0V" and meter +ve to the inverter output. It's obvious that the meter will swing from center-zero (inverter output low) to +5V (inverter output high). That's a 1Hz 5Vpp square wave.
2) move meter -ve to the inverter input. It's obvious that the meter will swing from -5V (inverter input high, output low) to +5V (inverter input low, output high). That's a 1Hz 10Vpp square wave.
That's it. Between circuit ground and the inverter output, you have 5Vpp. Between the inverter input and the inverter output, you have 10Vpp.
Took me a while to grasp when I first used a differential op-amp.
Dave, honestly, this is the type of topic/video I love to see on eevblog. Same for the reference to your scope gnd ref video. These sometimes not so intuitive aspects are my preferred topic. I would subscribe to this chan again if there was such a thing. :)
The key to this "mystery" is probably the reference to the inverted signal as the signal levels are switching simultaneously in opposite directions, effectively doubling the voltage (relative to the LCD and w/o gnd ref). And as you already mentioned in the last video, the LCD only wants to see the difference in potential on one pin relative to another. GND is irrelevant here.
Thanks, again, and thumbs up!
This is how some audio amps get more power from a lower supply voltage. Instead of one speaker terminal being connected to ground, it is connected to the output of another amplifier that is set up to have an inverted signal output. So instead of being able to supply + or - 20V to the speaker, it an supply + or - 40V! (And more voltage across a given impedance means more current, and thus more power!)
& also their is very less current flow in the two differential points.... If you think about total power p=vi then the current flow is less... For this type of screen it operates in electrical field & less current flow... Means you can also get higher villages.... Awesome explanation dave...
How about this explanation?:
Vpp is NOT A VOLTAGE.
A voltage is the difference of two potentials AT THE SAME POINT IN TIME.
That is not how Vpp is measured though. Vpp describes a time-dependent signal and is the difference of the highest and lowest amplitude regardless of where those appear in time.
+TheTruthSentMe Vpp is definitely a voltage. Ever heard of VAC?
The unit is volts, but it's not a voltage. At no POINT in time you can measure that. It's a characteristic of a signal. For the same reason I don't consider VAC a voltage. It's a RMS value of a voltage.
+TheTruthSentMe Voltage is *always* a difference, either with respect to another point in DC or with respect to time in AC.
"Voltage is always a difference" Yes.
"either with respect to another point in DC or with respect to time in AC" No.
You don't understand the difference between a voltage and a signal. What you call DC is a voltage. There is no AC voltage if you take it literally. There are AC signals where every point in time corresponds to a voltage. You can come up with ways to describe the AC signal in quantities that have the unit volts. That doesn't make them a voltage though. A voltage can only ever be the momentary value of the difference of two electrical potentials. Therefor you cannot call v(t1)-v(t2) a voltage where v(t) is a signal and t1 and t2 are points in time.
+TheTruthSentMe AC can be used for power delivery as well and you seem to be stuck in the world of DC.
Love the back to basics whiteboard approach :)
By the way, nice move Dave, all this chatter has occurred while you sneakily ( kudos to you) introduced your differential probe.
Well this is something that you learn in first class at university in EE. It's so basic and fundamental like Ohms law is. Maybe this would get more clear, if you show it with a multimeter on a positive and negative DC voltage. You can easily demonstrate this by measuring the 5V rail against the -5V rail of your PC supply and you will read 10V on your meter. Voltage is the difference of potential: V = phi1 - phi2.
5V - (-5V) = 5V + 5V = 10V
It’s the same thing as wiring up a 240V circuit (at least in the US. I don’t know how it’s done in other countries.)
Two hot wires come into a building, each carrying 120V RMS AC. The two wires are called A and B and are 180 degrees out of phase, that is A = -B. For regular 120V outlets, you only connect one of the hot wires, and then the neutral provides the return. For a 240V outlet, such as the one used by your air conditioner or dryer, you use the A and B phase in conjunction. Although both are only 120V RMS, the difference is 240V, as expected.
No, it's not the same thing. What you are describing is more akin to the output of a center-tapped transformer, with "neutral" coming into your home being the center tap. There is no "center" here, and no way to get 10V AC, no matter how you connect it up.
My way to say what I think I know :
* take an oscilloscope.
* Put it on DC, with the 0V nicely set in the middle.
* Connect a 9V battery to the input, the line goes up 9V.
* Disconnect the battery, the line returns to 0.
* Reverse the polarity of the battery.
* Connect the 9V battery to the input, the line goes down 9V.
* Difference between upper- and lower line is 18V.
What I missed was the connection of a resistor and a capacitor that would be charged to the 10V DC. That must be possible and convincing ?
I've used this technique to produce 9 volts from a 5 volt supply, very useful for circuit setups that require duel voltage but you don't want to add two battery types, in my case I was running from a 5 volt usb battery pack normally used for smartphones.
The point is that using terms involved with AC don't go very well with DC. It is not understood by most amateurs that there is never more than 5Vdc at any given moment.
You can demonstrate this with sound. Drive a raw piezo beeper or speaker connected between ground and 5V GPIO = medium volume. versus, Driving it between two GPIO that are alternating out of phase = Loud.
The piezo mechanically moves X distance negative then back to ground. versus Moving X distance negative then X distance positive = A total 2 * x movement
The point is that Dave doesn't make sure people don't start to believe that there is a measurable 10V drop between two points at any given time. I thought this would have been very important to point out, albeit countless cues. teaching is a tough job.
Back for a 2nd suck of the salve.... It's that good and clearly I'm slow. Thank you Ausi-Man
I think the simplest explanation is the following: when you measure the voltage with the correct polarity red (+) black(-) the scope shows +5V. When you put in some inverter into the circuit the polarity is swapping so red(-) and black(+). This case the scope shows -5V. Technically the scope (or DMM) just "substracts the voltage levels from red wire and black wire". With correct polarity: red(+5V)-black(0V)=+5V, the inverted polarity: red(0V)-black(+5V)=-5V
I exploited this phenomenon when I was like young (like, 13) using 3 position DPDT switches and wiring them up in a way that I could apply power to a motor and reverse polarity. I think I also did some stuff with voltage doubling too, but might have been later on.
Another way to think about this is to read up on a "flying capacitor" circuit. You can actually think of the capacitance of the LCD as the capacitor in a flying capacitor power supply.
Huh? The minuscule capacitance across the LCD segments is too small to have any appreciable effect at 100Hz. You are overthinking this. All this circuit does is continuously reverse the polarity of the 5V supplied to the LCD from the supply rails.
From the point of view of the input the output is either 5v higher or 5v lower regardless of what the input actually is. If the input is set to the zero line on the scope the output will swing between 5v higher (+5v) to 5v lower (-5v)
Perhaps useful in explaining it would be to add 2 diodes and 2 capacitors to make it into a charge pump and get ~10V DC output.
Your circuit in the video is the same thing, just without the storage.
Lots of ICs have the circuit built in.
There is never actually 10v across the inputs at any time. Its either 5 or -5. But it results in 10ptp ac.
correct, that is a really good way of explaining it. thanks.
I said similar in a seperate comment, if youtube comments had been working I would have seen this earlier. I said there is never more than 5V difference at any given instant.
Just like the AC at the wall plug.
Another way to put it (which will confuse even more?) is that the original single-ended signal has an AC amplitude (and rms value) of 2.5V, whereas the differential signal has an AC amplitude/rms of 5V. For a square wave amplitude=rms.
(And the DC component of the single ended signal also has an rms voltage of 2.5V as it happens, making total
rms of 3.56V (2.5 x sqrt(2)), but that's going to confuse even more!)
Yet another way to think about it is power into a load of fixed resistance - the original single-ended 5V square-wave signal puts 0.125W into a 100 ohm load (half of which is DC component, half AC component), whereas the differential signal
puts 0.25W into 100 ohms load, 4 times the AC power from the single-ended signal).
The video was confusing to me even though I actually understood what was going on.
The oscilloscope demo might've been easier to picture if channels 1 and 2 (blue and yellow) were overlaid instead, forming two solid lines across the screen with alternating colors. "The difference from blue to yellow is always 5V. It's like measuring a battery's voltage with a multimeter and swapping the probes around (then demo that too)."
Or simply invert the probes in a multimeter or oscilloscope and then you get a negative or positive voltage, the difference between both voltages is double the voltage you are measuring.
I think you are missing the simplest way to explain what is happening when driving LCD segments. If you think instead of driving a DC motor with an H bridge... that is EXACTLY what is happening when driving LCD segments. The same differential drive trick can be used with VFD display heaters to prevent one end of the display being brighter than the other due to gradual voltage drop over the length of the heater (this technique makes the AVERAGE voltage the same the entire length of the heater). By switching both ends out of phase of any component between earth and Vcc (for instance) from the perspective of that component you are driving it alternately with Vcc and -Vcc, or in other words, an AC signal of 2x Vcc peak to peak.
Yup, this is just like some audio amps that do the same thing to get more power from the same voltage supply rails. Just add another amp, with inverted signal, and presto!
Just imagine a LEGO block that represents 5 volts of potential. The LEGO block can't grow or shrink, but it can flip in polarity (position). So if Common is our 'base', then the 5 volt LEGO just moves above the 'base' line and below the 'base' line as the phase transitions occur. Hope that helps to visualize what is happening. Cheers.
You have great capacity of explain things! great teacher! thank you very much!
I suggest clarify some of the notations in the previous video, which are the voltage referencing points in the circuit i.e. the LCD.
Many comments here... maybe somebody already suggested this... but here goes: It might help to understand what Dave explained if the whole circuit with power supply, square wave source and all is floated, that is, all GND connections removed, so that there would be no "natural" reference point anymore. Then connect the GND to one of the legs of the LCD, and connect the scope to the other LCD leg, and the scope GND to the new circuit GND. The scope would then show 10 Vpp (varying between -5V and +5V), which still is 5Vrms. You wouldn't do like this in practice of course, but only "in your mind", to help visualize the whole thing. Not sure if this really helps though......
I think your two input waveforms to the math function highlight that the only way this makes sense is that the “reference” voltage is actually dynamically changing between 0V and 5V, which of course is irrelevant to the differential probe (and LCD apparently).
thanks dave for another interesting and well explained video
I understood it better when inspecting the circuit with falstad.com/circuit, which showed that it is the same as if someone repeatedly swapped the polarity between the SEG and COM by swapping the leads of 0V and +5V at those points and that the direction just changes.
I thought I understood it from the original video, but this video proved me wrong as I did not understand your explanations from this one. After investigating it myself, now I get why it works and can see that actually your explanations make sense too, thanks!
I think people are getting confused thinking that they can get a usable 10V signal. This is the same principle exploited for differential signal transmission. If you subtract inverse signals the output is amplified, ( A - (-A) = 2A) if you subtract the same signal (i.e noise) the signals are canceled ( A - A = 0).
Put a piezzo buzzer from 2nd inverter output to ground. Then put it across the inverter and notice how much louder it is.
Nice explanation Dave, thumbs up for your channel
5 - (-5) = 5 + 5 = 10. Easy.
Another way to mathematically explain this is because the result is "A - B", When A is 0V, B is 5V and vice versa, so one cycle its A-B = 0-5 = -5V, and the next its A-B = 5-0 = +5V, proving that it does go between -5V and +5V, of course giving the 10V potential difference.
Hi, I'm from the Department of Redundancy Department
Adamus Alpha (Adam) Haha yeah for some reason I’ve really been noticing “LCD Display” a lot recently 😂
VIN number = Vehicle Identification Number Number. okay. Yet, everyone says it. I bother them about what they just said - every time.
To explain it easy: you don't have 10 volts anywhere, the -5V symbolises only the current flow in the other direction than +5V.
Ok to make it clear for you, one will never measure a 10V differents at any given time on any place in the circuit. You measure +5V at one time and -5V at another time and never at the same time because then you would really have a 10V differents, as mentioned before it's just the current flow that changes direction no voltage multiplier anywhere but it is legit to say the waveform is 10Vpp.
Actually that's totally wrong if you would rectifiy the 5VAC signal you would get 5VDC and not 10VDC! You can test that easy by yourself .
That's not just a rectifier you added a voltage multiplier and then you claim the original circuit (2 inverters) act as a voltage multiplier. You can even add a booster or a transformer the 2 inverters still don't mulitiplie voltages...
pe1dnn then you get a voltage doubler!
Alex Tirendi A 5V AC squarewave is still 10 Vpp!
Think of 2 cars driving along a road at 5mph, if they are going in opposite directions they pass at 10mph.
Except, for the analogy to be equivalent, both cars can't move at the same time. When one moves at 5mph the other stops. Then the other moves in the opposite direction, and the first one stops. And so on.
So they can't pass each other at more than 5mph, so Dave is wrong. Yes, the potential peaks in his example have a 10V difference between them. But obviously the peaks don't happen at the same time, so that's irrelevant.
If you want a better analogy, in my country we have alternating current at 230V. However, in reality, the voltage oscillates on a sinusoidal curve between -325V and +325V. 230V is just the average of the absolute value of the voltage.
If I used "Dave logic" I could say my wall socket has 325+325=650V, because that's the potential difference between the two peaks. Obviously, my wall socket doesn't have 650V, so Dave is wrong.
Thanks a lot for this. I was actually struggling to get my head round this properly, but now I understand it perfectly :-D
So, let's say that you take your first signal as your reference "ground", it's:
"gnd" = 0v
"live" = 5v
result = +5v
Then, you have:
"gnd" = 5v
"live" = 0v
result = your "live" is now 5v under your "gnd", so the result is -5v
If you measure a 5v transformer, the same thing happens: the signals reverse polarity respective to each other, but you have your probe connected to one of the transformer's wires, so you only see a signal turning positive and negative on the screen, but really, the two output wires are just switching polarity. "Rotating" around each other, if you like. Of course, if you think about how the generator on the power plant works, then that explains why the signals are rotating around each other.
It is mind numbing that some commenters (some of whom claim to be engineers!) cannot grasp this incredibly simple concept that any proper engineer had mastered by the age of about seven.
You can explain that with a DMM and a simple analogy with the AC at the wall plug.
Just replace the inverters by diodes and the LCD by a capacitor and you have the classical voltage doubler circuit.
You can try this with a friend ;)
Stand on a straight line, 5 metres apart facing each other. Both walk forwards 5 metres (without hitting each other). Your friend was 5 metres in front of you, now they are 5 metres behind you, so it appears as if they've moved 10 metres.
"so it appears as if they've moved 10 metres"
True, and a great analogy, but the important point is that they were NEVER actually more than 5 metres away from you.
Exactly, good point - I should have included that in my comment :)
It's exactly the same as with multi-phase AC - two 220V lines can give 380V because they are phased by 120° from one another. You can look at this situation as integrated two-phase AC with phases removed by 180° from each other.
I think it would be helpful to differentiate between the terms peak-to-peak and peak amplitude. Peak-to-peak is 10V, but the peak amplitude is only 5V. Try to connect a rectifier and you will get only 5V DC, because there is never a -5V reference potential available opposing the 5V.
I think you are wrong. Imagine a LED, which would need 7V to light up. You won't be able to get it to light up. In other words, you won't be able to get a DC voltage >5V out of the bridge rectifier, which would be needed for that LED.
mrjazzycharon2
Yes, but connect a rectifier across the input and output pins of the NOT gate (inverter), and you DO get the ~10V DC output, which is the point. ;)
When you say to "try to connect a rectifier", that is under the assumption that one side of that rectifier would be referenced (connected) to Ground / 0V.
The LCD in this case is of course essentially "floating" , as it doesn't have a connection directly to the normal Ground point of the circuit.
I know what you're saying about the "-5V" thing though, as that could also confuse some people, but it's still technically accurate if you connect the oscilloscope's "0V" or "-" input to the output of the NOT gate, then connect the 'scopes "+" input to to Ground point of the circuit.
Yes, you will still only see a 5V P-P waveform that way, but it demonstrates how that waveform would be the inverse of the NOT gate's input, which is why Dave had to show both signals on the 'scope at the same time.
It is a tricky concept for the beginner's, especially when we're taught to always use the 0V connection in most circuits as the Ground reference, but it obviously doesn't need to be. :p
It's all about the difference in voltage across any two points in a circuit of course, which is why Voltage can also be referred to as the "potential difference".
Yes, I assumed to connect the rectifier to the two gate inverter outputs and not to any ground. The voltage across the two inverter outputs is either +5V or -5V. The rectifier will output the absolute value of that, which is then always 5V without polarity changes. But it will never be 10V.
I think the key thing to understand is that you either have +5V or -5V. But you never have both at the same time, which would be necessary to get 10V DC.
Actually, yes, you are partly right...
There's still only a "static" difference of 5 Volts between the input and output pins of the NOT gate (in either of it's two states), but one of those states will effectively reverse the polarity of the voltage at those two points.
Then, the reference for the oscilloscope will have moved, so... Yeah, I'm a tad confused as well now. lol
It appears there must be 10 Volts across that differential probe, but I don't see how you would get 10 Volts DC if the NOT gate was not toggling?
A normal charge pump would need to store the voltage on each polarity change on some caps, and then output that voltage with the caps in series?
Even with the capacitance in the LCD, surely it would still only see a voltage of 5 Volts across a segment for either phase of the NOT gate?
Not relative to anything is also not true, each is relative to the other signal, so choose your point of reference arbitrarily between the two options. The good way to think of this is as a Fourier series. A 0-5v square wave is 2.5v dc + sum of all the components in a zero biased square wave of 5 Vpp. Thus when you take the difference between two of them 180 out of phase, the dc cancels, and the one adds the negative of the other to get double the AC voltage with no DC bias assuming perfect inputs.
What was confusing tome at first is your initial diagram. The "diff" should have started at -5 instead of +5v
Once I figured that out, then it fell into place.
This is like a bridge circuit so you do get the double voltage.
It is exactly an h-bridge, but it is not doubling the voltage, it is converting the LCD drive from 5VDC to 5VAC.
When A is 0V, B is 5V, A-B=0-5=-5V
When A is 5V, B is 0V, A-B=5-0=+5V
Hence -5V to +5V.
Explain how does the diff works electronically, in terms of individual components.
Using a couple LEDs connected anti-parallel to the outputs of two gates swapping low and high would also be a good demonstration of the current reversing in the circuit giving the 10vpp
JohnAudioTech : that only works with totempole output, not with open collector. You'd create a H bridge!
these devices are totempole output. the differential voltage will only ever be 5V. it in this config cannot be anything else. which is +5V and which is gnd just alternates.
amojak, wrong. The peak to peak voltage is 10 volts, while the effective (RMS) value is 5 V (square wave). The swing of the segment is +/- 5 V.
If you would rectify both sides and measure across these rectified sides, effectively making one these sides reference, you WOULD measure 10 V!
"If you would rectify both sides and measure across these rectified sides, effectively making one these sides reference, you WOULD measure 10 V"
NO YOU WOULD NOT!!!! For crying out loud, why do people keep promoting this idea? The voltage across the LCD segment when enabled is NEVER 10V, it is 5VAC. If you rectify and filter the 12VAC output of a transformer you don't get 34VDC (24 x 1.414)... you get SEVENTEEN VOLTS DC (12 x 1.414). If you don't believe me then build a simple circuit and prove it to yourself rather than just make erroneous prediction of what you THINK would happen.
10 Vpp, not rms Martin Green. To use your transformer example, it would be 34 Vpp, not rms. At least, according to my full-bridge regulator and capacitive filter I made in Multsim it is. This is only possible when using a differential probe between the positive and negative sides of the transformer, not when only measuring the positive side with reference to ground, as seen with my standalone probe to the right of the differential probe. goo.gl/mR4cyo
the legend goes that when you say "lcd display" three times at exactly midnight Peter Popoff will appear behind your back and replace your wallet with a prosperity leaflet...
I would have explained it differently.
Simply by looking at the difference at the input to our inverter, comparing it to the output, for both stages, and also be clear to state that it is peak to peak, not max value over the component. As the confusion is more likely a mix up between peak to peak, and the max voltage present over the device. But otherwise it were a good explanation.
I thought this was magic at first but using the outputs of the two inverting gates are like using an H bridge to drive the output. You have 5 volts output on gate A and ground output on gate B but when you invert the gate signal you have ground output on gate A and 5 volts output on gate B effectively reversing the polarity, and that is where the 10Vpk-pk comes from. Peak-to-peak (pk-pk) is the difference between the maximum positive and the maximum negative (also known as trough) amplitudes of a waveform. So its not actually 10 volts but it is _10 volts peak-to-peak_, as the formula; (PeakVoltage - TroughVoltage) = (5 - -5) = (5 + 5) = 10Vpk-pk. It all works out. ;)
wooow this is a very crazy thing, thanks Dave
Exactly how bridged amplifiers work. Also any differential signal.
Difference 0 to 5 = 5 That's ground referenced.
Difference -5 to 5 = 10 That's differential.
Yes, exactly what I said on the previous video.
Dave is making it a little complicated explaining it this way.
Yup, that's how the audio amps in a 12V car radio can produce a peak-to-peak swing upwards of 24V, and why you should NEVER connect the speaker negative terminals to ground (or to each other.)
it's Peak To Peak.. in this case when A 5v so the B is 0v (as a ground) so vice versa when A0v (as a ground) so the B is 5v, so the voltage designation should be fixed 5 volts.
Don't forget, capacitive properties is always exist between adjacent conductors, including inside all components, this is the supporter so that's can be happen
(sorry my english is bad, I'm just using google translate)
only "voltage doublers" I know are boost converters and amplifiers. This looks like a simple polarity switch to me.
Hey dave, I still think this explanation was too advanced for those who didn’t get it the first time ... I really don’t want to sound condescending, I barely know my shit ... But given that, I would’ve showed literally on a breadboard and the scope on roll mode with a few wires on the breadboard how you can get a 10VPP wave, ... if they didn’t get the arduino, yeah, maybe the gates they would, but, those still are quite abstract if you’ve never seen their internal construction with the 2 fets, how fets work ... etc, so with a breadboard and just some wires all that prior knowledge wouldn’t’ve been required
Anyway, good on ya dave for the 2nd take in any case, we appreciate the effort
So, you are using some kind of virtual ground, just like in many battery operated headphone amps..?
Strange, most people here accept the voltage multiplying of the Cockcroft Walton circuit and still doubt Dave's explanation.
It is the same mechanism.
And for those that say: there in no capacitor; the whole LCD is one big capacitor (sizewise).
Everything has an (input) capacitance.
To use this doubled voltage to power something, you only need a bigger capacitor (and a couple of diodes)!
I am getting really frustrated by all the people confusing other readers by trying to explain this technique as some kind of voltage doubler. There is NO doubling going on here, and the capacitance of the LCD is so small that at 100Hz it can be effectively disregarded (capacitive losses are so tiny that supply batteries will effectively last their entire shelf life, even with the display on 24/7). Five volts is MORE than enough to drive an LCD segment to high contrast. The problem is that if we use a DC voltage for that drive, or an AC voltage with a non-zero DC offset then the LCD will degrade over time. The solution is to convert that 5VDC drive to a 5V, 50% duty cycle ALTERNATING CURRENT drive, which is what this technique does. The LCD NEVER sees more than 5V, it is just driven by 5V reversing polarity 200 times per second, which has an average DC offset of zero. Five volts DC and a five volts AC square wave will both darken the LCD segment equally, but the former will damage the display over time whereas the latter will not. I repeat again so it is clear... there is NO doubling going on and the LCD NEVER SEES MORE THAN 5V!!!
It is unfortunate that Dave used the term "doubler" in his explanation, since this circuit is more correctly a voltage inverter, turning DC into AC.
Martin Green; strictly speaking you are right, except that from the common connections point of view the voltage on any of the segments is alternating +5 and - 5 volts, which amounts to 10 Volts peak to peak. That is, because it is a square wave, effectively 5 V AC.
so both you and Dave (and me) are right from a different perspective.
Voltage Doublers make use of the same effect, but by shifting the common point (again) and rectifying with Diodes and Capacitors they make from 5 V pp (in this example) a 10 V DC.
Look at the scope (use for instance a battery powered scope).
Measurements don't lie (people might).
Hi Imre... peak to peak is irrelevant. No matter what the peak to peak value is there is NEVER more than 5V across any segment of the LCD, first in one direction, then in the other, 200 times per second. Peak to peak is just an artifact of the way it looks on a scope when the ground reference is one of the AC terminals you are viewing, it's still only ever 5V of potential.
Hi Imre... peak to peak is irrelevant. No matter what the peak to peak value is there is NEVER more than 5V across any segment of the LCD, first in one direction, then in the other, 200 times per second. Peak to peak is just an artifact of the way it looks on a scope when the ground reference is one of the AC terminals you are viewing, it's still only ever 5V of potential.
The mind boggles when reading some of these comments..! Oscilloscope ground and the RUclips-comment section, the only place where earth is flat.
Not everyone is at the same level in electronic theory. in time, the penny will drop for them....
Michael Hawthorne yep some of us learned the basics in school and later on end up in another profession but still are interested in it and goof off with it. EEVBLOG is the perfect channel to learn cool stuff / refresh on a few things. Never heard about this nice trick before. Lol. Flat earth, coincidentally I watched a few flat earth debunk videos on prof sticks channel the last days. It's an entertainment gold mine.
Very well explained, thank you!
We can get +1.5V and -1.5V with alternating leads of one AA cell. We need two cells to have positive and negative rail at the same time.
Well after listening what Dave says again , he never speaks of a 10V applied to the LCD display but of a total voltage swing of 10V peak to peak compared to a 5V peak to peak voltage obtained for a single output case. So to this specific swing point of view this circuit can be considered as a doubler and indeed for a constant load impedance such a circuit leads to a four time higher power (this technique is often used in car audio amplifiers to increase the max power in standard 4 ohms speakers). But again it is not a voltage doubler stricto sensus as whatever the ground reference you take the absolute voltage difference at any moment is never greater than 5V. So inverter or voltage swing doubler yes but voltage doubler no.
Thumbs up! And I'll have to watch this again... I'm starting to get back into doing some hobby electronics design.