I'm a beginner, so please be gentle!
I'm trying to dim the linked LED light fixture driver using a Raspberry Pi (RPi). I want to dim using PWM in conjunction with a FET. Before dimming I am trying to simply turn the fitting on/off. I was hoping it would work on the basis of the top answer to this post.
I have gotten some BS170 FETs and tested them for turning on/off a single LED using an RPI GPIO, they work fine.
I then connected the LED driver to the FET, connecting the +DIM of the driver to the drain, the -DIM to the source, and the gate to the RPi GPIO pin as with the single LED. I attempted to set the GPIO high, then low, as worked with the single LED but I get no change, only a dimmed fixture. Fixture goes to full brightness when I disconnect the +/-DIM wires from the FET, opening the circuit.
I perhaps have the FET oversized for the task? I'm guessing that it is allowing current to flow (with low resistance) from +DIM to -DIM regardless of voltage on the gate??
Any help, tips or advice appreciated.