Closed MFlasskamp closed 1 year ago
Also ran into this, it seems that there is a something working a little but as I've seen a few small pulses from LEDC but it doesn't work as expected indeed.
Observing this as well
The PR above fixes wrong calculation of the LEDC/PWM resolution. Moreover I had to use the most recent releases of framework and platform. Here is a snippet to give it a try:
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
version: 2.0.4
platform_version: 5.1.1
external_components:
- source: github://pr#3820
components: [ ledc ]
@MFlasskamp Hmm. Not working for me. It compiles and uploads, but I end up with a bootloop:
Build:Feb 7 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x40049a42
SPIWP:0xee
mode:QIO, clock div:2
load:0x3fcd6100,len:0x438
ets_loader.c 78
This worked for me.
board: adafruit_feather_esp32s3_nopsram
variant: esp32s3
framework:
type: arduino
version: dev
platform_version: ^5.1.1
variant: esp32s3
That's an S3, not a C3.
Great! And my PR fixes the esp32s2, too. The current esphome code has the LED PWM timer resolution hard coded to 20 bit. This is only valid for the old esp32. The esp32s2 needs 18 bit, esp32c3 18 bit and esp32s3 14 bit. That's why I changed it to LEDC_TIMER_BIT_MAX
defined in esp-idf
Why it's not released yet? What's the point in closing issues as long as they are not released?
The pull request https://github.com/esphome/esphome/pull/3820 is merged into the 2023.2.0 betas: https://github.com/esphome/esphome/releases
Great, thank you!
The problem
The LEDC output component produces no output with a monochromatic light. The board I'm using has an ESP32-C3 (NodeMCU ESP-C3-13) and is compiled with Arduino framework (cf. example yaml).
No compile errors or errors in the log when light is controlled by Home Assistant.
Which version of ESPHome has the issue?
2022.2.6
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
2022.3.3
What platform are you using?
ESP32
Board
NodeMCU ESP-C3-13
Component causing the issue
ledc
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
Framework/toolchain versions: Arduino:
ESP-IDF: