Here you will find the firmware and schematic for a smart relay compatible with Apple Home. For any questions, feel free to contact me on my Telegram channel.
Components used
- Arduino relay module - 1 pc.
- ESP32C3FN4 Super Mini - 1 pc.
- 5V 1A power supply - 1 pc.
- 3000mF x 6.3V capacitor - 1 pc.
- 2N2904 transistor - 1 pc.
- 1K resistor - 1 pc.
- 220 Ohm resistor - 1 pc.
Arduino libraries used
- esp32 by Espressif Systems (board) 3.3.7
- HomeSpan 2.1.7
Arduino IDE settings
- Board: ESP32C3 Dev BModule
- ESP CDC On Boot: Enabled
- CPU Frequency: 80MHz (WiFi)
- Core Debug Level: None
- Erase All Flash Before Sketch Upload: Disabled
- Flash frequency: 80Mhz
- Flash Mode: QIO
- Flash Size: 4MB (32Mb)
- JTAG Adapter: Disabled
- Partition Scheme: Huge APP (3MB No OTA/1MB SPIFFS)
- Upload Speed: 921600
- Zigbee Mode: Disabled
- Programmer: Esptool