Reloj ESPUI_MAX ESP32

by jcherreradev in Circuits > Microcontrollers

19 Views, 0 Favorites, 0 Comments

Reloj ESPUI_MAX ESP32

Clip.gif
img2.jpg

It consists of a digital clock developed with an ESP32, using a MAX7219 display and an interactive web interface with ESPUI. It includes various functions to display time, temperature, humidity, custom messages, and control advanced settings such as alarms and animations.

Features

  1. On-screen display:
  2. Current time synchronized by NTP or RTC.
  3. Real-time temperature and humidity.
  4. Alarm: Configurable from the web interface.
  5. Change of views with clapping: Detects sounds through a microphone.
  6. WiFi connection: Works in the following modes:
  7. Station (STA): Connects to an existing WiFi network for NTP synchronization and access to the web interface.
  8. Access Point (AP): Creates an access point for accessing the web interface.
  9. Web Interface (ESPUI):
  10. Time settings.
  11. Animation mode selection.
  12. Alarm programming.
  13. Display custom messages.
  14. WiFi credentials configuration.

To access the web portal: http://espui.local

Supplies

Reloj_ESPUI_MAX_ESP32.jpg
Schematic_Reloj_ESPUI_MAX.png

Hardware

  1. x1 ESP32 Dev Module
  2. x1 8x32 MAX7219 matrix display
  3. x1 DHT22 sensor module
  4. x1 DS3231 RTC module (optional)
  5. x1 KY-037 microphone module
  6. x1 4CH logic converter module
  7. x1 Piezoelectric buzzer
  8. x1 NPN transistor BC548
  9. x1 Momentary push button
  10. x2 1 kΩ resistor

Environment Configuration

Software

  1. IDE: Arduino v2.3.x
  2. Framework: Arduino ESP32 v2.0.17
  3. Board: ESP32 Dev Module
  4. Partition: Default 4MB with spiffs(1.2MB APP/1.5MB SPIFFS)

Libraries

  1. ESPUI: v2.2.4
  2. MD_Parola: v3.7.3
  3. RTClib: v2.1.4
  4. DHT sensor library: v1.4.6
  5. ESPAsyncWebServer: v3.1.0
  6. ArduinoJson: v6.21. 5

GUI

1.png
2.png
6.png
5.png
4.png
3.png

Configuration

  1. Connect to WiFi network
  2. By default, the ESP32 will attempt to connect to the last configured WiFi network.
  3. If it does not find the network, it will create a WiFi access point called `ESPUI-MAX`.
  4. Search for the WiFi network from your PC or mobile and connect to it.
  5. Access the web interface
  6. If the ESP32 is in Access Point mode, open your browser and enter the address: http://192.168.6.1
  7. If it is connected to your WiFi network, you can access it from: http://espui.local or by using the IP displayed on the serial monitor.
  8. Configure the WiFi network
  9. From the WiFi tab in the web interface, enter the SSID and PASSWORD for your WiFi network.

Code