I'm trying to make my LED strip fade-in and fade-out by using Raspberry-pi 4, unfortunately for me, I am not an electronic expert. Every tutorial I saw so far was for RGB LED strips and I have a single-color(3000K) LED strip with just 2 pins (+ & -).
Im have:

  1. LRS-50-24 datasheet
  2. 30N06L datasheet
  3. 4m LED strip single color (3000K) 24V
  4. Raspberry Pi 4 enter image description here

My question is how to connect the MOSFET and the LRS-50-24 to the PI in order to control the fade-in/out by GPIO python code?

Appreciate any help

  • 1
    @tlfong01 I bought it at a local store, I don't have much information about it except its 24V, 10Watt per meter and 3000K
    – Omri
    Mar 7, 2021 at 7:59
  • 1
    @tlfong01 I dont see the wiring diagram in that video, could you check the link?
    – Omri
    Mar 7, 2021 at 9:02
  • 1
    (4) Your power mosfet's "Gate to Source Threshold" voltage Vgs(th) is (3V3 ~ 5V) logic level trigger. So you can use a jumper wire to connect DC voltage, say from a battery 3V to 6V to the gate terminal of the mosfet, which should switch on and light up your LED stripe. WARNING: Me just a friendly hobbyist, No guarantee no nothing wouldn't blow up or melt down. Good luck. Cheers.
    – tlfong01
    Mar 7, 2021 at 9:09
  • 2
    @tlfong01 the gate-source threshold voltage is too high for a 3.3V logic level. Vgs,th should not be more than half the logic voltage at most, especially if you switch high currents. So my judgement is: the mosfet is not suitable and it will become hot and may fail.
    – Sim Son
    Mar 7, 2021 at 9:19
  • 2
    I see, the IRLB8721 appears to be unsuitable, too. Its Vgs,th is 2.35V, but you need a mosfet with no more than 1.5V. Ideally, you want to measure 24V when the mosfet is off and 0V when it is on.
    – Sim Son
    Mar 7, 2021 at 13:58

1 Answer 1


Non Answer

(1) This is not an answer, but just a temporary place to upload pictures. So this non answer would be deleted later.

The OP's MOSFET can be replaced by the following.


(2) The OP's mosfet 30N06L has a similar Vgs(th) spec to my favourite IRL540N. So I guess there is big chance it can happily entertain the OP's low current LED stripe.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.