element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Fun & Games
  • Challenges & Projects
  • Project14
  • Fun & Games
  • More
  • Cancel
Fun & Games
Forum P-Channel MOSFET High-Side Switch Not Fully Turning Off (ESP32 rail at 2.9V)
  • News
  • Projects
  • Forum
  • Leaderboard
  • More
  • Cancel
  • New
Join Fun & Games to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 44 subscribers
  • Views 150 views
  • Users 0 members are here
Related

P-Channel MOSFET High-Side Switch Not Fully Turning Off (ESP32 rail at 2.9V)

arvindsa
arvindsa 4 days ago

I’m using a DMP2045U P-channel MOSFET as a high-side switch to control 3.3V power to an ESP32-S3-WROOM module. The gate is driven by an STM32.

image

Connections

  • Source → 3.3V (measured 3.289V)

  • Drain → ESP32 3V3 pin

  • Gate → STM32 GPIO

  • 10k pull-up from gate to 3.3V

Measurements

When gate is LOW (~0.009V):

  • Source = 3.289V

  • Gate = 0.009V

  • Drain = 3.289V

  • Vgs ≈ −3.28V → MOSFET turns fully ON (as expected)

When gate is HIGH (3.287V):

  • Source = 3.289V

  • Gate = 3.287V

  • Vgs ≈ 0V → MOSFET should be OFF

However:

  • Drain measures ~2.89V

I added a 47k pulldown resistor from drain to GND. This reduced the drain voltage to ~2.4V — but not to 0V.

  • All STM32 GPIOs connected to the ESP32 are driven LOW.

  • If I completely remove the MOSFET, the ESP32 3V3 rail stays at 0V (no floating voltage).

Question

Is this expected off-state leakage/floating behavior for a discrete P-MOSFET in this configuration, or is there something wrong with my circuit?

  • Sign in to reply
  • Cancel

Top Replies

  • Jan Cumps
    Jan Cumps 3 days ago +1
    Is it possible you have active signals on the digital lines when the ESP32 is off, that seep to the power rail?
  • michaelkellett
    michaelkellett 2 days ago +1
    You have about 50uA leakage through the MOSFET when it's supposed to be turned off - the spec says it should be less than 1uA. Try shorting the MOSFET gate to source (I know its already meant to be at…
  • dougw
    0 dougw 4 days ago

    It sounds like the FET is damaged.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • arvindsa
    0 arvindsa 4 days ago in reply to dougw

    I had simultaneously soldered two boards. Using standard reflow profile on miniwares hotplate, yet both showing same behaviour. I will try replacing it. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kmikemoo
    0 kmikemoo 3 days ago

    And sometimes, they just leak.  Either way, the solution is the same; replacement.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps 3 days ago

    Is it possible you have active signals on the digital lines when the ESP32 is off, that seep to the power rail?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett 2 days ago

    You have about 50uA leakage through the MOSFET  when it's supposed to be turned off - the spec says it should be less than 1uA.

    Try shorting the MOSFET gate to source (I know its already meant to be at the same voltage but maybe that only happens when your meter is there - I have seen that before.)

    Then check that it really is turning off.

    Also try a restive load rather than the ESP32.

    I have seen a batch of MOSFETs that were a lot leakier than spec - so it could just be that.

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube