Thank you very much, Dave! Please keep these coming, driving LCDs was something I always wanted to learn how to do. As a beginning hobbyist, these kind of videos educate me a lot. I really appreciate all the time and effort you're taking to share with us! :)
I think the simplest demo of how the LCD can see +/-5V across the segment while using logic that is only driven with 0V to 5V is by starting off using a battery-powered voltmeter. Call the negative probe on the DVM "LCD common" and show that if you hook common to 0V (logic ground) then when the driver is putting out +5V the meter reads +5V and when the driver is putting out 0V the meter reads 0V, but if you hook the the common to +5V (logic power) then when the driver is putting out +5V the meter reads 0V while when the driver is putting out 0V the meter reads minus 5V. Dynamically switching the LCD's common between 0V and 5V (relative to the driver) is analogous to dynamically moving where the negative lead is connected on a DVM. When common is hooked to 0V at the driver, the swing from the driver looks like 0V to 5V at the LCD segment, when hooked to 5V at the driver the reference is moved and the swing looks like 0V to minus 5V at the LCD segment.
It's quite uninteresting to look at. It just looks like the segments are failing at different rates. You've likely seen it on old gas pumps. I remember killing an early LCD in the 1980s and it took only a couple seconds to get burn-in with 9V applied but the tech has come a long way since then and I have no idea what it takes to kill one today. Sounds like an experiment waiting for you.
You can always make some damage more interesting to look at by using more power for some appropriate amount of time... I know that Dave has a chronos 1.4 high speed camera, high voltage power supplies and some capacitors. Everything needed for some interesting destruction-videos. He could also use a still-image of the explosion as a thumbnail(clickbait) to get more people that were only interested in the explosions into watching his educational videos. ;)
Peter S ... you have heard about fast forwarding and time lapses, now, have you ? It could very well be a 1 minute video + the 6 minutes talking Dave usually does (good on ya Dave)
Had to scroll back through the video a few times to catch the part number of that display. Looks like it is a Lumex LCD-S101D14TR. At Digi-Key it is part number 67-1506-ND. Currently listed at US $4.24 each for quantities under 10.
You explain it so simply and clearly - thanks, Dave. I am proud to say that I sussed-out how to avoid the non-zero average voltage before you explained it fully, but I was completely ignorant of the 'stuck segment' issue until you mentioned it. From a long time ago, I recalled that LCDs are driven with a pulsed signal, but I didn't know why. Now, I do. Cheers.
This is pretty much like a bridge (amplifier) circuit. They both have the same dc offset but relatively it's zero. Very handy if you don't want a negative voltage.
A possible follow-up, super in-depth question: what determines the voltage ranges for LCDs? I'm guessing that lower voltage LCD panels are the secret to having watches and thermometers with super long battery lifetime. But not all panels are low-voltage like that, so: why not? What's the engineering of these panels like, since there's clearly tradeoffs of some sort at work.
Good on ya Dave, my LCD arrived from China yesterday now you make a video, I was looking for a modeling software, David did a video on that the next day... it's almost like our cycles have synchronized... cheers mate!
Thanks Dave. For years I thought driving LCD's required black magic. No wonder I couldn't make heads or tails out of the pulses on the scope - the ground reference was moving around!
When you mentioned the contents of the LCD not changing I didn't know what use would that have until I remembered that in a gas station, there were some LCD-like price indicators. At first, I thought they were just imitations, but then I realised they were pretty thick, enough for a coin cell to fit in. And because reflective LCD consume almost no power at all, they can run for years and this would allow changing the price whenever they want. Next time I go, I'll bring my LCD detector, also known as polarizing filter (which I can find in all LCDs).
On the microcontroller you'd want to hook all lines to the same output-bank and do the flipping with good old bitbanging: inverting the whole output-register. Like that you can swap up to 8 lines (the 8 bit it has) at exactly the same time.
I'd like a follow-up video that covers a graphical LCD that uses LVDS if that isn't too much to ask. I've been looking into tapping one for a project but I'm not sure what level of hardware I'd need to reverse engineer it and the FPGA I'd need.
General comment about driving LCDs for those interested in control bigger displays. If you have a 4 digit LCD display then you'll have about 28 pins to control (or more counting decimal points and minu). There's an LCD driver chip called the AY0438 which only requires a 3 pins to drive. I wrote an Arduino library for this a few years ago you can find a demo here v=nGXTJL51D6Q :)
Not always, I have some 4 digit LCD's that only need 3 more pins. Each digit has individual backplane and com pin, so, common-up the segments (aaaa, bbbb, cccc etc) and then TDM the com pins. There is some loss of contrast but hardly noticeable and gets the job done.
SimoWill75 surely for that you’d need 7 (segments) + 4 (backplanes) = 11 digital outputs to control your screen? That’s fine if you have enough IO on your micro controller. If you also have decimal points, colon, minus sign, low battery symbol, etc you might end up with no pins available to do anything else. The driver chips only cost a couple of quid and generate the AC for you. The frequency is configurable using a capacitor and you can control 32 segments, with just data, clock and load signals :)
True, but I mistakenly thought you were referring to Dave's direct Arduino demo which was still fresh in my mind. He's already using 8 pins, each extra digit only needs one additional. That's how I used my 4 digit displays, but with PIC's back in the day.(one clock, one voltmeter with fixed decimal point) Simple, low cost and effective, but obviously not the answer for every project.
SimoWill75 Ah yes, my comment was a general remark not about the approach Dave demonstrated :) I do agree with you though: this direct way of driving the screen is cheap and effective! For the benefit of those playing at home (I’m sure you already know this Simo) if one disables the current reversal and adds some resistors to the outputs; Dave’s example code could be used to drive a 7 segment LEDs (and more than 1 digit with multiplexing) :D
Fun fact: If you're using Arduino (most likely on an AVR), then you can set the pinMode to INPUT and then use digitalWrite to get a lower voltage than usual - setting to INPUT makes it go through an internal pullup resistor for input (pulldown when you abuse it to make it do output)
It's caused by gradual electrochemical plating of the metals in the display. An average DC bias promotes the migration of metal ions through the substrate of the display and causes fading and burn-in of segments over time.
EXCELENT. Cant wait to move to 1/2 and 1/3 MUX, I have read it many times, seen Microchip App notes. It is clear the method but not they way they wave the commons on the code ...
Here´s the display Dave used in this video: www.digikey.de/products/de?keywords=67-1506-ND Thanx going out to @Glen Slick for finding that out, i just put a clickable link, to make things easier...
I guess because the standard power supply to logic devices is 5v. To get 2.5 you would have to waste power through a voltage divider? It's more efficient to use the inverted 5v supply.
Nice work. Btw: Could you make a video about E-Ink-Display? For instance, at work we use the displays from "Pervasive Displays" and the manufacturer's datasheet of the on-display-controller is simply crap.
I get the end result with DC inverted by the gate but in the early stages of the video, if you shift the offset and then have a DC signal going positive to negative, is that not now an AC signal and not DC anymore?
What is the LCD bias(bias angle) in this type of control? (100 Hz +/-5 volt with 50% duty cycle) How to change best viewing angle (rotate view angle)? Or change contrast? It is just an amplitude or not?
Understand electrolysis, and imagine now driving with DC instead of AC... Liquid crystals are just a fancy name for some poor chemicals suspended in a pretty nice electrolysis chamber, in a LCD!
Dave, really clear and lucid presentation. Thanks! The offset backplane electrode voltage trick makes total sense now. I'm going to swing by my electronics parts pusher tonight and buy some passive and multiplexed LCDs to experiment with over the weekend. What is that Arduino experiment breakout board you are using in the video, below your breadboard?
I really miss these educational video.
Please, bring back fundamentals Friday!
Yes! More Fundamentals Friday would be great!
Yes please!!!!!
Yah
Bump
More please! Great detail.
These “Fundamental Fridays” were the highlight of the Eevblog. They were really good.
Very cool. How LCDs were wired in products was always black magic to me and now it makes perfect sense.
Thank you very much, Dave! Please keep these coming, driving LCDs was something I always wanted to learn how to do. As a beginning hobbyist, these kind of videos educate me a lot. I really appreciate all the time and effort you're taking to share with us! :)
How can you NOT like a video with logic gates in it? :)
That's a very clever circuit.
I think the simplest demo of how the LCD can see +/-5V across the segment while using logic that is only driven with 0V to 5V is by starting off using a battery-powered voltmeter. Call the negative probe on the DVM "LCD common" and show that if you hook common to 0V (logic ground) then when the driver is putting out +5V the meter reads +5V and when the driver is putting out 0V the meter reads 0V, but if you hook the the common to +5V (logic power) then when the driver is putting out +5V the meter reads 0V while when the driver is putting out 0V the meter reads minus 5V. Dynamically switching the LCD's common between 0V and 5V (relative to the driver) is analogous to dynamically moving where the negative lead is connected on a DVM. When common is hooked to 0V at the driver, the swing from the driver looks like 0V to 5V at the LCD segment, when hooked to 5V at the driver the reference is moved and the swing looks like 0V to minus 5V at the LCD segment.
Would be interesting to see how dc-damage actually looks, and how long it takes to set in
It's quite uninteresting to look at. It just looks like the segments are failing at different rates. You've likely seen it on old gas pumps. I remember killing an early LCD in the 1980s and it took only a couple seconds to get burn-in with 9V applied but the tech has come a long way since then and I have no idea what it takes to kill one today. Sounds like an experiment waiting for you.
You can always make some damage more interesting to look at by using more power for some appropriate amount of time...
I know that Dave has a chronos 1.4 high speed camera, high voltage power supplies and some capacitors. Everything needed for some interesting destruction-videos. He could also use a still-image of the explosion as a thumbnail(clickbait) to get more people that were only interested in the explosions into watching his educational videos. ;)
Peter S ... you have heard about fast forwarding and time lapses, now, have you ? It could very well be a 1 minute video + the 6 minutes talking Dave usually does (good on ya Dave)
Had to scroll back through the video a few times to catch the part number of that display. Looks like it is a Lumex LCD-S101D14TR. At Digi-Key it is part number 67-1506-ND. Currently listed at US $4.24 each for quantities under 10.
Love the way you make hard things easier to understand!! Thank you Dave !
Nice!! You’ve answered a lot of questions Ive had Itching at the back of my head ... thanks Dave!
Cool bananas
i really like this channel, i can't imagine what i would have done with electronics if he had been my teacher. he's awesome at explaining things.
You explain it so simply and clearly - thanks, Dave. I am proud to say that I sussed-out how to avoid the non-zero average voltage before you explained it fully, but I was completely ignorant of the 'stuck segment' issue until you mentioned it. From a long time ago, I recalled that LCDs are driven with a pulsed signal, but I didn't know why. Now, I do. Cheers.
I needed this guy in engineering school 15 years ago__ much appreciated for the lessons.. NorCal
This is pretty much like a bridge (amplifier) circuit. They both have the same dc offset but relatively it's zero.
Very handy if you don't want a negative voltage.
Dave, you should get Nobel Prize in education (and I'm sure the committee will create this new category especially for you)! Great video, man!
I love Dave Jones. He makes all others look like amateurs.
A possible follow-up, super in-depth question: what determines the voltage ranges for LCDs? I'm guessing that lower voltage LCD panels are the secret to having watches and thermometers with super long battery lifetime. But not all panels are low-voltage like that, so: why not? What's the engineering of these panels like, since there's clearly tradeoffs of some sort at work.
Top-notch quality educational material on RUclips
this is the best freaking vblog ever on the web
Love that episode!
The feel is just easy going Dave,
Thanks for the lesson : )
Good on ya Dave, my LCD arrived from China yesterday now you make a video, I was looking for a modeling software, David did a video on that the next day... it's almost like our cycles have synchronized... cheers mate!
Awesome stuff Dave. Your train really catch the rails now
Dave . You save me hard work-- Thank you very much...
Great video. I had never thought about driving an LCD directly. Thanks.
Just read about the DC offset damage in _The Art of Electronics_ yesterday. Nice.
Thanks Dave. For years I thought driving LCD's required black magic. No wonder I couldn't make heads or tails out of the pulses on the scope - the ground reference was moving around!
Nice tutorial Dave. Again I learn something new from you. Probably over 1000 by now.
When you mentioned the contents of the LCD not changing I didn't know what use would that have until I remembered that in a gas station, there were some LCD-like price indicators. At first, I thought they were just imitations, but then I realised they were pretty thick, enough for a coin cell to fit in. And because reflective LCD consume almost no power at all, they can run for years and this would allow changing the price whenever they want. Next time I go, I'll bring my LCD detector, also known as polarizing filter (which I can find in all LCDs).
Impatiently waiting for the next episode. This is *very* interesting.
I love the new end-logo thingy (looks and sounds professional)
On the microcontroller you'd want to hook all lines to the same output-bank and do the flipping with good old bitbanging: inverting the whole output-register.
Like that you can swap up to 8 lines (the 8 bit it has) at exactly the same time.
make sense for beginner like me. thanks mr. dave.
your explaination answer many question of mine.
Cool video series! In future, a quick explanation from David on his code would be great.
Thank you so much. I got a new one and was figuring out how to drive it. This helped me a lot
Thank you so much for making this. It's so clear and to the point.
I'd like a follow-up video that covers a graphical LCD that uses LVDS if that isn't too much to ask. I've been looking into tapping one for a project but I'm not sure what level of hardware I'd need to reverse engineer it and the FPGA I'd need.
Thank you!
Thank you for the whiteboard lesson.
Excellent video Dave. Thanks
General comment about driving LCDs for those interested in control bigger displays. If you have a 4 digit LCD display then you'll have about 28 pins to control (or more counting decimal points and minu). There's an LCD driver chip called the AY0438 which only requires a 3 pins to drive. I wrote an Arduino library for this a few years ago you can find a demo here v=nGXTJL51D6Q :)
Not always, I have some 4 digit LCD's that only need 3 more pins. Each digit has individual backplane and com pin, so, common-up the segments (aaaa, bbbb, cccc etc) and then TDM the com pins. There is some loss of contrast but hardly noticeable and gets the job done.
SimoWill75 surely for that you’d need 7 (segments) + 4 (backplanes) = 11 digital outputs to control your screen? That’s fine if you have enough IO on your micro controller. If you also have decimal points, colon, minus sign, low battery symbol, etc you might end up with no pins available to do anything else.
The driver chips only cost a couple of quid and generate the AC for you. The frequency is configurable using a capacitor and you can control 32 segments, with just data, clock and load signals :)
True, but I mistakenly thought you were referring to Dave's direct Arduino demo which was still fresh in my mind. He's already using 8 pins, each extra digit only needs one additional. That's how I used my 4 digit displays, but with PIC's back in the day.(one clock, one voltmeter with fixed decimal point) Simple, low cost and effective, but obviously not the answer for every project.
SimoWill75 Ah yes, my comment was a general remark not about the approach Dave demonstrated :) I do agree with you though: this direct way of driving the screen is cheap and effective!
For the benefit of those playing at home (I’m sure you already know this Simo) if one disables the current reversal and adds some resistors to the outputs; Dave’s example code could be used to drive a 7 segment LEDs (and more than 1 digit with multiplexing) :D
AY0438 40 pin DIP (through hole) package LCD Driver chip datasheet:
ww1.microchip.com/downloads/en/DeviceDoc/80438a.pdf
Dave we need more beginner vids too. How about some on standard need to know IC's. How about simple transistor stuff. Basic TTL.
English is not my native language. I do not know English well, but I perfectly understand you.
Great Video! Please keep this kind of content coming. Very useful stuff.
We're still waiting for the multiplexed lcd tutorial.
That´s why we here, Dave...:)
Excellent video!!
and: We want a clock ;) an EEVBlog LCD Clock, a Dave clock :) :)
Contrast can be implemented by connecting a 10k pot to 0/5V and using its wiper to drive open collector logic.
Been looking forward to this video :D This is going to be a great series!
Fun fact: If you're using Arduino (most likely on an AVR), then you can set the pinMode to INPUT and then use digitalWrite to get a lower voltage than usual - setting to INPUT makes it go through an internal pullup resistor for input (pulldown when you abuse it to make it do output)
this is if you're trying to have 3 voltages waveform and have another offset waveform.
Thanks Dave
Sir I love your tutorial.
Awesome wee tutorial gizmo there.
I love tutorials like this! Great video :D
He's a legend
However, some designs of cheap multimeters uses DC driving for decimal points and the battery sign. And it works.
Fascinating video fur sure, but one question remains unanswered, why or how does DC harm LCD’s
Darkphotons let me know if u find out. Ima try going on LCD wiki
It's caused by gradual electrochemical plating of the metals in the display. An average DC bias promotes the migration of metal ions through the substrate of the display and causes fading and burn-in of segments over time.
Dielectric Videos
Thanks for your answer, it sounds feasible, gotta do some research into this, maybe Dave can clarify this point in his next video?
Oh wow, i actually found this interesting!
Thank you for this!
Excellent. Thanks Dave.
Great vid. I'm guessing the 3rd vid will be for the multiplexed commons and the shenanigans involved! ;)
easy to follow and very informative!
Thanks Dave, great video.
I've learnt something new today.
Good video, Dave.
Very interesting, thanks Dave!
Awesome video! This is why I subscribed to this channel and stay subscribed. Say, I am considering a regular donation through Patreon. :)
@EEVblog, Was there a follow up video to explain multiplexed LCD, or contrast control?
Very instructive, thanks.
more educational videos like this one please!!!
That video is just perfect 👌
Great series on LCDs Dave. Any plans to give us a similar series on VFDs?
I want to see what you are doing with your DC source, or your func generator.
I read that as LSD and I thought we were gonna learn how to do some sick skids in a VR Commodore.
Part 3
ISS that like a Commodore 64?
Awesome video.
could we get a video on driving in multiplex mode pls? with 1/2 bias... 1/3 bias.. etc
Yay, part 2, with a whiteboard even.
EXCELENT. Cant wait to move to 1/2 and 1/3 MUX, I have read it many times, seen Microchip App notes. It is clear the method but not they way they wave the commons on the code ...
Thank you
Maybe you could also generate oscillation via the same xor chip, (inverting oscillator)... They way it'll be as easy as an led driving
Here´s the display Dave used in this video:
www.digikey.de/products/de?keywords=67-1506-ND
Thanx going out to @Glen Slick for finding that out, i just put a clickable link, to make things easier...
Holy crap, thank you for this video Mr. Jones. I may start hacking super cheap calculator instead of buying lcd modules.
Thanks a lot!!!
Why does DC ruin the LCD? Electrolysis of the liquid? Corrosion of the electrodes?
Absolutely Great! Thanks for this! :)
why are there so crazy LCD waveforms with multiple voltage levels if this is all that needs to be done? 🤔
You are the Best! Thank you!
Dave you never linked in the first LCD video and I can't find it in the "Electronics Tutorials"... found it, its in the regular videos #1044.
Do a multiplexed display??
Good video
Before he mentioned method 2, I was thinking it would be to hook COM to 2.5V and then drive the pin with 0-5V. Why wouldn’t you do that?
I guess because the standard power supply to logic devices is 5v. To get 2.5 you would have to waste power through a voltage divider? It's more efficient to use the inverted 5v supply.
Nice work. Btw: Could you make a video about E-Ink-Display? For instance, at work we use the displays from "Pervasive Displays" and the manufacturer's datasheet of the on-display-controller is simply crap.
So, you don't have the links, either on this or the next one in this series.
I get the end result with DC inverted by the gate but in the early stages of the video, if you shift the offset and then have a DC signal going positive to negative, is that not now an AC signal and not DC anymore?
Counter dave we need to click it and it change ' BUTTENS '
How about connecting com as you showed to 5V square wave and shorting segments to some 2,5V rail?
fantastic video, thank you for sharing, awesome
Thank you. Can you give some information about HT1621B programming or equivalent PCF8576 etc.
Thanks a lot, very nice video
Great Video!
Enjoy your videos but have stopped supporting you through Patreon due to their increased fees. Would be happy to donate through alternative means.
Yep, I did the same. Once the fees start there is no end.
What is the LCD bias(bias angle) in this type of control? (100 Hz +/-5 volt with 50% duty cycle) How to change best viewing angle (rotate view angle)? Or change contrast? It is just an amplitude or not?
Understand electrolysis, and imagine now driving with DC instead of AC... Liquid crystals are just a fancy name for some poor chemicals suspended in a pretty nice electrolysis chamber, in a LCD!
I'm curious how a hobby motor would be have doing the inverter trick. Could you double the RPM?
Dave, really clear and lucid presentation. Thanks! The offset backplane electrode voltage trick makes total sense now. I'm going to swing by my electronics parts pusher tonight and buy some passive and multiplexed LCDs to experiment with over the weekend. What is that Arduino experiment breakout board you are using in the video, below your breadboard?