A
Arduino2d ago
Kosta

My setup is looping? LEDs and oled going crazy..

idk why but my LEDs blink and my oled goes on and off really fast
27 Replies
KLevi
KLevi2d ago
What do you get in the serial monitor?
Kosta
KostaOP2d ago
i get nothing..
KLevi
KLevi2d ago
Add a line before myserial.begin and print something like Serial started
Kosta
KostaOP2d ago
ok
Kosta
KostaOP2d ago
No description
Kosta
KostaOP2d ago
i swear to god it spams serial started even tho its in setup
DungThrower
DungThrower2d ago
It’s reseting itself Disconnect all hardware and see
Kosta
KostaOP2d ago
yeah, how tho? ahh ok
DungThrower
DungThrower2d ago
Also, what was your memory usage stats after you uploaded to the board
Kosta
KostaOP2d ago
54%
DungThrower
DungThrower2d ago
For which one There should be 2
Kosta
KostaOP2d ago
No description
Kosta
KostaOP2d ago
it shows serial started just once when i disconnect all ahrdware
DungThrower
DungThrower2d ago
So then it’s wiring of the hardware
Kosta
KostaOP2d ago
whats the problem then tho
DungThrower
DungThrower2d ago
And or somethings not working properly
Kosta
KostaOP2d ago
yeah i guess
DungThrower
DungThrower2d ago
I dont know, it’s not in front of me lol. so just start with the leds
Kosta
KostaOP2d ago
imma replug one after the other
DungThrower
DungThrower2d ago
Then connect your display. Then the player
Kosta
KostaOP2d ago
and see when it blocks
DungThrower
DungThrower2d ago
Yea
Kosta
KostaOP2d ago
ok
Kaito
Kaito2d ago
Mader thought it looked like a brown out. Something is drawing a lot of current suddenly, causing the voltage to drop too low for too long and it restarts the Arduino
KLevi
KLevi2d ago
Without the display connected nothing is going to happen as it enters the for loop Also add more of those debugging messages in more places to pinpoint where it breaks
Kaito
Kaito2d ago
https://discord.com/channels/420594746990526466/556594862502182914/1380576844423626854 Video of the issue. Posting this here so it doesn't get lost Wait. @Kosta are you powering LEDs and the display from the GPIO pins?

Did you find this page helpful?