angelone
(angelone)
January 25, 2023, 6:10am
1
Hi all,
I am trying to use a PWM output on Wemos S2 mini board with this basic config:
esp32:
board: lolin_s2_mini
variant: esp32s2
framework:
type: arduino
fan:
- platform: speed
id: oven_fan
output: fan_pwm
name: $name Fan
speed_count: 100
output:
- platform: ledc
id: fan_pwm
pin:
number: 4
min_power: 0
frequency: 22.5kHz
but seems that the PWM signal doesn’t came out to any GPIO pin. Is that supported or am I missing something in the configuration?
I had no problem at all with a ESP32 D1 Mini based on ESP32 WROOM 32.
Many thanks
I think that board got official support with the December release.
esphome:dev
← jhamhader:lolin-s2-mini
opened 06:38PM - 05 Mar 22 UTC
Add ESP32-S2 Lolin/Wemos S2 Mini board.
Pins are taken from the official:
ht… tps://www.wemos.cc/en/latest/_static/files/sch_s2_mini_v1.0.0.pdf
# What does this implement/fix?
Add support ESP32-S2 Lolin/Wemos S2 Mini board.
Note, this depends on https://github.com/platformio/platform-espressif32/pull/736
Tested locally with a real Lolin/Wemos S2 Mini.
## Types of changes
- [ ] Bugfix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Other
**Related issue or feature (if applicable):** fixes [<link to issue>](https://github.com/esphome/feature-requests/issues/1626)
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** (TODO) esphome/esphome-docs#<esphome-docs PR number goes here>
## Test Environment
- [ ] ESP32
- [x] ESP32 IDF
- [ ] ESP8266
## Example entry for `config.yaml`:
<!--
Supplying a configuration snippet, makes it easier for a maintainer to test
your PR. Furthermore, for new integrations, it gives an impression of how
the configuration would look like.
Note: Remove this section if this PR does not have an example entry.
-->
```yaml
esp32:
board: lolin_s2_mini
type: esp-idf
```
## Checklist:
- [x] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated in [esphome-docs](https://github.com/esphome/esphome-docs).
Do maybe check and test the official config?
esp32:
board: lolin_s2_mini
type: esp-idf
angelone
(angelone)
January 25, 2023, 7:52pm
4
I would like to use the arduino framework in order to access to some utility functions with thr lambda code. Do you think it doesn’t support yet?
I’m running ESPHome 2022.12.6
Thanks
There’s lots of people on Discord and HA forums having various issues with that board (including myself last time I tried, see below).
So it’s more that you might be on your own or need to dig through threads. The recommended framework would likely be more stable etc.
This mostly worked last time I tried.
Only just got around to testing them but can’t get it working with ESPHome. And therefore can’t really recommend them just yet.
There’s a ESPHome Discord thread on the topic: ’ Cant get Lolin S2 mini work ’
Edit: Got it working with details on that thread and right button combination. Haven’t tested in detail yet
Edit#2: I seemed to have stability issues with it and so cannot recommend at this point.
esp32:
board: lolin_s2_mini
variant: ESP32S2
framework:
type: arduino
versi…
nickrout
(Nick Rout)
January 25, 2023, 10:09pm
6
You have one, I don’t. It’ll take you only a few minutes to try.