I have an LCD display and a speaker both connected to the same 5V power supply, supplied by the laptop via USB cable. The LCD seems to flicker, but in-sync with the melody being played from the speaker.
On its own, the LCD displays text perfectly with zero flickering, so the LCD and wiring is fine.
Is there any way to mitigate this flickering on the LCD screen?
I intend to connect another LED bulb and a tri-color LED to the set-up that will be programmed to blink (using elapsedMillis), so I'm not sure if the flickering will worsen by then.
You forgot to explain what you mean by "an LCD display and a speaker both connected to the same 5V power supply, supplied by the laptop via USB cable".
In particular, you omitted to detail what speaker you are talking about, how it is connected to whatever you mean by "the same 5V power supply", how this is all connected to what sort of Arduino (if indeed it is an Arduino).
So in summary you have two thingys connected to a whatchamacallit with spaghetti tubing and it is flickering and you expect us to give you an answer.
Give us a break!
{Obviously the framingham lever is not correctly inserted. I think.}
So now he's gone back in and edited his original post which is really going to confuse someone reading this thread in the future, wondering what you were complaining about.
Well, that sounds obvious, but the reason we have not offered such a glib answer is that without knowing what on earth he is actually doing, it is difficult to advise how much decoupling and what extra measures may be required.
Will decoupling really work when the supply itself is probably overloaded?
I think the OP was already aware of the source of his problem since he emphasized that the speakers and the display were driven by the same power supply.
You forgot to explain what you mean by "an LCD display and a speaker both connected to the same 5V power supply, supplied by the laptop via USB cable".
In particular, you omitted to detail what speaker you are talking about, how it is connected to whatever you mean by "the same 5V power supply", how this is all connected to what sort of Arduino (if indeed it is an Arduino).
So in summary you have two thingys connected to a whatchamacallit with spaghetti tubing and it is flickering and you expect us to give you an answer.
Give us a break!
{Obviously the framingham lever is not correctly inserted. I think.}
Don't know how anyone with a little patience can fail to understand that simple sentence. Also, I believe the video offers a very good grasp of the problem at hand, for people who actually bothered watching it.
Thanks for the reply. The flickering seems to have decreased and the display text is now visible almost all the time, but it seems that powering the LCD display separately using a battery is the best way since it cancels all flickering. Like what floresta said, the supply seems to have trouble giving power to all the components especially with the LCD display since the backlight is also connected.
Thanks to all those who offered help; and those who didn't.
Grumpy_Mike:
As the OP has buggered off perhaps we will never know.