Close
0%
0%

XIAO ESP32 Home Automation Shield

A dual relay-based home automation device for the ESP32 XIAO C3 and S3 with an onboard power supply so it can be powered via AC 240V.

Public Chat
Similar projects worth following
This is a home automation shield that was created from scratch for the XIAO ESP32 C3/S3 boards. It has an integrated, separate power supply and can power a 240V AC while setting up a system.

Using the XIAO ESP32 C3 or S3 Development Board, the goal was to create a basic home automation shield with two relay outputs that may be used to operate a variety of AC or even DC devices.

Two buttons are used to control the status of the relay through a basic web application whose source code is attached to the main sketch.

ino - 6.27 kB - 12/30/2023 at 16:40

Download

HOME AUT.rar

PCB Gerber Data

RAR Archive - 15.35 kB - 12/30/2023 at 06:34

Download

fusion - 281.16 kB - 12/30/2023 at 06:32

Download

STAND.3mf

STAND MESH FILE FOR 3D PRINTING

3mf - 34.55 kB - 12/30/2023 at 06:32

Download

  • 1 × Custom PCB Provided by Seeed Studio
  • 1 × XIAO ESP32 C3/S3
  • 1 × Relay Module 5V Omron G5PA-1
  • 1 × AC to 5V DC SMPS Module
  • 1 × AO3400 Mosfet

View all 12 components

  • 1
    Concept-SCHEMATIC

    We will use two 5V relay modules to control the AC load; to drive these relays, we used a Mosfet switch setup, which functions as a switch that can be turned ON or OFF by providing a voltage to its gate.

    A 10K resistor connects the Mosfet's gate to the XIAO MCU's I/O pin.

    In addition, we attached an indicator led to the I/O pin of the XIAO MCU and placed it close to each relay. The indicator LED will glow when the relay is turned on or off.

    We installed an isolated SMPS to power this arrangement with AC power, which converts AC 240V into the steady 5V needed for the MCU to function.

  • 2
    PCB Design

    Subsequently, we export the netlist from the schematic and convert the entire board into a PCB file. To keep the AC and DC components apart, we first draw a square outline of the board, placing the SMPS and relay on one side and the XIAO with the remaining electronics on the other.

    We later added few aesthetic markings to the PCB and sent it to Seeed Fusion for samples.

  • 3
    Seeed Fusion PCB Service

    The PCB was ordered in a blue solder mask with white silkscreen.

    PCBs were received in a week, and their quality was super good considering the rate, which was also pretty low.

    Seeed Fusion PCB Service offers one-stop prototyping for PCB manufacture and PCB assembly, and as a result, they produce superior-quality PCBs and fast turnkey PCBAs within 7 working days.

    This XIAO HOME AUTOMATION Board's PCB quality is SUPER COOL!

    Seeed Studio Fusion PCB Assembly Service takes care of the entire fabrication process, from Seeed Studio Fusion Agile manufacturing and hardware customization to parts sourcing, assembly, and testing services, so you can be sure that they are getting a quality product.

    After gauging market interest and verifying a working prototype, Seeed Propagate Service can help you bring the product to market with professional guidance and a strong network of connections.

    Next is the PCB assembly process.

View all 10 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates