
Como funciona
Dois produtos fechados, dois chips ESP32-C6 emulados de verdade, nenhum DevKit. O botão roda o firmware de coordenador (interruptor) esp-zigbee: ele forma a rede e a abre para novos dispositivos. A lâmpada esconde o próprio C6, rodando o firmware de luz esp-zigbee; ela faz a busca, entra na rede e se vincula ao coordenador pelo ar 802.15.4 compartilhado. Clicar no botão aciona o pino BOOT interno dele: a interrupção de GPIO do firmware dispara e envia um Toggle ZCL real à lâmpada vinculada, cuja callback de liga/desliga aciona o WS2812 interno que o vidro desenha.
O que está na bancada
- 2× Bateria (Battery)
- Botão inteligente Zigbee (Zigbee Smart Button)
- Lâmpada Zigbee (Zigbee Bulb)
Como está ligado
- Bateria (Battery) · pos→Botão inteligente Zigbee (Zigbee Smart Button) · vcc
- Bateria (Battery) · neg→Botão inteligente Zigbee (Zigbee Smart Button) · gnd
- Bateria (Battery) · pos→Lâmpada Zigbee (Zigbee Bulb) · vcc
- Bateria (Battery) · neg→Lâmpada Zigbee (Zigbee Bulb) · gnd
Este projeto executa firmware pré-compilado na placa emulada. Abra no simulador para ver o projeto funcionando e inspecionar cada componente ao vivo.
Licença do firmware (em inglês)
Notice: this firmware uses the LGPL-licensed Arduino core library
arduino-zigbee-switch-c6.bin is statically linked with Arduino-ESP32 3.3.10. Parts of this library are licensed under the GNU Lesser General Public License, version 2.1 or (at your option) any later version. You may modify this work for your own use and reverse engineer it to debug those modifications. Download the relink package and corresponding source to rebuild it with a changed library.
It also links Espressif’s ZBOSS Zigbee stack, supplied unchanged under its own licence, which forbids reverse engineering, decompiling, modifying or disassembling the ZBOSS binary itself. Relink with the ZBOSS archives unchanged.
- Relink package: zigbee-switch-c6-relink.zip (1.0 MB)
- Required shared inputs: arduino-esp32-3.3.10-esp32c6-sdk.zip (10.0 MB), arduino-esp32-3.3.10-notices.zip (0.1 MB)
- Corresponding source: arduino-esp32-3.3.10-core-source.zip (1.2 MB), arduino-esp32-3.3.10-esp32c6-headers-source.zip (2.1 MB)
- Licence texts and relink instructions
Notice: this firmware uses the LGPL-licensed Arduino core library
arduino-zigbee-light-c6.bin is statically linked with Arduino-ESP32 3.3.10. Parts of this library are licensed under the GNU Lesser General Public License, version 2.1 or (at your option) any later version. You may modify this work for your own use and reverse engineer it to debug those modifications. Download the relink package and corresponding source to rebuild it with a changed library.
It also links Espressif’s ZBOSS Zigbee stack, supplied unchanged under its own licence, which forbids reverse engineering, decompiling, modifying or disassembling the ZBOSS binary itself. Relink with the ZBOSS archives unchanged.
- Relink package: zigbee-light-c6-relink.zip (1.0 MB)
- Required shared inputs: arduino-esp32-3.3.10-esp32c6-sdk.zip (10.0 MB), arduino-esp32-3.3.10-notices.zip (0.1 MB)
- Corresponding source: arduino-esp32-3.3.10-core-source.zip (1.2 MB), arduino-esp32-3.3.10-esp32c6-headers-source.zip (2.1 MB)
- Licence texts and relink instructions
Experimente
- Espere a lâmpada entrar na rede e se vincular (as abas seriais narram o processo; a entrada leva um momento).
- Clique e segure o botão por um instante. O vidro acende com o Toggle ZCL.
- Clique na lâmpada para ver o estado de entrada na rede ao vivo e a cor.
- Abra o Wi-Fi sniffer para ver a entrada na rede, o vínculo e cada toggle como quadros 802.15.4 reais.



