0rax / esphome-xiao-base

XIAO base board PCB & configuration for ESPHome based sensors

Repository from Github https://github.com0rax/esphome-xiao-baseRepository from Github https://github.com0rax/esphome-xiao-base

ESPHome XIAO Base

Release License KiCad

The ESPHome XIAO Base is a custom PCB designed to be used with the ESPHome firmware as a base for creating new sensors.

It was made as a carrier board for the XIAO series of microcontrollers with an OLED display and three switches while providing an easy-to-access header on the back for standard communication protocols (I²C, UART and SPI).

A cutout has also been left for the underside of the XIAO to allow access to the battery pads available on the underside of some modules (such as the XIAO ESP32C6).

PCB

Render Front Back
PCB Render PCB Front PCB Back

The PCB has been designed in KiCad EDA 9.0.

You can preview the project files using KiCanvas directly in your browser, the exported schematic is also available under output/schematics.

PCB Order

The necessary Gerber files to order the PCB are available in the output/fabrication/jlcpcb directory. They have been generated specifically for JLCPCB using KiBot. They should be compatible with other PCB manufacturers too.

Here is the list of parameters to use for the PCB order:

Parameters Value Parameters Value
Base Material FR4 Copper Weight 1 oz
Layers 2 Via Covering Tented
Dimensions 40 × 30 mm Min Via Hole Size 0.3 mm
PCB Thickness 1.2 or 1.6 mm Board Outline Tolerance ± 0.2 mm
PCB Color 1 Black Mark on PCB 2 2D Barcode (Serial Number)
Silkscreen White > Printing: Number Only
Surface Finish 3 Lead Free HASL or ENIG > Position: Specify Position

BOM

Part Ref. Quantity Remarks
PCB ESPHome XIAO Base PCB 1 See the previous section on how to order it.
XIAO Controller XIAO ESP32C3, XIAO ESP32C6 or XIAO ESP32S3 1 Any ESPHome compatible XIAO controller should work.
Tactile Switch SCHURTER 1301.9303 3 Any 6 × 6 mm thru-hole tactile switch should work. We recommend a model with a stem length of 3 mm or more.
OLED Display SSD1306 0.91" OLED Display or SSD1107 0.96" OLED Display 1 Any SSD1306 or SSD1106 I²C based display should work. The PCB was designed to accommodate both 0.91" (128 × 32) and 0.96" (64 × 128) modules.

ESPHome

Example ESPHome configuration files can be found in the esphome directory.

Two are provided for the XIAO ESP32C6 and XIAO ESP32S3 with two different type of OLED display. They should be easily modifiable to fit any ESPHome compatible XIAO microcontrollers and displays.

Notes

Potential Modifications

  • The XIAO microcontroller is currently soldered at the front of the PCB making the OLED display require a double stacked header for clearance as well as force the use of switches with extended stem. Moving it to the back of the PCB would allow for everything in the front to be made smaller but would make access to the battery pads on the back of the XIAO more difficult.
  • Adding some sort of STEMMA QT / Qwiic connector to the back of the PCB would make it easier to integration some sensors.

License

This design is licensed under the CERN Open Hardware Licence Version 2 – Strongly Reciprocal (CERN-OHL-S-2.0).

You are free to use, modify, and distribute this design for any purpose, provided that:

  • Attribution: Appropriate credit is given, a link to the license is provided, and any modifications are clearly indicated.
  • Reciprocity: Any derivative works must be released under the same license.

If you are a retailer or business interested in producing or selling this design or related products, I’d love to discuss it! Please feel free to reach out so we can explore potential arrangements.

Footnotes

  1. You can select any PCB color you want but some manufacturers such as JLCPCB may charge you more for uncommon combos (such as Blue PCB + ENIG Surface Finish).

  2. JLCPCB specific option, a pre-configured footprint has been added for a serial number to be printed on the back of the PCB.

  3. The "HASL (with lead)" option is extremely discouraged due to the risk of lead poisoning. We strongly recommend paying the premium for the "Lead Free HASL" option.

About

XIAO base board PCB & configuration for ESPHome based sensors

License:CERN Open Hardware Licence Version 2 - Strongly Reciprocal


Languages

Language:KiCad Layout 79.3%Language:KiCad Schematic 20.1%Language:Shell 0.3%Language:Makefile 0.2%