Skip to the content
2 layers73.4 × 51.8 mmAuraSync v2, the printed circuit board in 3D

Streams live audio level and recognised commands from the ESP32-S3 over USB serial.

Size
73.4 × 51.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
22
Pads
45
Tracks, vias
75, 0
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
7 Apr 2026
Updated
2 Jun 2026

Overview

AuraSync v2 is an open-source printed circuit board by TongSUE, from the TongSUE/TECHIN-515-Team6 repository on GitHub. It is a 2-layer board of 73.4 × 51.8 mm with 9 parts on 22 nets, routed with 75 tracks and 0 vias.

It is built around the ESP32-S3R8, BME680 and MT3608. Its parts include 5 ICs, 1 resistor, 1 transistor and 1 connector. It belongs with the ESP32 boards of this library.

Main components

3

README

README.md

AuraSync — Context-Aware Scent Diffuser

AuraSync automatically detects bathroom context (shower, odor, presence) via sensor fusion and triggers a fragrance diffuser at the right moment — no manual input required.

Devlog: tongsue.github.io/TECHIN-515-Team6
Course: TECHIN 515 Hardware-Software Lab II, UW, Spring 2026
Team: Yutong Luo (@TongSUE) · Lucia Shen (@xtshen777)


Hardware

ComponentRole
Seeed XIAO ESP32-S3MCU — dual-core, 8 MB PSRAM, native I2S
Adafruit SPH0645LM4HI2S MEMS microphone — voice recognition
HC-SR501 PIRPresence detection — triggers actuation
Adafruit BME680Temp / humidity / pressure / VOC (I2C 0x77)
Ultrasonic atomizer + 2N2222 NPNFragrance mist actuation
MT3608 boost converter + 3.7 V LiPoPower supply

Pin Assignments

FunctionArduino PinGPIO
I2C SDA (BME680)D45
I2C SCL (BME680)D56
I2S BCLK (SPH0645)D87
I2S LRCLK (SPH0645)D98
I2S DOUT (SPH0645)D109
PIR signal (HC-SR501)—4
Atomizer MOSFET gate—5
Status LEDD021

SPH0645: SEL pin → GND (left channel). Data in bits [31:14] of 32-bit I2S frame.
BME680: use Wire.begin() with no arguments — the framework maps D4/D5 by default.


Repository Layout

text
Web/                          ← git root (this repo)
├── Code/
│   ├── AuraSync/             ← main firmware (two-layer state machine)
│   │   ├── AuraSync.ino
│   │   ├── partitions.csv    ← custom flash layout (app0 3.7 MB + model SPIFFS 4.25 MB)
│   │   └── secrets.h.example ← copy to secrets.h and fill in credentials
│   ├── VoiceTest/            ← ESP-SR voice recognition prototype
│   │   └── voice_monitor.html← Web Serial browser monitor
│   ├── FirebaseTest/         ← VoiceTest + Firebase Realtime Database
│   ├── MicTest/              ← SPH0645 bring-up / VAD test
│   ├── PIRTest/              ← PIR motion-triggered spray controller
│   └── PsramTest/            ← PSRAM validation
├── KiCAD/AuraSync_v1/        ← schematic + PCB layout (KiCAD 9)
├── monitor/
│   ├── voice_monitor.py      ← real-time serial monitor (USB, Streamlit)
│   ├── firebase_dashboard.py ← cloud dashboard (reads Firebase, no USB needed)
│   └── requirements.txt
├── web-devlog/               ← React + Vite devlog site
└── README.md

Flashing AuraSync (Main Firmware)

  1. Copy Code/AuraSync/secrets.h.example → Code/AuraSync/secrets.h and fill in your WiFi + Firebase credentials
  2. Open Code/AuraSync/AuraSync.ino in Arduino IDE
  3. Tools → Board: Seeed XIAO ESP32-S3
  4. Tools → PSRAM: OPI PSRAM
  5. Tools → Partition Scheme: Huge APP (3MB No OTA / 1MB SPIFFS)
  6. Run Code/VoiceTest/flash_model.ps1 once to write ESP-SR models to flash
  7. Upload AuraSync.ino
  8. Say "Aura" to open the 7-second command window, then "Spray" or "Stop"; PIR presence for ≥ 3 s also triggers spray

Running the Serial Voice Monitor

Streams live audio level and recognised commands from the ESP32-S3 over USB serial.

Requirements: Python 3.9+, ESP32-S3 flashed with VoiceTest.ino or AuraSync.ino, Arduino IDE serial monitor closed.

bash
cd monitor
pip install -r requirements.txt
streamlit run voice_monitor.py

Opens at http://localhost:8501. The app auto-detects the COM port — no configuration needed.


Running the Firebase Cloud Dashboard

Reads spray events from Firebase Realtime Database — no USB connection required.

bash
cd monitor
pip install -r requirements.txt
streamlit run firebase_dashboard.py

Opens at http://localhost:8502. Supports dark/light mode toggle; auto-refreshes every 5 seconds.


Flashing VoiceTest (Voice Recognition Prototype)

  1. Open Code/VoiceTest/VoiceTest.ino in Arduino IDE
  2. Tools → Board: Seeed XIAO ESP32-S3
  3. Tools → PSRAM: OPI PSRAM
  4. Tools → Partition Scheme: Huge APP (3MB No OTA / 1MB SPIFFS)
  5. Run Code/VoiceTest/flash_model.ps1 once to write ESP-SR models to flash
  6. Upload VoiceTest.ino
  7. Say "Aura" to open the 7-second command window, then "Spray" or "Stop"

