Xiao Esp32c3 gpio to trigger mosfet


Hi, I am using xiao Esp32c3 to run a pressure sensor and an air quality sensor. I use the gpio3 to send signal to a mosfet as shown in attached pic. Please note the pic has Uno while I use Esp32c3. The issue is the C3 has no dedicated touch pin, so to use it it has to be grounded. The Uno has a dedicated touchpin so it does not need to be grounded. How do i modify the attached circuit to work with Esp32c3?

1 Like

What does this mean , where is the touchpin on a UNO?

1 Like

Please supply a schematic. A photo of a hand drawn (and labelled) is fine.

1 Like

Why should you need touch pin to drive mosfet gate?
Also, what is your mosfet supposed to drive/switch?

Mosfet to switch power on

Sorry, i meant the Uno pin is grounded while the gpio 2,3,4 that can be used in xiao as a wakeup from deep sleep pin are not grounded, they need to be cross with gnd to send the signal

You need to draw a schematic well labelled, we can't work very well with that picture. It does look like a ground is missing though.

1 Like

It looks like battery (6V) is connected to 5V in and that should not be so.

1 Like