is thinking...
352d 3:24:50
Ready.
Reviews
Name | |
|---|---|
Inspect
LED Animation
Controls
Properties
Availability & Pricing
| Distributor | Qty 1 | |
|---|---|---|
Assets
Welcome 👋
Flux helps you build PCBs faster with an AI teammate!
Create your account to collaborate, stay updated, fork your own version, and get instant answers from our AI agent.
karmugilan
copilot
- N-channel MOSFET
- Pull-up resistor
- GPIO pin from your microcontroller (e.g., STM8S003)
Connection Steps-
Connect the GPIO pin to the gate of the N-channel MOSFET. This pin will control whether the MOSFET is on (active low) or off (inactive high).
-
Connect the source of the N-channel MOSFET to the ground. This will ensure that when the MOSFET is on, the drain is pulled to ground (0V).
-
Connect the drain of the MOSFET to the load that you want to control (e.g., an LED or relay).
-
Connect a pull-up resistor from the drain of the MOSFET to the 24V supply rail or whatever voltage you wish to use when the output is inactive.
How It Works-
When the GPIO pin outputs a LOW (0V), the MOSFET turns on, connecting the drain to the source, which is ground. Thus, the output is LOW.
-
When the GPIO pin outputs a HIGH (3.3V typically), the MOSFET turns off. The pull-up resistor then pulls the output voltage to the high voltage level (3.3V to 24V) provided by the supply rail.
Schematic Example