Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new board Shelly dimmer 2 #323

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

oliv3r
Copy link

@oliv3r oliv3r commented Jan 13, 2025

The shelly dimmer 2 0 board is tiny LIVE AC powered board used as a dimmer by Shelly.

It features a 16M (2mb) quad IO flash chip and already has support in tasmota 1 (and home-assistant).

Dimming functionality is provided by a secondary STM32 microcontroller, which is driven via UART0, which means that when using the microcontroller (and pulling it out of reset), UART0 cannot be used for debugging. Flashing works just fine, as the STM32 is in reset and ignores the serial messages. Runtime debugging is provided by the exposed UART1_TX pin (labeled ESP_DBG_TX by shelly).

@oliv3r
Copy link
Author

oliv3r commented Jan 13, 2025

Note, that it's probably better to use the eagle.flash.2m.ld linker
script and omit the filesystem, as we'd ideally use all available space
for OTA to maximally make flash space available, but I suppose platform
IO favors the slightly more generic approach.

Further more, this was initially tested/confirmed to be working by first using esp01-1m for flashing (which validates qio usage) and later d1-wroom-02, which validates the 2M flash usage.

The shelly dimmer 2 [0] board is tiny LIVE AC powered board used as a dimmer
by Shelly.

It features a 16M (2mb) quad IO flash chip and already has support in
tasmota [1] (and home-assistant).

Dimming functionality is provided by a secondary STM32 microcontroller,
which is driven via UART0, which means that when using the
microcontroller (and pulling it out of reset), UART0 cannot be used for
debugging. Flashing works just fine, as the STM32 is in reset and
ignores the serial messages. Runtime debugging is provided by the
exposed UART1_TX pin (labeled ESP_DBG_TX by shelly).

[0]: https://us.shelly.com/products/shelly-dimmer2
[1]: https://templates.blakadder.com/shelly_Dimmer_2.html

Signed-off-by: Olliver Schinagl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant