Projects
ESP32 Circuit

Espressif ESP32 Circuit

Overview

This circuit will serve as the communication have a microcontroller with WiFi and BLE (Bluetooth Low Energy) capabilities. It will also have Radio communication capability for data exchange with the other two circuits. This circuit will send all sensor data to the IoT platform or the MQTT broker over WiFi and to the mobile app over BLE. It will receive control signals from the mobile app over BLE and remotely via MQTT over WiFi. It will receive sensor data and send control signals to the other two circuits over Radio communication.

This circuit is not required for the Node-RED variant of the solution since the Nano and Pico circuits will be directly connected with USB cables to the computer running Node-RED which will exchange data with the circuits and the MQTT broker. In this variant there will be no BLE communication with the mobile app.

Components

Component NamePurposeVoltageOuput/Communication
DS3231Real-time clock module3.3VI2C
SX1278 RA-02LoRa communication module3.3VSPI (plus an NSS pin)
OLED DisplayUsed to display data5VI2C
I2C LCD 16x2Used to display data5VI2C
LEDUsed as an indicator5VDigital Out (use a resistor to limit the current)

Circuit Diagram

Assembly

Code