Skip to content

Commit 724110a

Browse files
authored
docs: draw ESP32 wiring schematic as svgbob diagrams (#236)
1 parent 78b1029 commit 724110a

2 files changed

Lines changed: 133 additions & 94 deletions

File tree

‎docs/esp32-complete-wiring-schematic.de.md‎

Lines changed: 66 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -35,53 +35,72 @@ Die verwendeten Standard-Pins in der Firmware sind:
3535
- 1x Netzteil 5V DC (ausreichend dimensioniert)
3636
- Verdrahtungskabel, Klemmen, ggf. Sicherung/Schutzbeschaltung auf Lastseite
3737

38-
## 2) Komplett-Schaltplan (Textdarstellung)
39-
40-
```text
41-
+----------------------------------+
42-
| ESP32 |
43-
| |
44-
| DS18B20 Solar DATA ---- GPIO32 |
45-
| DS18B20 Pool DATA ---- GPIO33 |
46-
| Relay IN1 (Pool) ----- GPIO25 |
47-
| Relay IN2 (Solar) ----- GPIO26 |
48-
| RTC SDA --------------- GPIO21 |
49-
| RTC SCL --------------- GPIO22 |
50-
| 3V3 ------------------- 3V3 |
51-
| GND ------------------- GND |
52-
+----------------+-----------------+
53-
|
54-
| gemeinsame Masse (GND)
55-
v
56-
+----------------------+ +------------------------------+
57-
| DS18B20 Solar | | DS18B20 Pool |
58-
| VDD -> 3V3 | | VDD -> 3V3 |
59-
| GND -> GND | | GND -> GND |
60-
| DATA -> GPIO32 | | DATA -> GPIO33 |
61-
+----------+-----------+ +----------+-------------------+
62-
| |
63-
+--[4.7kΩ]---> 3V3 +--[4.7kΩ]---> 3V3
64-
65-
+----------------------------------+
66-
| 2-Kanal Relaismodul (5V, opto) |
67-
| IN1 <- GPIO25 |
68-
| IN2 <- GPIO26 |
69-
| VCC <- 5V (oder Modul-Logik) |
70-
| JD-VCC <- 5V (falls getrennt) |
71-
| GND <- GND |
72-
+----------------+-----------------+
73-
|
74-
| Schaltkontakte
75-
v
76-
Pool-Pumpe / Solar-Pumpe (AC)
77-
78-
+--------------------------------------+
79-
| RTC DS3231 (optional, Uhr) |
80-
| VCC <- 3V3 (oder 5V je Modultyp) |
81-
| GND <- GND |
82-
| SDA <- GPIO21 |
83-
| SCL <- GPIO22 |
84-
+--------------------------------------+
38+
## 2) Komplett-Schaltplan
39+
40+
### Sensoren (DS18B20, 4,7kΩ Pull-up zwischen DATA und 3V3)
41+
42+
Jeder Sensor hat eigene Leitungen für DATA, VDD und GND. Der 4,7kΩ-Widerstand ist die einzige Verbindung zwischen DATA und 3V3.
43+
44+
```svgbob
45+
.---------------------. .--------------------.
46+
| ESP32 | | DS18B20 Solar |
47+
| | | |
48+
| GPIO32 o--+----*--------+--o DATA |
49+
| | | | |
50+
| | .--+--. | |
51+
| | |4.7k | | |
52+
| | '--+--' | |
53+
| | | | |
54+
| 3V3 o--+----*--------+--o VDD |
55+
| | | |
56+
| GND o--+-------------+--o GND |
57+
'---------------------' '--------------------'
58+
```
59+
60+
```svgbob
61+
.---------------------. .--------------------.
62+
| ESP32 | | DS18B20 Pool |
63+
| | | |
64+
| GPIO33 o--+----*--------+--o DATA |
65+
| | | | |
66+
| | .--+--. | |
67+
| | |4.7k | | |
68+
| | '--+--' | |
69+
| | | | |
70+
| 3V3 o--+----*--------+--o VDD |
71+
| | | |
72+
| GND o--+-------------+--o GND |
73+
'---------------------' '--------------------'
74+
```
75+
76+
### Relaismodul
77+
78+
Die Relaiskontakte schalten den Pumpenstromkreis (230V AC). Er ist nicht Teil dieser Niederspannungszeichnung, siehe [Elektrische Sicherheit](/docs/electrical-safety/).
79+
80+
```svgbob
81+
.---------------------. .--------------------.
82+
| ESP32 | | Relaismodul |
83+
| | | 2 Kanal, 5V |
84+
| GPIO25 o--+--------+--o IN1 |
85+
| GPIO26 o--+--------+--o IN2 |
86+
| 5V o--+--------+--o VCC |
87+
| GND o--+--------+--o GND |
88+
'---------------------' '--------------------'
89+
```
90+
91+
### RTC DS3231 (optional)
92+
93+
Die RTC wird je nach Modultyp mit 3V3 oder 5V versorgt.
94+
95+
```svgbob
96+
.---------------------. .--------------------.
97+
| ESP32 | | RTC DS3231 |
98+
| | | |
99+
| GPIO21 o--+--------+--o SDA |
100+
| GPIO22 o--+--------+--o SCL |
101+
| 3V3 o--+--------+--o VCC |
102+
| GND o--+--------+--o GND |
103+
'---------------------' '--------------------'
85104
```
86105

87106
## 3) Verdrahtungstabelle

‎docs/esp32-complete-wiring-schematic.md‎

Lines changed: 67 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -35,53 +35,73 @@ The standard pins used in the firmware are:
3535
- 1x Power Supply 5V DC (sufficiently rated)
3636
- Wiring cables, terminals, optionally fuse/protection circuit on load side
3737

38-
## 2) Complete Schematic (Text Representation)
39-
40-
```text
41-
+----------------------------------+
42-
| ESP32 |
43-
| |
44-
| DS18B20 Solar DATA ---- GPIO32 |
45-
| DS18B20 Pool DATA ---- GPIO33 |
46-
| Relay IN1 (Pool) ----- GPIO25 |
47-
| Relay IN2 (Solar) ----- GPIO26 |
48-
| RTC SDA --------------- GPIO21 |
49-
| RTC SCL --------------- GPIO22 |
50-
| 3V3 ------------------- 3V3 |
51-
| GND ------------------- GND |
52-
+----------------+-----------------+
53-
|
54-
| common ground (GND)
55-
v
56-
+----------------------+ +------------------------------+
57-
| DS18B20 Solar | | DS18B20 Pool |
58-
| VDD -> 3V3 | | VDD -> 3V3 |
59-
| GND -> GND | | GND -> GND |
60-
| DATA -> GPIO32 | | DATA -> GPIO33 |
61-
+----------+-----------+ +----------+-------------------+
62-
| |
63-
+--[4.7kΩ]---> 3V3 +--[4.7kΩ]---> 3V3
64-
65-
+----------------------------------+
66-
| 2-Channel Relay Module (5V, opto)|
67-
| IN1 <- GPIO25 |
68-
| IN2 <- GPIO26 |
69-
| VCC <- 5V (or module logic) |
70-
| JD-VCC <- 5V (if separate) |
71-
| GND <- GND |
72-
+----------------+-----------------+
73-
|
74-
| Switching contacts
75-
v
76-
Pool Pump / Solar Pump (AC)
77-
78-
+--------------------------------------+
79-
| RTC DS3231 (optional, clock) |
80-
| VCC <- 3V3 (or 5V depending on module type) |
81-
| GND <- GND |
82-
| SDA <- GPIO21 |
83-
| SCL <- GPIO22 |
84-
+--------------------------------------+
38+
## 2) Complete Schematic
39+
40+
### Sensors (DS18B20, 4.7kΩ pull-up between DATA and 3V3)
41+
42+
Each sensor has its own wire for DATA, VDD and GND. The 4.7kΩ resistor is the only link between DATA and 3V3.
43+
44+
```svgbob
45+
.---------------------. .--------------------.
46+
| ESP32 | | DS18B20 Solar |
47+
| | | |
48+
| GPIO32 o--+----*--------+--o DATA |
49+
| | | | |
50+
| | .--+--. | |
51+
| | |4.7k | | |
52+
| | '--+--' | |
53+
| | | | |
54+
| 3V3 o--+----*--------+--o VDD |
55+
| | | |
56+
| GND o--+-------------+--o GND |
57+
'---------------------' '--------------------'
58+
```
59+
60+
```svgbob
61+
.---------------------. .--------------------.
62+
| ESP32 | | DS18B20 Pool |
63+
| | | |
64+
| GPIO33 o--+----*--------+--o DATA |
65+
| | | | |
66+
| | .--+--. | |
67+
| | |4.7k | | |
68+
| | '--+--' | |
69+
| | | | |
70+
| 3V3 o--+----*--------+--o VDD |
71+
| | | |
72+
| GND o--+-------------+--o GND |
73+
'---------------------' '--------------------'
74+
```
75+
76+
### Relay module
77+
78+
The relay contacts switch the pump circuit (230V AC).
79+
It is not part of this low-voltage drawing; see the [Electrical Safety](/docs/electrical-safety/) guide.
80+
81+
```svgbob
82+
.---------------------. .--------------------.
83+
| ESP32 | | Relay module |
84+
| | | 2 channels, 5V |
85+
| GPIO25 o--+--------+--o IN1 |
86+
| GPIO26 o--+--------+--o IN2 |
87+
| 5V o--+--------+--o VCC |
88+
| GND o--+--------+--o GND |
89+
'---------------------' '--------------------'
90+
```
91+
92+
### RTC DS3231 (optional)
93+
94+
Supply the RTC with 3V3 or 5V, depending on the module type.
95+
96+
```svgbob
97+
.---------------------. .--------------------.
98+
| ESP32 | | RTC DS3231 |
99+
| | | |
100+
| GPIO21 o--+--------+--o SDA |
101+
| GPIO22 o--+--------+--o SCL |
102+
| 3V3 o--+--------+--o VCC |
103+
| GND o--+--------+--o GND |
104+
'---------------------' '--------------------'
85105
```
86106

87107
## 3) Wiring Table

0 commit comments

Comments
 (0)