ph1p / ikea-led-obegraensad

ESP32/Arduino hack for the ikea OBEGRÄNSAD led wall lamp
MIT License
610 stars 85 forks source link

Panel Freezes when too many pixels are lit? #73

Closed YoshiFan501 closed 11 months ago

YoshiFan501 commented 11 months ago

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.

BrookeDot commented 11 months ago

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

YoshiFan501 commented 11 months ago

I am using this one from HiLetGo

https://www.amazon.com/gp/product/B0718T232Z/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

On Sun, Dec 3, 2023 at 9:51 PM Brooke. @.***> wrote:

What board are you using? It may be running out of memory (RAM).

— Reply to this email directly, view it on GitHub https://github.com/ph1p/ikea-led-obegraensad/issues/73#issuecomment-1837796822, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOQZB5CTQD3FN7PB26WQRLYHVCDVAVCNFSM6AAAAABAFJWB2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXG44TMOBSGI . You are receiving this because you authored the thread.Message ID: @.***>

BrookeDot commented 11 months ago

Any logs?

YoshiFan501 commented 11 months ago

How would I get those?

On Sun, Dec 10, 2023 at 1:46 AM Brooke. @.***> wrote:

Any logs?

— Reply to this email directly, view it on GitHub https://github.com/ph1p/ikea-led-obegraensad/issues/73#issuecomment-1848885412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOQZB3NALLUCLU6THOZJNDYIVSEVAVCNFSM6AAAAABAFJWB2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYHA4DKNBRGI . You are receiving this because you authored the thread.Message ID: @.***>

ra-ma commented 11 months ago

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.

BrookeDot commented 11 months ago

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.

YoshiFan501 commented 11 months ago

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