breadboard
documentación

Proyecto de ejemplo · Hogar inteligente

Botón inteligente y bombilla Zigbee

Dos productos cerrados, sin DevKit: botón inalámbrico y bombilla, cada uno con un ESP32-C6 real emulado. El botón es el coordinador: forma la red, la bombilla se conecta y se vincula. MANTÉN PULSADO EL BOTÓN brevemente: un ZCL Toggle real cruza el medio 802.15.4 y enciende el vidrio. Selecciona la bombilla para ver su conexión en vivo y sigue conexión y conmutación en Wi-Fi sniffer. (Tarda un momento.)

El circuito Botón inteligente y bombilla Zigbee tal como lo dibuja el simulador

Cómo funciona

Dos productos cerrados, dos ESP32-C6 reales emulados, sin DevKit. El botón ejecuta firmware coordinador (interruptor) esp-zigbee: forma y abre la red. La bombilla contiene su propio C6 con firmware de luz esp-zigbee; busca, se conecta y se vincula al coordinador por 802.15.4 compartido. Pulsar el botón acciona su pin BOOT interno: la interrupción GPIO envía ZCL Toggle real a la bombilla vinculada, cuya función de encendido/apagado controla el WS2812 interno que ilumina el vidrio.

Componentes del montaje

  • 2× Batería (Battery)
  • Bombilla Zigbee (Zigbee Bulb)
  • Botón inteligente Zigbee (Zigbee Smart Button)

Cómo está conectado

  • Batería (Battery) · pos→Botón inteligente Zigbee (Zigbee Smart Button) · vcc
  • Batería (Battery) · neg→Botón inteligente Zigbee (Zigbee Smart Button) · gnd
  • Batería (Battery) · pos→Bombilla Zigbee (Zigbee Bulb) · vcc
  • Batería (Battery) · neg→Bombilla Zigbee (Zigbee Bulb) · gnd

Este proyecto ejecuta firmware precompilado en la placa emulada; ábrelo en el simulador para verlo funcionar e inspeccionar cada componente en vivo.

Licencia del firmware (en 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.

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.

Prueba esto

  • Espera la conexión y vinculación (las pestañas seriales las narran; tarda un momento).
  • Mantén pulsado el botón brevemente. El vidrio se ilumina con ZCL Toggle.
  • Selecciona la bombilla para ver conexión y color en vivo.
  • Abre Wi-Fi sniffer para ver conexión, vinculación y cada conmutación como tramas 802.15.4 reales.
Informar de un problema de traducción

Proyectos relacionados