ph1p/ikea-led-obegraensad

Panel Freezes when too many pixels are lit?

Closed this issue · 7 comments

I was trying to make a simple plugin that turns on every LED to make it a simpe lamp.

When I wrote my code for that, the led panel flashed on and off, frozen until i reset the board.

My code was a simple for loop in the setup that lit every pixel, and a delay in the main loop.

I wanted to test with the draw plugin, and after I got here, my esp froze and dropped wifi connection

image

Is it a board issue, or is something wrong in the code? I do not believe I have had this issue before with earlier firmwares. A simple all LEDs on lamp has been on my want list for a while, and was hoping to make it a reality.

What board are you using? It may be running out of memory (RAM). I wasn't able to replice the freeze with my board running an NodeMCU ESP32

Any logs?

ra-ma commented

As a hint: Check the power supply. If more LED are lit, the power consumption ist considerable higher. I was measuring Something between 0,2 and over 1 amps depending on the number and brightness.

Eventually then the voltage breaks down and the ESP gets stuck as it's not getting sufficient power anymore.

Check the power supply... I was measuring Something between 0,2 and over 1 amps depending on the number and brightness.

That's a good point. The IKEA install guide says:

Used with Class 2 listed power supply from IKEA with output 5Vdc, min. 1A

I am using a 1A power supply I bought at the same time as my OBEGRÄNSAD. So worth trying for sure.

I tried a 2.5A USB and it seems to work now