A
Arduino4mo 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
29 Replies
KLevi
KLevi4mo ago
What do you get in the serial monitor?
Kosta
KostaOP4mo ago
i get nothing..
KLevi
KLevi4mo ago
Add a line before myserial.begin and print something like Serial started
Kosta
KostaOP4mo ago
ok
Kosta
KostaOP4mo ago
No description
Kosta
KostaOP4mo ago
i swear to god it spams serial started even tho its in setup
DungThrower
DungThrower4mo ago
It’s reseting itself Disconnect all hardware and see
Kosta
KostaOP4mo ago
yeah, how tho? ahh ok
DungThrower
DungThrower4mo ago
Also, what was your memory usage stats after you uploaded to the board
Kosta
KostaOP4mo ago
54%
DungThrower
DungThrower4mo ago
For which one There should be 2
Kosta
KostaOP4mo ago
No description
Kosta
KostaOP4mo ago
it shows serial started just once when i disconnect all ahrdware
DungThrower
DungThrower4mo ago
So then it’s wiring of the hardware
Kosta
KostaOP4mo ago
whats the problem then tho
DungThrower
DungThrower4mo ago
And or somethings not working properly
Kosta
KostaOP4mo ago
yeah i guess
DungThrower
DungThrower4mo ago
I dont know, it’s not in front of me lol. so just start with the leds
Kosta
KostaOP4mo ago
imma replug one after the other
DungThrower
DungThrower4mo ago
Then connect your display. Then the player
Kosta
KostaOP4mo ago
and see when it blocks
DungThrower
DungThrower4mo ago
Yea
Kosta
KostaOP4mo ago
ok
Kaito
Kaito4mo 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
KLevi4mo 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
Kaito4mo 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?
CD
CD4mo ago
@Kosta What is the problem Of the code
maz_net_au
maz_net_au4mo ago
yeah. looks like not enough power and the arduino is resetting, or your code is causing a crash and restart. both look similar

Did you find this page helpful?