Skip to main content

[Programa] Lâmpada Zigbee

(provisório) [1]
8_material_list.png

Lista de Material

8_material_list.png

Notas I(part I/II)

Este exemplo mostra como configurar o dispositivo final Zigbee e utilizá-lo como lâmpada de domótica (HA) de ligar/desligar.

Hardware RequiredRequisitos

*Uma Oneplaca developmentde boarddesenvolvimento (ESP32-C6) actingcomo asdispositivo final Zigbee coordinator (loadedcarregada withcom Zigbee_Light_switcho example)
* A USB cable for power supply and programming
*exemplo Choose another board (ESP32-C6) asLâmpada Zigbee end device (loaded with Zigbee_Light_bulb example))

    .Using Arduino IDE

    *

    BeforeAntes Compile/Verify,de selectCompilar/Verificar, theseleccione correcta board:placa correcta: `ToolsFerramentas -> Board`Placa`.
    * SelectSelecionar theo End devicemodo Zigbee mode:do dispositivo final: `ToolsFerramentas -> ZigbeeModo mode:Zigbee: Zigbee ED (enddispositivo device)final)`
    *
    SelectSelecionar PartitionEsquema Schemede forPartição para Zigbee: `ToolsFerramentas -> PartitionEsquema Scheme:de Partição: Zigbee 4MB withcom spiffs`
    * SelectSeleccione thea COMporta port:COM: `ToolsFerramentas -> Port:Porta: xxx` whereem theque `xxx` isé thea detectedporta COM port.detectada.
      Lâmpada Zigbee

        Notas II(part II/II)

        ThisEste exampleexemplo showsmostra howcomo toconfigurar configureo coordenador Zigbee Coordinatore andutilizá-lo usecomo itinterruptor asde aluz de Homeligar/desligar Automationpara (HA) on/off light switch.domótica.
        Hardware RequiredRequisitos

        *Uma Oneplaca developmentde boarddesenvolvimento (ESP32-C6) actingem asmodo coordenador Zigbee coordinator (loadedcarregada withcom Zigbee_Light_switcho example)
        *exemplo A USB cable for power supply and programming
        * Choose another board (ESP32-C6) asInterruptor Zigbee end device (loaded with Zigbee_Light_bulb example))

        ConfigureConfigurar theo Projectprojeto
        Set

        Definir theo ButtonGPIO do interruptor Switch GPIO byalterando changinga thedefinição `GPIO_INPUT_IO_TOGGLE_SWITCH` definition. 

        .
        Using Arduino IDE
        * Before Compile/Verify, select the correct board: `Tools -> Board`.
        * Select the Coordinator Zigbee mode: `Tools -> Zigbee mode: Zigbee ZCZR (coordinator)`.
        * Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee 4MB with spiffs`.
        * Select the COM port: `Tools -> Port: xxx where the `xxx` is the detected COM port.
        * Optional: Set debug level to info to see logs from Zigbee stack: `Tools -> Core Debug Level: Info`.
        Interruptor Zigbee
          Exemplo
          8_material_list.png
          Referência

          [1] Espressif. arduino-esp32 Zigbee examples. url: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Zigbee (acedido em 30/08/2024).