
Noisemeter
CivicTechTO/tRacket-sensor
Design files and source code for the tRacket noise sensor

ESP32-C3 based two-node BLE proximity detection system with custom PCB, RSSI-based distance estimation, and proximity alerting.
Locket is an open-source printed circuit board by Mikoyan707, from the Mikoyan707/BLE-Proximity-Device repository on GitHub, published under the MIT licence. It is a 2-layer board with 18 parts on 38 nets, routed with 245 tracks and 38 vias.
It is built around the ESP32-C3-MINI-1-N4 and AP2112K-3.3. Its parts include 5 capacitors, 5 resistors, 2 ICs, 2 switches and 1 diode. It belongs with the radio and wireless boards and the ESP32 and RISC-V boards of this library.
A two-node Bluetooth Low Energy (BLE) proximity detection system based on the ESP32-C3, designed to detect when two dedicated devices come within a defined proximity range.
The project combines a custom-designed PCB with ESP32-C3 BLE communication and an RSSI-based proximity detection algorithm. Each device continuously scans for its counterpart and uses the received BLE signal strength to determine whether the other device has entered the configured proximity region.
Project Status: Hardware design completed. Firmware development, RSSI calibration, and physical testing are in progress.
The system consists of two identical BLE-enabled devices.
Each device:
The system is intended to operate without requiring a smartphone or external gateway.
BLE Proximity Link
Device A Device B
┌─────────────┐ ┌─────────────┐
│ ESP32-C3 │ │ ESP32-C3 │
│ │ │ │
│ Advertise │◄────────►│ Advertise │
│ Scan │ BLE │ Scan │
│ RSSI │ │ RSSI │
│ Processing │ │ Processing │
└──────┬──────┘ └──────┬──────┘
│ │
▼ ▼
Output OutputThe custom PCB is built around the ESP32-C3-MINI-1-N4 module.
| Component | Function |
|---|---|
| ESP32-C3-MINI-1-N4 | Main MCU and BLE controller |
| CR2032 | Battery supply |
| AP2112K-3.3 | 3.3 V voltage regulator |
| LED | Proximity/status indication |
| Transistor stage | LED/output driving |
| Push buttons | User/control input |
| Decoupling capacitors | Power supply stabilization |
| Resistors | Pull-ups, current limiting and transistor drive |
The complete schematic and PCB design are available in the hardware directory.
The complete KiCad schematic is available at:
hardware/schematic/The repository will contain both the editable KiCad schematic and an exported version for easy viewing.
The PCB has been designed specifically for the ESP32-C3 based proximity device.
hardware/pcb/The directory contains the editable PCB design and exported PCB views.
3D renders of the PCB are provided in:
hardware/3d/These views are intended to document the physical board layout and component placement.
The system uses BLE RSSI as an indicator of relative proximity.
A simplified detection pipeline is:
BLE Advertisement
│
▼
Device Identification
│
▼
RSSI Measurement
│
▼
RSSI Filtering
│
▼
Proximity Decision
│
┌───┴───┐
▼ ▼
NEAR FAR
│ │
▼ ▼
Output Output
ON OFFRSSI is not treated as an exact distance measurement because it is affected by antenna orientation, obstacles, multipath propagation, human-body absorption, and the surrounding environment.
Therefore, the project will use experimental calibration to determine a suitable operating threshold for the intended application.
Firmware development is currently in progress.
The planned firmware architecture consists of separate modules for:
firmware/
├── src/
│ ├── main.cpp
│ ├── ble_proximity.cpp
│ ├── ble_proximity.h
│ ├── proximity.cpp
│ ├── proximity.h
│ ├── led.cpp
│ ├── led.h
│ └── config.h
│
└── platformio.iniThe firmware will progressively implement:
Raw RSSI measurements can fluctuate considerably even when two devices remain stationary.
For this reason, the firmware will process multiple RSSI measurements rather than making a proximity decision from a single sample.
The planned processing chain is:
Raw RSSI
│
▼
Filtering
│
▼
Filtered RSSI
│
▼
Threshold + Hysteresis
│
▼
Proximity StateThe filtering method and threshold values will be finalized after measurements are collected from the actual hardware.
The proximity threshold will be experimentally determined using the completed devices.
Measurements will be collected at different physical separations and under different orientations.
Example measurement format:
| Distance | RSSI |
|---|---|
| 0.5 m | TBD |
| 1.0 m | TBD |
| 1.5 m | TBD |
| 2.0 m | TBD |
| 3.0 m | TBD |
| 4.0 m | TBD |
These values will be replaced with measurements from the physical hardware.
Detailed calibration results will be documented in:
documentation/RSSI_calibration.mdESP32-C3-BLE-Proximity/
│
├── README.md
├── LICENSE
│
├── hardware/
│ ├── schematic/
│ ├── pcb/
│ ├── 3d/
│ └── fabrication/
│
├── firmware/
│ ├── src/
│ └── test/
│
├── documentation/
│
├── images/
│
└── results/The primary proximity estimation method is based on BLE RSSI.
RSSI-based proximity estimation does not provide a universally accurate physical distance because the measured signal strength depends on the environment and device orientation.
Potential sources of variation include:
The final operating threshold will therefore be selected experimentally rather than assuming a fixed RSSI-to-distance relationship.
Potential future developments include:
This project is under active development.
The custom hardware design is being documented first, followed by firmware implementation, RSSI calibration, physical testing, and final performance evaluation.
This project is released under the MIT License.
See LICENSE for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10kohm | Resistor_SMD:R_0805_2012Metric | R1, R2, R4, R5 |
| 2 | 1uF | Capacitor_SMD:C_0805_2012Metric | C4, C5 |
| 2 | SW_Push | Button_Switch_SMD:SW_Push_1P1T_XKB_TS-1187A | SW1, SW2 |
| 1 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 330ohm | Resistor_SMD:R_0805_2012Metric | R3 |
| 1 | 47uF | Capacitor_SMD:C_1206_3216Metric | C1 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U1 |
| 1 | ESP32-C3-MINI-1-N4 | ESP32-C3-MINI-1-N4_custom:XCVR_ESP32-C3-MINI-1-N4 | U2 |
| 1 | LED | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | LIR2032 | Battery:BatteryHolder_Keystone_3034_1x20mm | BT1 |
| 1 | ~ | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | ~ | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |

CivicTechTO/tRacket-sensor
Design files and source code for the tRacket noise sensor


Matyas604/Pocket-lightning-detector
A lightning detector that runs on a battery and fits in your pocket. It records the distance, energy and current time of a lightning strike, and you can then view this data via Bluetooth in mobile app.
joshitha-c/gps-tracker
A compact GPS tracker designed in KiCad, built around the ESP32-C3 microcontroller and u-blox MAX-M10S GNSS receiver.


EnriqueNeyra/Aeroq
An Indoor Air Quality Monitor Powered by ESP32, SCD40, and SEN54

EnriqueNeyra/aether
All-in-one home air quality monitor measuring Temp, Humidity, CO2, VOCs, Particulate Matter, and NOx. Powered by ESP32-C3 running esphome, and built with Home Assistant integration

Mew463/esp32-caliper
It features a built in 150mAh battery and a USB C interface for charging/uploading code.
18 parts, built around the ESP32-C3-MINI-1-N4 and AP2112K-3.3. 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.
From the Mikoyan707/BLE-Proximity-Device repository on GitHub, at the commit this page was made from: the board is hardware/pcb/locket.kicad_pcb and its schematic hardware/schematic/locket.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).