How do I invert the output of a D4184 Mosfet control Module


this is the module I am talking about

so basically I am trying to build a UPS for my wifi router I want this module with an inverted output so that when the input gets low the output should turn high

Now I am trying to avoid messing up with the PCB itself, so is there any other way to solve this problem using the output terminals only


this is the schematic

There is a YT video on this topic as well for better understanding - https://youtu.be/eqXaqRFAWrA?si=7nPkJOVKiQKlzTwu

Any help or guidance would be highly appreciated.

Connect the PWM pin (1) to +5V
Connect the GND pin (2) to a 5V logic signal.

When the logic signal goes LOW the MOSFET turns on.

first of all, thank you for the reply, I got the logic but how do I set the reference voltage like GND, secondly I am using 12v as the input voltage, so for example the +12v goes to pin (1) then where does the 0v from the main power adapter goes.
I was planning to use depletion-type mosfet with some modification.

So what is low?
Is low a connection to the 12V ground and a high is 12V?