Some professional clock kits use 3 x 2n7000 MOSFETs to drive 6 rgb leds. The gates are connected directly to the microcontroller pins. I tried that and it works fine. My problem is that the controller and the MOSFETs are not on the same PCB.
If I power up the two boards without the wires between microcontroller pins and MOSFET gates, there is a good chance to destroy the MOSFETs, I killed a lot of them :-)
Unfortunately, I’m not an electronic engineer, so my question is how can I protect the MOSFETs. I have tried several things on the breadboard. Connecting a 1M resistor between gate and ground and a diode between connector and gate seams to do the job, but I’m not sure if that is the correct solution.
I used these MOSFETs because I found them in several schematics dimming RGB LEDs using PWM.
I’m trying now with a BC548 with a 4.7K resistor between the base and the pwm controller pin. It works great. So, bye bye 2n7000, welcome BC548 :-)
Thanks a lot for your input!
Maybe I should explain my design. For now, I have the following boards:
Power supply board, delivers 5V and 170V
ATmega controller board with connections to drivers, RGB leds, PIR and GPS/NTP
Two types of driver boards, one using 74XXX and transistors and the other using HV chips
Four types of “display” boards, IN-8, IN-12, IN-18 and Z5660M, all of them with the MOSFETSs and RGB leds
I like the idea of a modular system. If I want to switch from an ATmega to an ESP32 or a Raspi I just have to change the controller board. Or if someday I want to make a 12-digit clock I just can cascade two driver boards. Even if the clock has a nonstandard design I can use the drivers with direct wiring to the nixies. Well, that’s why I have separate boards.
Back to the 2n7000 problem…
In my case, the MOSFETs only die if the gates are not connected to the controller. When I started to test the display boards, I killed all the MOSFETs on all the boards because I tested without the RGB connection. The grounds are connected and the power supply is the same for all boards. Adding the 1M resistor and the diode near the MOSFETs, stops the massacre :-) I don’t know why the diode helps but that works for me. But as Jon pointed out, with my design it’s probably better to switch to transistors.
I agree 100%, it must be an ESD problem, these things are really fragile, even on a breadboard circuit just touching 2 or 3 times the gate kills the 2n7000. I think I will not be able to solve the problem in a reasonable amount of time, so for now, I will patch the boards with transistors and continue with the tests. Just finished to solder one of each type of driver boards…
There are no IC’s on the board with the 2n7000, just some resistors, leds, nixies and the connectors to driver, controller (led pwm) and psu. I replaced the 2n7000 with BC548 and 4.7K resistor (patch picture). One of the driver boards on the picture has two HV5622 and the other one 8 x 75HC595 and 64 x MPSA42 transistors.