Serial Monitor Lagging

Hello, I am working on a project that uses a Bluetooth module that helps display the MPU6050 sensor output on the serial monitor wirelessly. The problem that I am having is that when I try to change the power supply (before: the USB is still connected to the laptop) to a 9V battery the serial monitor seems to be lagging. I was wondering if the battery is causing this or maybe something else? I attach some photos below.

Output when the project was powered using the USB connected to the laptop. (the output is continuous)

Output when the project was powered using a 9v battery with a 7805 regulator. (output is not continuous and is going back from the start)

Are you are trying to use one of these:


?

Yes I am

Instead of rehashing the same conversation over and over again, use this:


and the words "9 volt battery" to get a load of postings on why those do not work that well.

A 9V battery is always a bad idea for an Arduino project :slight_smile:

the Serial monitor is set at 9600 bauds it's not super fast.. move to 115200 or more and change the Serial.begin() to match that in the code

Oh okay, I'll do search it first. Thank you for the reply.

Oh I see, might as well change to another battery supply. Thank you

JML also said that. It's good advice, but since you didn't ack it, I figured it bore repeating.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.