Download PDF
      SAMOVAR                                  
×
Menu

ESP32 mounting

 
 
Many peripheral devices are connected to the ESP32. So the ESP32 has to be placed and the connections organized.

 
Important. The pinout and the printed circuit board version 1.3.2 given below apply to the ESP32 DevKit V1 30 pin. For LILYGO T-Relay 4 (the environment Samovar, the board is selected in the configurator) and ESP32-S3 (the environment Samovar_s3) use the pinout from Samovar_pin.h; the 1.3.2 board does not physically fit them.
ESP32 pin limitations. The GPIO34–39 pins are input-only and have no internal pull-ups: for the emergency button (D35), the universal button (D39) and the flow sensor (D36) an external 10 kΩ resistor to 3.3 V is mandatory, otherwise there will be false triggering and an emergency stop right after power-up. These resistors are already provided on the printed circuit board. Run the wires to the flow sensor separately from the heating element power cables. Pin D15 (relay No. 2, stirrer) is pulled up in hardware at reset — the relay on it switches on briefly at every boot; use an active-low module, the relay polarity is set in the Samovar settings (relay 1–4 fields). The I2C bus pull-ups (display, pressure sensor, I2CStepper) are 4.7–10 kΩ.
 
Using the printed circuit board.
 
A special printed circuit board was developed for using the ESP32_30pin  with Samovar. The following is installed on it:
C3, C4 - electrolytic capacitors 500 µF × 16 V (or 1000 × 16)
Note
The recommendations give values with a large voltage margin. With a voltage margin, even a not very good electrolytic capacitor will last longer and work more reliably.
But if you want to and are sure of your components, you can:
rate C1, C2 for 16 volts
C3, C4 - for 6.3 volts.
Resistors: R1-R3 = 10 kΩ, R4 = 4.7 kΩ . All  0.125 watt.
It is recommended to install all the elements on the board right away:  the buzzer, the atmospheric pressure sensor, resistors and capacitors, the pin header for the stepper driver, switches and connectors. Even if you do not plan to use some of the equipment at the moment. Later this will make it much easier to expand Samovar's capabilities.
 
 
 
 
Mounting locations and elements:
 
Where to get the board?
 
You can change:
- the number of boards - a multiple of 5  (you cannot order fewer than 5).
- the solder mask color - this is the color of the board. Choose green or blue. Other colors may cost extra.
Click generate Gerber. The created file will be saved to your computer as a zip archive.
Now you need to order manufacturing.
There are plenty of services that manufacture and, most importantly, ship. For example
nextpcb.com    there are instructions on the site or on the internet, payment via AliExpress.
Or go straight to AliExpress and type in the search  "custom printed circuit board manufacturing". Seller offers will appear. Choose by reviews.
The ordering principle is the same - you send the seller the whole
Gerber archive (if the file name is in Cyrillic  - rename it to Latin). The seller determines the price and tells you.  If it suits you, you pay - and in about a month you have the printed circuit boards.
The cost of 5 boards with delivery is approximately 15-20 USD.
 
Using a breadboard (shield)
 
A special board is made for the ESP32 (ESP32 Shield 30Pin breadboard expansion board) that allows quick prototyping of various devices. It looks like this:
 
 
The shield already has a 16...6.5-5v power converter and USB connectors - 5  volt power. The ESP32 is inserted into a female pin header, and the peripherals are connected to the pins (male header). All wiring has to be done with wires; the resistors and some of the capacitors are soldered either on the shield itself or on the enclosure connectors.
Using a shield is a decent solution, and quite inexpensive. But for the final assembly it is highly desirable to solder all wires rather than leave them on detachable connections, otherwise failures will follow one after another.
Shields are also made for ESP32_38 pin. boards, which lets you use an ESP32 with 38 pins too.
 
 
Using a soldering breadboard.
 
You can use a printed prototyping board designed for soldering components. (A printed circuit board prototype, breadboard, universal board)
 
 
All the elements can be placed on such a board, and there will even be room left for future upgrades. But working with such a board requires certain skills. A warning - building a Samovar on such a board is not exactly easy.
Nevertheless, the project can be implemented this way.
 
An example of building Samovar on such a breadboard:
 
 
 
Assembly without  a board
 
And finally the last option - without any printed circuit boards. Point-to-point wiring.
A label with the pin designations is printed on a printer and glued to the underside of the ESP32, which is turned upside down and screwed to the enclosure on standoffs (for cooling). The wires are attached to the ESP32 pins with connectors such as
Dupont.
An example of an implementation:
 
 
Recommendations:
-  Having a printed circuit board makes assembly and the subsequent setup much easier. But most importantly, it spares you most of the problems caused by possible mistakes and poor connections between the ESP32 and the peripherals.
- If you want to start building, but nobody has shared a special printed circuit board and you do not want to order manufacturing yourself - using a shield is the most acceptable option.