ESP32 door controller schematic review

Thread Starter

alexjj2

Joined Feb 26, 2025
4
Hi, till now I was only programmer but want to learn how to design PCB, its my first bigger pcb.

Goal is to have door controller with RGB led indicator 12V outputs, relay for opening and eth for communication.

I made this schematic, feel free to find and point any errors, its only way to learn :)
 

Attachments

Irving

Joined Jan 30, 2016
4,996
Welcome to AAC.

In no particular order...

Check your pinout on U33, connections don't marry with pin names

Connectors are not 'U' they should be 'J' (U is an IC)

It confusing to have pins on the ESP32 labelled '13', '32' and then 'IO16', consistency and meaningful names avoids costly mistakes

Physical Ethernet is ambitious for a 1st PCB, is WiFi completely out (else why use an ESP32)?

GND should always point down, power up, signal flow should be left -> right. All those MOSFETs are irritatingly on their backs...

What's going to be connected to connectors U8 through U11?

What are H1 through H4? (& what's a Lewy/Prawy?)

Q6 drives a 'G' but I don't see another 'G' on the schematic, only 'G1' & 'G2'

Q2 drives a NET with 2 names IO0 and BOOT, can't be both; anyway there isn't another IO0 (and technically it should be /BOOT as it's active low).


That it for now. I'll give it a 6 out 10, not bad but room for improvement
 

Thread Starter

alexjj2

Joined Feb 26, 2025
4
Thank you. Will work on naming and correct order but at this stage its hard for me to not break the logic, will remember it in future.

Need ethernet as have cables in garage but dont have wifi. And think it's good to learn as it's more complicated :). Want to replace my door controller with my own, so I try to copy device I have now. If I do it wrong I damage my own doors and will have to work better and faster to fix it :)

I choose ESP32 as its well documented with lot of examples in net and have all needed things like 2 cores (need async in soft) and 3 uarts.

H3 and H4 (lewy/prawy) is jumper selector to light only half of RGBs. G signal is there :) its cos i split G to G1-G2 as well as B to B1/B2.

H1 and 2 its also jumper selector to switch 5V/12V for external card readers which will respond via rs232 (only tx to esp32)

Connectors U8-11 will give 12V for external light (100mA)

I chceck U33 and dont found any mistakes in pin names :)

I update my project to be more complicatedo_O as I add external 50Mhz with rc delay (to avoid boot problems) and some esd protection also separate modules as I have no space.
 

Attachments

Thread Starter

alexjj2

Joined Feb 26, 2025
4
Yes, now I see LDO problem, I change LDO with same footprint but different pinout.

So as I change LDO again its now fixed.

Zrzut ekranu 2025-04-28 o 15.36.10.png

Thank you :)
 

Irving

Joined Jan 30, 2016
4,996
The gate resistors on Q3 - Q6 are unnecessarily high. 10k to ground is fine, but 1k isn't needed, you could lose them completely, or reduce to 10ohm. They serve little purpose driving AO3400 logic MOSFETs at low rates.
 

Thread Starter

alexjj2

Joined Feb 26, 2025
4
I use 1k just to protect esp32 pins as time isn't crucial here and AO3400A have low gate capacity (7 nC) so it should work with simple ON/OFF signal without PWM, I think.
 

Irving

Joined Jan 30, 2016
4,996
Pins are already current limited, and its still better to give as much gate drive as possible. 1k won't hurt but isn't needed.
 
Top