Skip to content
Home » Articles » ESP32 pin descriptions

ESP32 pin descriptions

ESP32 30-pin board pinout — GPIO pin assignments
No.PINConnector – PIN – DevicePurpose
1VIN5V power – input
2GNDground (GND)
3D134CHRELE – Relay No. 4RM2M Boost
4D12SG1 – Speaker Sound, alerts
5D144CHRELE – Relay No. 3Control of the cooling water supply valve (open/close). The water valve opens when the boiler temperature set in the sketch is reached and closes when the power is turned off.
6D27Level – Reflux sensorReflux level
7D26U3 – STEP – Stepper driver Stepper motor control
8D25SERVO1 Servo driveTake-off unit control
9D33U3 – EN – Stepper driver Stepper motor control
10D32U3 – DIR – Stepper driver Stepper motor control
11D35ALARM_BTNEmergency button. Pressing it stops the water supply and cuts the power. You can use it with leak sensors (several can be connected in parallel) or with an ordinary button (which can also be connected in parallel with the leak sensors). It is disabled in the sketch by default. You need to uncomment //#define USE_ALARM_BTN
And pull D35 up to 3.3V with a 10k resistor
12D34LUA_PINThe port is reserved for working with scripts. It can be used to read an analog or a digital signal.
13D39BTN – Button In distillation mode it starts/stops the process. In rectification mode it starts boost, starts programs, pauses take-off (depends on the current Samovar status)
14D36WATERSENSOR – flow sensorWater flow monitoring
15ENNO
16D23ENC1 – KEY – Encoder buttonEncoder, select
17D22BME(BMP) – SCL + LCD1 -SCLAtmospheric pressure sensor + display
18TX0NO
19RX0NO
20D21BME(BMP) – SDA + LCD1 -SDAAtmospheric pressure sensor + display
21D19ENC1 – S2 Encoder
22D18ENC1 – S1Encoder
23D5DS1280 – Temperature sensorsTemperature sensor monitoring
24TX2UART – TXHeating stabilizer control
25RX2UART – RXHeating stabilizer control
26D4SERVO2 – Cooling pump PWMUsed for PWM control of the cooling pump, if one is connected (selected in the sketch), or of the water regulating/bypass valve, if no water pump is used (PWM). In both cases the water temperature set in the sketch is maintained.
27D24CHRELE – Relay No. 1Contactor (on – when heating is on, off – when heating is off), or control of the RM2M – on/off
28D154CHRELE – Relay No. 2In “Beer” mode it is used to switch the stirrer on
29GNDground (GND)
303V33.3V power – output

Leave a Reply