ESP32 Mini Battery-Powered OLED Display with RTC and Potentiometer Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as an OLED display, a TP4056 battery charger, a LiPoly battery, an RTC module, a voltage regulator, a potentiometer, a pushbutton, an aluminum sheet, and an ESP32 microcontroller. The circuit is designed to interface these components to achieve a specific functionality, which is controlled by the ESP32 microcontroller.
Component List
0.96" OLED
- Description: OLED display module
- Pins: GND, VDD, SCK, SDA
TP4056
- Description: Lithium battery charger module
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
LiPoly Battery (1300mAh)
- Description: Lithium Polymer battery
- Pins: positive, negative
RTC DS3231
- Description: Real-Time Clock module
- Pins: 32K, SQW, SCL, SDA, VCC, GND
LM2596
- Description: DC-DC buck converter
- Pins: IN, OUT
ams1117 3.3
- Description: 3.3V voltage regulator
- Pins: VIN, OUT, GND
Rotary Potentiometer
- Description: Variable resistor
- Pins: leg1, wiper, leg2
- Properties: Resistance: 10000 Ohms
Red Pushbutton
- Description: Pushbutton switch
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
Aluminum Sheet
- Description: Conductive sheet
- Pins: -, +
ESP32 Mini
- Description: Microcontroller module
- Pins: GND, GPIO27, GPIO25, GPIO32, TDI, GPIO4, GPIO0, GPIO2, SD1, CLK, RXD, TXD, GPIO22, GPIO21, GPIO17, GPIO16, VCC, TD0, SD0, RST, SVP, GPIO26, GPIO18, GPIO19, GPIO23, GPIO5, 3.3V, TCK, SD3, NC, SVN, GPIO35, GPIO33, GPIO34, TMS, SD2
Wiring Details
0.96" OLED
GND is connected to:
- GND of ESP32 Mini
- GND of RTC DS3231
- GND of Red Pushbutton
VDD is connected to:
- 3.3V of ESP32 Mini
- VCC of RTC DS3231
SCK is connected to:
- GPIO25 of ESP32 Mini
- GPIO22 of ESP32 Mini
- SCL of RTC DS3231
-
- of Aluminum Sheet
SDA is connected to:
- GPIO32 of ESP32 Mini
- GPIO21 of ESP32 Mini
- SDA of RTC DS3231
TP4056
OUT- is connected to:
- GND of ams1117 3.3
- GND of ESP32 Mini
- Pin 1 of Red Pushbutton
B- is connected to:
- negative of LiPoly Battery (1300mAh)
B+ is connected to:
- positive of LiPoly Battery (1300mAh)
OUT+ is connected to:
- IN of LM2596
LiPoly Battery (1300mAh)
positive is connected to:
- B+ of TP4056
negative is connected to:
- B- of TP4056
RTC DS3231
GND is connected to:
- GND of ESP32 Mini
- GND of 0.96" OLED
- GND of Red Pushbutton
VCC is connected to:
- 3.3V of ESP32 Mini
- VDD of 0.96" OLED
SCL is connected to:
- GPIO25 of ESP32 Mini
- GPIO22 of ESP32 Mini
- SCK of 0.96" OLED
-
- of Aluminum Sheet
SDA is connected to:
- GPIO32 of ESP32 Mini
- GPIO21 of ESP32 Mini
- SDA of 0.96" OLED
LM2596
IN is connected to:
- OUT+ of TP4056
OUT is connected to:
- VIN of ams1117 3.3
ams1117 3.3
VIN is connected to:
- OUT of LM2596
OUT is connected to:
- GPIO2 of ESP32 Mini
- VCC of ESP32 Mini
GND is connected to:
- OUT- of TP4056
- GND of ESP32 Mini
- Pin 1 of Red Pushbutton
Rotary Potentiometer
leg1 is connected to:
- 3.3V of ESP32 Mini
- VDD of 0.96" OLED
- VCC of RTC DS3231
wiper is connected to:
- GPIO23 of ESP32 Mini
- GPIO34 of ESP32 Mini
leg2 is connected to:
- GND of ESP32 Mini
- TXD of ESP32 Mini
Red Pushbutton
Pin 2 is connected to:
- RST of ESP32 Mini
- GND of ESP32 Mini
- GND of 0.96" OLED
- GND of RTC DS3231
Pin 1 is connected to:
- GND of ams1117 3.3
- OUT- of TP4056
Aluminum Sheet
- + is connected to:
- GPIO27 of ESP32 Mini
- RXD of ESP32 Mini
- GPIO25 of ESP32 Mini
- GPIO22 of ESP32 Mini
- SCK of 0.96" OLED
- SCL of RTC DS3231
Documented Code
ESP32 Mini Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt