Budget¥57
Components7
Build time≈ 3 h
Difficulty★★★
Bill of Materials (BOM)ESP32 Dev Module

Security & Alarm Design #2452: ESP32-C3, SuperMini, Wi-Fi — BOM, Wiring Diagram & Firmware | Zhiyun Zhizao

Security & Alarm prototype #2452 built on ESP32 with ESP32-C3, SuperMini, Wi-Fi. Complete BOM (7 components, approx ¥57), pin-level wiring, 3D assembly, step tutorial and compilable firmware. Free to view — contact us for a custom variant.

Open in Studio → Contact us for details

Security & Alarm Design #2452: ESP32-C3, SuperMini, Wi-Fi — BOM, Wiring Diagram & Firmware | Zhiyun Zhizao

Bill of Materials (BOM)

Component groupModel / SpecQtyUnitSubtotal
MCU boardESP32-C3 SuperMini Wi-Fi + BLE×1¥13¥13.0
Sensor×1¥4¥4.0
ActuatorLED×1¥3¥3.0
Structure40P /×1¥5¥5.0
StructureM3×1¥6¥6.0
StructureDS3231 RTC I²C×1¥8¥8.0
Power18650 ×2 + TP4056 + 5V×1¥18¥18.0

Pin-level wiring table

ComponentPinMCU pin
MCU boardAOGPIO34
LEDOUTGPIO25

3D assembly view

Step-by-step assembly

  1. 1. Prepare components and tools · 15 min
  2. 2. Bring up the minimal system · 15 min
  3. 3. Connect sensors and verify readings · 20 min
  4. 4. Connect actuators and drivers · 25 min
  5. 5. Add display and interaction · 20 min
  6. 6. Power rails and common ground check · 20 min
  7. 7. Flash the firmware · 40 min
  8. 8. Calibrate and integrate · 25 min
  9. 9. Verify thresholds and logic · 60 min

Firmware code

Arduino C++ · ESP32 Dev Module

/* zz-security-2452 · 厨房水浸监测盒(LED+C3电池无屏定时预警版)
   校调基线:SAMPLE_S=10s / FILTER_N=10 / DEBOUNCE_N=2 / THRESHOLD_PCT=59
   采样与阈值在下方宏定义中修改后重新编译即可,无需改接线 */
/* 厨房水浸监测盒(LED+C3电池无屏定时预警版)
 * 智云智造 AI 工程引擎生成 · 引脚宏与接线图一一对应
 * 板型:ESP32 Dev Module · Arduino IDE 安装对应库后编译上传
 */
#include <Wire.h>

// ---- 引脚宏(引擎按无冲突原则分配)----
#define PIN_SDA 21
#define PIN_SCL 22
#define PIN_WATER_ADC 34
#define PIN_LED 25

// ---- 器件对象 ----

void setup() {
  Serial.begin(115200);
  Wire.begin(PIN_SDA, PIN_SCL);
  pinMode(PIN_WATER_ADC, INPUT);
  pinMode(PIN_LED, OUTPUT); digitalWrite(PIN_LED, LOW);
  Serial.println("[ZYZZ] system ready");
}

void loop() {
  // 1) 采集传感器
  int raw1 = analogRead(PIN_WATER_ADC);  // 水位传感器
  // I²C 器件 实时时钟 地址见数据手册
  // 2) 阈值判断与执行器联动
  // digitalWrite(PIN_LED, condition ? HIGH : LOW);  // 高亮 LED 模组
  Serial.printf("tick %lu\n", millis() / 1000);
  delay(2000);
}

Safety & compliance notes

FAQ

Is this design suitable for beginners?

Difficulty is rated out of 5 with an estimated build time. Follow the wiring table and the step tutorial in order; each step states the expected result before power-on.

Can I swap components or reduce the budget?

Yes — parts with the same bus and voltage are drop-in replacements. Keep separate power rails for high-current loads and update the firmware pin macros to match.

Can it run on battery / outdoors / report to the cloud?

The BOM already encodes the power and connectivity choice shown in the title. For outdoor use add the IP65 enclosure listed; Wi-Fi reporting hooks are reserved in the firmware.

Sensor readings look wrong — what now?

Calibration steps are in the tutorial: compare against a reference, perform two-point calibration for analog probes, and let gas sensors pre-heat before comparing values.

Where is data stored and can I get a custom version?

Local prototypes store data on SD card or serial output; Wi-Fi builds can push to your own server or an IoT platform. Contact us for a customized variant of any design.

Related designs

Security & Alarm View all → · Library →

Contact & Support

Need the full BOM, wiring check or a custom variant of any design? Our engineers reply within one business day.

  • Phone: 13718332793
  • WeChat: ramboding · Official account: 智数大康
  • Email: ddy@aicloudcn.com
  • 北京智云寰球物联网科技有限公司 · 京ICP备14023107号

Contact us for details ↓

Submit your requirement

Your information is only used to reply to this inquiry.