ph1p / ikea-led-obegraensad

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

Noob need some help. #58

Open s0m3thin opened 7 months ago

s0m3thin commented 7 months ago

Hey! Thanks for this project. It made me to buy a lamp like this and an ESP32 and get started. The ESP is connected to my PC right now. I also got VScode and i downloaded platformIO.

But could you please get more in detail by adding the vars to the .h files and get the firmware onto the device? or a hint how to? that would be great.

ph1p commented 7 months ago

Hello @s0m3thin

Have a look at the "How to" section. If you are missing something in description, feel free to open a PR.

I'll try to describe the steps in a bit more detail:

// Only an example! You have to enter your data
#pragma once

#define WIFI_SSID "FRITTZ!Box"
#define WIFI_PASSWORD "mysecretpassword"
#define WIFI_HOSTNAME "ikea-lamp"

#define OTA_USERNAME "ota" // only if you use over the air updates via wifi
#define OTA_PASSWORD "pass" // only if you use over the air updates via wifi
BrookeDot commented 7 months ago

I was new to Platform.io (but not Arduino) and found that the Quick Start was quite helpful. If you have no idea what board to select, maybe post a picture here and I or someone else can help out.

m0uh85 commented 7 months ago

Hello, I need also help. I have a D1 Mini (ESP8266) and a D1 Mini (ESP32). Im compiled both Versions from the Script. The ESP8266 is connected to the WiFi and "works" but after a while the Controller stucks. So tried the same Code with the ESP32 but its not working no Web frontend. I tried to modifie the Code and put in the envd for the D1 Mini but same Issue. I tried 3 different Controller Just to be Sure. Can someone help me to Analyse were the Fault is?

BrookeDot commented 7 months ago

So tried the same Code with the ESP32 but its not working no Web frontend.

Is the device connecting to the WiFi network? What does "not working" mean in this case? Can you flash a simple test pattern like in this PR?

m0uh85 commented 7 months ago

No it is not connected to the wifi (but wifi setting are ok because it works on the esp8266) With the serielle Monitor it looks like a bootloop or something.

Blubbaa commented 7 months ago

Can confirm, on esp32-c3-devkitc-02 board the program is stuck in a boot loop:

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710

Any ideas how to fix this?

m0uh85 commented 7 months ago

Can confirm, on esp32-c3-devkitc-02 board the program is stuck in a boot loop:

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380082
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5810,len:0x438
load:0x403cc710,len:0x918
load:0x403ce710,len:0x25f4
entry 0x403cc710

Any ideas how to fix this?

Ohh no I ordered this board because I thought maybe my D1 Mini Board is the issue :(

ph1p commented 7 months ago

Can confirm, on esp32-c3-devkitc-02 board the program is stuck in a boot loop:


ESP-ROM:esp32c3-api1-20210207

Build:Feb  7 2021

rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)

Saved PC:0x40380082

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd5810,len:0x438

load:0x403cc710,len:0x918

load:0x403ce710,len:0x25f4

entry 0x403cc710

ESP-ROM:esp32c3-api1-20210207

Build:Feb  7 2021

rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)

Saved PC:0x40380082

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd5810,len:0x438

load:0x403cc710,len:0x918

load:0x403ce710,len:0x25f4

entry 0x403cc710

ESP-ROM:esp32c3-api1-20210207

Build:Feb  7 2021

rst:0x8 (TG1WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)

Saved PC:0x40380082

SPIWP:0xee

mode:DIO, clock div:1

load:0x3fcd5810,len:0x438

load:0x403cc710,len:0x918

load:0x403ce710,len:0x25f4

entry 0x403cc710

Any ideas how to fix this?

Try to change the default pins, maybe this will help. Or try to change the variables of the timer SPI settings inside the screen.cpp.

m0uh85 commented 7 months ago

Before I downloaded the zip manually. Now I tested to clone it with git like you explained before. I deleted the old folder and everything.... now it looks like that its working for me!

hendrikreuhl commented 7 months ago

I'm having the same problem that I'm stuck in the bootloop with my seeed studio xiao esp32c3.

Any ideas on how to fix this?

Blubbaa commented 7 months ago

So its definitely the PIN setup. Changing the default ones to some free GPIOs of the board did the trick. See also https://github.com/ph1p/ikea-led-obegraensad/issues/60 for Lolin D32 Pro.