[Solved] LCD display flickers, in-sync with the music being played

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.

Here's a youtube video demonstrating what exactly is going on.

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.

Now here's the problem.

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.

Don

No, actually not, his edit came (way) before my reply. It still makes no sense! :grinning:

Is there any way to mitigate this flickering on the LCD screen?

Yes.
Apply decoupling to the supply.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

Grumpy_Mike:
Apply decoupling to the supply.

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.

That is what the link was for, to read and to learn.

Ah, but if providing reference links was all we needed to do, this forum would be a lot different. :grinning:

True but what I did was 100% more helpful than what you did.

In your opinion.

Beware the XY problem.

Beware the "one hit wonder".

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.

Don

As the OP has buggered off perhaps we will never know.

Paul__B:
Now here's the problem.

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.

Grumpy_Mike:
Yes.
Apply decoupling to the supply.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

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.

I just got back from a vacation.