- BSN20 is a N-channel enhancement mode field-effect transistor (datasheet)
- IRF7416 is a HEXFET power MOSFET (datasheet)
This is a part of a project in which the line into R2 comes from the PWM of an ATtiny88 (datasheet).
The R2 is set as an output from the ATtiny88, at first the heater line was High all the time when R2 was toggled (PWM).
When attempting to debug the hardware I found that if I placed flux or isopropyl alcohol across the line to R2 (from the ATtiny88) to ground, the heater line would toggle as expected (it took longer than it sounds to come to this conclusion).
In further research I found this webpage which indicated I may need a resistor to help pull down the gate pin of BSN20. At the time I only had a diode so I placed it with the "flat" side to the gate and the "triangle" side to ground and it made it work.
My three questions are:
- In an ideal circuit should my design work?
- In a real circuit was my mistake that I needed a Mega Ohm plus resistor between the gate and ground to make sure the gate went to ground?
- Is the diode working as a hack, such that it provides a few Mega Ohm resistance with the way I placed it in my circuit?
In the long run I'd like to turn my DIY prototype into a produced circuit board. I have a computer science background not EE and would like to know what's going on and where I made my mistakes so that I can produce a valid design.
One more question
With more time to debug, i found one more variable. the voltage on the ground line in relation to the LDO regulator and at the leg of the source pin of BSN20 is reading 7.3mV. The voltage at several points across the ground trace showed different values. So one finial question. This seems to be either bad board design and/or more-likely a flux and other dirt under some of the chips acting like resistors pulling up the ground line. So...
- Why is the diode is working for me?
- Mohm resistance
- when the MCU sets the pin to ground its pulling the local ground line down to match the MCU in other words causing ~0 volts between the gate and the source.