ESP32 4-20mA Sensor
Diode663·ESP32_4-20mA_Sensor
About the ESP32 4-20mA Sensor PCB
ESP32 4-20mA Sensor is an open source ESP32 PCB design by Diode663, published on GitHub under the CERN-OHL-P-2.0 license. It is a 2-layer board measuring 40 × 61 mm, with 47 components from 35 distinct parts.
Its main chip is the ESP32-S3-WROOM-1U-N4, from the ESP32 family. Other key parts include the INA226AIDGSR, AP2112K-3.3TRG1 and MT3608. By type, the board carries 18 resistors, 10 capacitors, 5 diodes, 4 ICs, 4 transistors and 2 connectors.
It belongs with the iot & wireless and sensors designs in this gallery.
From the project
Single-channel industrial 4-20 mA current-loop reader for ESPHome / Home Assistant. ESP32-S3 + INA226, USB-C powered, 24 V loop supply with a constant-current limiter. KiCad 10, generated from Python. Rev G: routed, JLCPCB package included; not yet built.
Single-channel industrial 4-20mA current-loop reader, USB-C powered, built for ESPHome.
Rev G is the result of a second, independent design review (docs/DesignReview2026-09-20secondpass.md). Every circuit change below was simulated first; the decks are in sim/ and run on KiCad's own bundled ngspice.
State: 28 nets / 35 no-connects match the specification exactly, ERC 0 errors, schematic parity clean, placement DRC 4 (all deliberate silk-at-edge) + 5 library-internal, 52 parts + 4 holes + 3 fiducials, BOM 34 lines / 47 placements. Placed and routed - 0 unconnected, DRC unchanged at 4 + 5…
Main components on the ESP32 4-20mA Sensor
ESP32 4-20mA Sensor bill of materials (BOM)
47 components, 35 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | ESP32-S3-WROOM-1U-N4 Espressif | WIFIM-SMD_ESP32-S3-WROOM-1U | U1 |
| 1 | INA226AIDGSR Texas Instruments | MSOP-10_L3.0-W3.0-P0.50-LS5.0-BL | U3 |
| 1 | AP2112K-3.3TRG1 AP2112K-3.3 Diodes Inc | SOT-25-5_L2.9-W1.6-P0.95-LS2.8-BL | U4 |
| 1 | MT3608 Aerosemi | SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BL | U5 |
| 1 | BCP53-16 JSCJ | SOT-223 | Q1 |
| 1 | MMBT5401 JSCJ | SOT-23 | Q2 |
| 1 | AO3401A Alpha & Omega | SOT-23 | Q3 |
| 1 | 2N7002 JSCJ | SOT-23 | Q4 |
| 1 | TYPE-C 16PIN 2MD(073) USB-C Receptacle SHOU HAN | USB-C-SMD_TYPE-C-16PIN-2MD-073 | J1 |
| 1 | KF250NH-5.0-3P 4-20mA Loop Cixi Kefa | CONN-TH_KF250NH-5.0-3P | J2 |
| 1 | KH-6X6X5H-STM RESET Kinghelm | SW-SMD_4P-L6.0-W6.0-P4.50-LS9.0_H5.0 | SW1 |
| 1 | KH-6X6X5H-STM BOOT Kinghelm | SW-SMD_4P-L6.0-W6.0-P4.50-LS9.0_H5.0 | SW2 |
| 1 | NCD0805R1 Power Nationstar | LED_0805_2012Metric | LED1 |
| 1 | USBLC6-2SC6 UMW | SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BL | D1 |
| 1 | SS34 MDD | SMA_L4.3-W2.6-LS5.2-RD | D2 |
| 1 | SMAJ28A Jingdao Microelectronics | SMA_L4.3-W2.6-LS5.2-RD | D3 |
| 1 | 1N4148W ST (Semtech) | D_SOD-123 | D4 |
| 1 | SMAJ12A MDD | SMA_L4.3-W2.6-LS5.2-RD | D5 |
| 1 | FNR4030S220MT 22uH cjiang | IND-SMD_L4.0-W4.0_FNR40XXS | L1 |
| 2 | CL05A105KA5NQNC 1uF Samsung Electro-Mechanics | C_0402_1005Metric | C1, C6 |
Show 15 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | CL21A226MAQNNNE 22uF Samsung Electro-Mechanics | C_0805_2012Metric | C2 |
| 4 | CL05B104KO5NNNC 100nF Samsung Electro-Mechanics | C_0402_1005Metric | C3, C8, C9, C12 |
| 1 | CL10A106KP8NNNC 10uF Samsung Electro-Mechanics | C_0603_1608Metric | C7 |
| 2 | CS3225X7R106K500NRL 10uF/50V Samwha | C_1210_3225Metric | C10, C11 |
| 3 | 0402WGF1002TCE 10k Uniroyal | R_0402_1005Metric | R1, R11, R20 |
| 2 | 0402WGF4701TCE 4.7k Uniroyal | R_0402_1005Metric | R5, R6 |
| 2 | 0402WGF5101TCE 5.1k Uniroyal | R_0402_1005Metric | R7, R8 |
| 1 | 0402WGF3300TCE 330 Uniroyal | R_0402_1005Metric | R9 |
| 2 | FRC0402F3903TS 390k FOJAN | R_0402_1005Metric | R10, R21 |
| 1 | FRC0805F3R32TS 3.32 FOJAN | R_0805_2012Metric | R12 |
| 2 | 0402WGF100JTCE 10 Uniroyal | R_0402_1005Metric | R13, R14 |
| 2 | 0402WGF1003TCE 100k Uniroyal | R_0402_1005Metric | R15, R22 |
| 1 | RC0402FR-0718RL 18 Yageo | R_0402_1005Metric | R16 |
| 1 | 0402WGF4702TCE 47k Uniroyal | R_0402_1005Metric | R17 |
| 1 | 0402WGF1001TCE 1k Uniroyal | R_0402_1005Metric | R18 |
ESP32 4-20mA Sensor design files
The KiCad project lives in the Diode663/ESP32_4-20mA_Sensor repository on GitHub; these links point at the commit this page was built from.
- Layoutesp32-4to20ma-board.kicad_pcb
- Schematicesp32-4to20ma-board.kicad_sch
- BOMbom/bom.csv
ESP32 4-20mA Sensor: common questions
What microcontroller does the ESP32 4-20mA Sensor use?
The ESP32 4-20mA Sensor is built around the ESP32-S3-WROOM-1U-N4, from the ESP32 family.
How big is the ESP32 4-20mA Sensor PCB?
The ESP32 4-20mA Sensor measures 40 × 61 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the ESP32 4-20mA Sensor?
47 components, from 35 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the ESP32 4-20mA Sensor design files?
From the Diode663/ESP32_4-20mA_Sensor repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the ESP32 4-20mA Sensor design in my own project?
Yes, under the terms of its CERN-OHL-P-2.0 license, which Diode663 chose for the repository.
Can I test firmware for the ESP32 4-20mA Sensor without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug ESP32 firmware against it before you order a PCB.
Similar boards
ESP32
Open Book Abridged Edition
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8kESP32
Bitaxe
skot
56.5 × 99.8 mm86 parts4LCERN-OHL-S-2.01.4k