Firmware Overview

Code/AuraSync/AuraSync.ino — Main firmware (Week 4+)

Two-layer state machine, non-blocking (millis() only, no delay() in main loop):

Layer 1 — System Mode (PIR-driven presence):

text
MODE_SLEEP  ──PIR detected──▶  MODE_AWAKE
MODE_AWAKE  ──60 s no PIR──▶  MODE_SLEEP

Layer 2 — Spray State (shared absolute cooldown):

text
SPRAY_IDLE → SPRAY_SPRAYING (5 s) → SPRAY_COOLDOWN (20 s test / 3 min prod) → SPRAY_IDLE

Four-priority trigger model: P1 voice/app (bypasses cooldown, works in SLEEP) → P2 extreme VOC < 10 kΩ (works in SLEEP, queues during cooldown) → P3 PIR + VOC inflection (AWAKE + IDLE only).

FreeRTOS dual-core: I2S + ESP-SR on Core 1 at max priority; PIR, state machine, Firebase, BME680 on Core 0. Power saving: WiFi.setSleep(WIFI_PS_MAX_MODEM) + Core 0 throttle in SLEEP mode (~30 mA idle from 2000 mAh LiPo ≈ 60–70 h).

Code/VoiceTest/VoiceTest.ino — Voice recognition prototype

ESP-SR AFE + MultiNet v7 on FreeRTOS Core 1. Wake-word state machine:

text
IDLE → (say "Aura") → LISTENING [7 s] → (say "Spray"/"Stop") → IDLE

Code/FirebaseTest/FirebaseTest.ino — Voice + Firebase

Extends VoiceTest: SR task (Core 1) → FreeRTOS queue → loop() (Core 0) → Firebase.RTDB.pushJSON(). Auth via database-secret legacy token; NTP time sync at boot.


Devlog Site

Built with React 19 + Vite. Auto-deployed to GitHub Pages.

bash
cd web-devlog
npm install
npm run dev       # local preview
npm run build     # production build

Parts

9
QtyValueFootprintReferences
11kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
12N2222Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalQ1
1AtomizerConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalAtomizer-1
1BME680Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalU3
1BatteryConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ1
1ESP32S3ESP32_Xiao_Seeed_GIX:XIAO_ESP32U1
1HC-SR501PIRConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalU4
1MT3608AuraSync:MT3608U2
1SPH0645_MicConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalU5

Similar boards

  • 4 layers74.5 × 70.3 mmNest mini v2-drop in pcb, the printed circuit board in 3D

    Nest mini v2-drop in pcb

    iMike78/nest-mini-drop-in-pcb

    Drop-in PCB replacement for the Google Nest Mini v2 with ESP32-S3, ESP32-P4 and optional ESP32-C6. Inspired by Onju Voice and Home Assistant Voice PE.

    229 parts628CERN-OHL-S-2.0
  • 2 layers39.5 × 50.7 mmMeterReadouts, the printed circuit board in 3D

    MeterReadouts

    ryanhulke/nuclear-fusor

    Open-source hardware, embedded software, and control panel software for nuclear fusor operation.

    22 parts21MIT
  • 4 layers54.7 × 75.8 mmEsphome dot, the printed circuit board in 3D

    Esphome dot

    gcormier/esphome-dot

    Beginnings of a replacement PCB for Amazon Echo Dot v5.

    62 parts16
  • 4 layersCABadge V2 1, the printed circuit board in 3D

    CABadge V2 1

    nbtca/CABadge

    CABadge 计协电子吧唧:基于 ESP32-S3 的开源圆屏互动徽章,支持动态壁纸、触摸交互、Wi-Fi/BLE 和趣味小应用,提供 PCB、3D 打印外壳、固件及配套工具。

    110 parts15MIT
  • 4 layers60.6 × 27.6 mmDisplay pcb, the printed circuit board in 3D

    Display pcb

    HW-Lab-Hardware-Design-Agency/WebScreen-PCB

    WebScreen PCB designs, BOM and other manufacturing files.

    93 parts13CERN-OHL-P-2.0
  • 4 layers23 × 42 mmESP32S3 M.2 Board, the printed circuit board in 3D

    ESP32S3 M.2 Board

    ItsNotDaan/LiberBoard

    LiberBoard: An open-source, modular platform for learning electronics. Offers LiBo ARM-based PCBs and add-on boards with practical exercises and code snippets. Designed for easy learning and project creation.

    69 parts8CERN-OHL-P-2.0
  • 4 layers74.5 × 70.3 mmNest mini v2-drop in pcb, the printed circuit board in 3D

    Nest mini v2-drop in pcb

    marceldale/nest-mini-v2-voice

    Open voice satellite board for the Google Nest Mini (2nd gen): local Home Assistant voice assistant with ESP32-S3 + XMOS XU316, ESPHome, Voice PE compatible. Open hardware, prototype stage.

    249 parts4CERN-OHL-S-2.0

Questions

How big is the AuraSync v2 PCB?

It measures 73.4 × 51.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AuraSync v2 use?

9 parts, built around the ESP32-S3R8, BME680 and MT3608. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the AuraSync v2 KiCad files?

From the TongSUE/TECHIN-515-Team6 repository on GitHub, at the commit this page was made from: the board is KiCAD/AuraSync_v2/AuraSync_v2.kicad_pcb and its schematic KiCAD/AuraSync_v1/AuraSync_v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AuraSync v2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask TongSUE before reusing the design.