OMG thanks sir, its my mini project to improve knowledge so I need to clone esp32 module. Thanks for detailed explanation and considering. Best wishes for youWelcome to AAC!
D6 is the wrong way round. As drawn it shorts the VBUS to ground.
Not sure why you need R12.
R12 and others - 4k75 is unusual value, did you mean 4k7?
IO17 (Switch) doesn't seem to go anywhere? I'm guessing to SW1 off board somewhere? You'll need to tag it with a label to pass ERC validation checks (in KiCAD?). Also tag power lines with a POWER_FLAG for same reason.
SW3 - you probably don't need C12 0.1u as you have C7 1u on the EN line anyway.
Can't see anything else concerning at the moment...
Other than SW1 and SW4 and the light sensor, you've replicated an ESP32 mini dev board. You could get one of those and an Adafruit BH1750 light module and marry them for arguably less money/hassle and a lower risk development cycle.
Beside can I ask a small question. Can I remove the Bidirectional TVS Diode in the wire connect D+ with DP2, DP1 cause I can buy them or find the similar one. ThanksWelcome to AAC!
D6 is the wrong way round. As drawn it shorts the VBUS to ground.
Not sure why you need R12.
R12 and others - 4k75 is unusual value, did you mean 4k7?
IO17 (Switch) doesn't seem to go anywhere? I'm guessing to SW1 off board somewhere? You'll need to tag it with a label to pass ERC validation checks (in KiCAD?). Also tag power lines with a POWER_FLAG for same reason.
SW3 - you probably don't need C12 0.1u as you have C7 1u on the EN line anyway.
Can't see anything else concerning at the moment...
Other than SW1 and SW4 and the light sensor, you've replicated an ESP32 mini dev board. You could get one of those and an Adafruit BH1750 light module and marry them for arguably less money/hassle and a lower risk development cycle.
thanks sir but It’s really hard to find bidirectional TVS diodes with low capacitance for D+ and D- . How can i solve thatthe TVS are there only for protection (always a good idea in robust design) but circuit can work without them. they are low cost items and easily found, and since you can buy them, not sure why wouldn't you. the other way to add protection is to use pair of clamping diodes connected to supply (5V and GND).
Ask the right question?thanks sir but It’s really hard to find bidirectional TVS diodes with low capacitance for D+ and D- . How can i solve that

I seach every web that I can buy in my country but it still so hard to find the right one. By the way shouldn't TXD connect to other ends RXD? Have you tried reversing them if that's even possible. Im so confuseAsk the right question?
Go to mouser.com (or your local version)
Search TVS Diodes
In the filter section choose capacitance<0.25pF (or whatever value you prefer)
also pick ranges for clampdown voltage, channel count, etc as appropriate
click 'apply filters'
View attachment 364443
Some useful info re products, layout, etc.
https://next.gr/tutorials/diodes-and-rectifiers/using-tvs-diode-for-usb-protection-tutorial useful tutorial
https://www.ti.com/lit/an/slvaf82b/slvaf82b.pdf TI's tutorial and recommended products
https://www.littelfuse.com/assetdocs/littelfuse-esd-and-port-protection-design-guide
https://fscdn.rohm.com/en/products/databook/applinote/discrete/diodes/selection_method_and_usage_of_tvs_diodes_an-e.pdf ROHM's guidelines
https://www.murata.com/en-eu/products/emc/esd/overview/basic/use-case/external-io-interfaces Murata's guidelines and product
Yes, I missed that! The TXD out from the CH340 goes to the RXD in on the ESP32 and vice versa as per the CH340 datasheet...By the way shouldn't TXD connect to other ends RXD?

Where are you?I seach every web that I can buy in my country but it still so hard to find the right one.
Im from Vietnam, idk why but find it look like so hard, btw can u help fix that error message, I cant find solution after 2.5 hoursYes, I missed that! The TXD out from the CH340 goes to the RXD in on the ESP32 and vice versa as per the CH340 datasheet...
View attachment 364445
This is by convention... in a chain of devices the TXD goes to the RXD of the next one down in the chain and so on...
Where are you?



i alr said it in the upper repply xD, btw help me solve the error message bro TTwell.... if you stated name of your country, others may be able to help.
you may also try pointing it on a map.
View attachment 364450


Can i ignore warning message and jump into pcb designmissed that. There is DigiKey etc. in Vietnam.
you can also try clamping circuit:
View attachment 364451
i see no error messages. there are only three warning messages.
click on each to see where the problem is. i use KiCad and encounter same warning. this happens when pin on device expects to see that something else connected to it is a power source. if that is not the case, just attach PWR_FLAG. if complaint is that some wire is not connected, delete it.
View attachment 364453
Btw can i use bidirectional TVS diodes 35uF for this circurt to measure magnitude of dark/ light. its minimum IC that I can findmissed that. There is DigiKey etc. in Vietnam.
you can also try clamping circuit:
View attachment 364451
i see no error messages. there are only three warning messages.
click on each to see where the problem is. i use KiCad and encounter same warning. this happens when pin on device expects to see that something else connected to it is a power source. if that is not the case, just attach PWR_FLAG. if complaint is that some wire is not connected, delete it.
View attachment 364453