I have a small solenoid which is to be powered by a DC power supply. Current is 5A. Resistance is 3.5 ohms.
I only want this solenoid to be on for around 20 ms, so I figured a transistor was the best call.
Luckily, I have a function generator so can very easily set the pulse parameters. Naturally, this is the base of the transistor.
I usually just operate in the transistor saturation mode, using no resistor at all on the function generator, and setting V_b = 5V.
The transistor I'm using is the TIP 120 NPN. It is rated for 5A continuous, 8A pulse (maximum.)
Saturation mode has worked great at low currents (<1.3ish A,) but it has started giving me very horrific oscilloscope readings at any collector current larger than that. I think if I were to average the signals out, it could well be giving me the same pulse signal provided by the function generator, but it is oscillating at a very high frequency and amplitude, and it's obviously not the way forward.
I figured that I want to be operating the transistor in a linear regime, where I use high resistance and small currents on the base, and use the gain of this to calculate the base current required to allow the power supply (collector) current to be the desired 5A.
Unfortunately, the gain calculations (mostly transistor datasheets!) have started to really confuse me.
A TIP 120 has a stated gain of 1000, butif I look at the h_fe vs I_c graph, at Ic = 5A and T = 25C, the gain shows to be more like 2800.
Unfortunately, I expect these short pulses of high current to increase the temperature of the transistor momentarily. Does that mean my transistor gain will likely differ during this pulse, resulting in a non-constant collector current during this pulse? If so, would I work on an average temperature's gain value perhaps? I don't know what the internal temperatures get to.
Furthermore, this graph states that this is only for V_ce = 4V. Is the gain graph therefore going to be considerably different for a different V_ce? The solenoid I'm driving has about 3.5 ohms resistance, so V_ce must be (3.5 x 5) = 17.5V.
Essentially, if I could have some guidance in which value of gain to use, that would be ideal. I presume I can then set a suitable voltage and resistance of the base, which are both free parameters.
I have a flyback diode, as this is recommended with any solenoid. I can't remember the part number, but it was something like 20A and 100V so I presume this is perfectly fine.
I've attached my circuit diagram. It's essentially the same as a YT tutorial. Sorry for bad writing, it's microhenryies not milli. My solenoid is on the emitter side (rather than before the transistor collector junction.) This was mostly for convenience, as it made scope readings in the 'standard' configuration read a constant voltage value (V = V_in.) I also guessed the additional ~100mA from the function generator would just help improve magnetic performance of solenoid. If this is a bad idea too, please let me know.