Automatic mode has been disabled

flaminiab

Member
Hi everyone,
what does this message means? I'm using teensy 4.1.
In my circuit, I have an IRLB8721 MOSFET rated for 60A-30V, and after keeping the circuit on for more than 4 hours, the signal started fluctuating, and after a while, the MOSFET burned out. Could these issues be related?

1730341588796.png
 
That MOSFET is in a TO220 package, it will not handle 60A as the bond wires will glow orange or vaporize! Internation Rectifier disingenously give the die-only rating, not the package rating in a lot of their specs. Its also limited to a minimum of 4.5V of gate drive to turn fully on.

Do you know if the MOSFET was running very hot or stressed (say with inductive load putting voltage spikes on the drain)? (i.e. what load and voltage was it connected to?)

When it failed it could easily take the T4.1 with it unless there was a current limiting resistor on the gate. Was it being used for PWM at all?
 
I am monitoring two systems simultaneously, and in one of them, the MOSFET became extremely hot and stopped working; in the other, it was under stress and caused voltage spikes on the drain, which I believe would have eventually burned it out if I had continued using it. Here is a photo of my circuit: the right side with resistors is connected to piezoelectric sensors, while the left side (connected to the analog pins on the Teensy) controls a fan. My system is designed to detect epileptic seizures, which are picked up by piezoelectric sensors placed at the base of a cage. Using code written in Teensyduino, when the signal detected by the piezoelectric sensors exceeds a threshold (325 on Teensyduino), the fan turns on and remains active for 60 seconds. The value from the piezoelectric sensors remains stable around 294 (I read this from the Serial Monitor in Teensyduino).

In particular. the mosfet is connected as follow: GATE= connected to pin 3 of the teensy (digital one); drain = connected to the ground of the fan; source = connected to the ground of the teensy and to the ground of a 12V adaptor (used to give power to the fan). The positive of the fan is soldered to the positive of the 12V adaptor. The fan is 12V, mosfet is IRLB8721 60A-30V, the adptor is 12V adapator. As you can see in the picture I added a 10k pull down resistance between the gate and the ground.

What I’ve observed is that after prolonged data acquisition – around three hours – the piezoelectric values start to fluctuate, and the fan no longer responds to commands. It turns on and off repeatedly without exceeding the threshold, or it sometimes turns on and won’t turn off, likely because the MOSFET has burned out and, as a result, is no longer correctly controlling the fan. I have tested the system many times with shorter acquisitions, and it worked perfectly; it’s only after long hours of data collection that this issue arises. Since this is an important project, I need to resolve this urgently and would appreciate your assistance.
1730398449872.png
 
As MarkT already pointed out, that MOSFET is a 5V logical compatible device and not meant to work with 3.3V. It is barely turning on if being driven directly by the Teensy so it would be acting like a large resistor rather than a switch. Maximum current through it would be very limited, maybe only a couple amps and would run hot. If you added a level converter to the Teensy output to shift it from 3.3V to 5V logic, it would switch the MOSFET much better.

How much current does your fan draw? Besides the MOSFET issue, the breadboard jumpers also won't handle much current, maybe 1A if you are lucky.

When controlling an inductive load like a fan, you should also have a flyback diode to help protect the MOSFET when the fan is turned off.
 
The fan draw 0.116A.
Which type of level converter and flyback diode do you suggest?
Thank you so much for your help, I really appreciate it
 
For level shifting you could use something like a 74HCT125 IC to boost your 3.3V signal from the Teensy up to 5V.

The flyback diode could be something like a 1A Schottky placed across the fan like shown here though your fan is small enough and the MOSFET is big enough that it probably won't matter, but is still good design practice.
1730474465215.png


Since you are just controlling a small fan, it may be easier to use something like a UNL2803A chip which is a darlington driver. It is compatible with 3.3V logic and can drive a 12V fan up to about 500mA and also includes the flyback diode. In the picture shown here, the 3.3/5V could be connected to 12V instead.

1730474768454.png
 
so do I need to replace the mosfet with darlington driver? The fan will be connected to the driver (black to pin 18 and red to the red of a 12V adaptor), what about the black of the 12V adaptor?
In addition, the driver will be connected to teensy just thanks to pin 1 which will be connected to a pwm pin of the teensy, do you confirm?
sorry for all the questions but I don't have much expertise with electronics and I don't want to mess everything up.
Thank you so much for your help!
 
To sum up, these are the connections:
Power Supply 12V (Red Wire):
Connect the red wire from the 12V power supply to both the COM (pin 10) on the ULN2803A and to the positive terminal of the fan (fan’s red wire)
Power Supply 12V (Black Wire):
Connect the black wire from the 12V power supply to the ground (pin 9) and also to the gnd of the teensy
Fan Negative Terminal (Black Wire):
Connect the negative terminal of the fan (fan’s black wire) to OUT1 (pin 18)
Fan Positive Terminal (red Wire)
:
Connect the positive terminal of the fan (fan’s red wire) to COM (pin 10) and power supply red wire
PWM Signal from Teensy:
Connect the PWM pin from the Teensy (e.g., Pin 3) to the input pin (IN1)
Can you just confirm that everything is correct? Thank you so much
 
You can keep the MOSFET if you want as long as you boost the drive signal up to 5V.

The darlington driver is an alternative to using the MOSFET. You can connect the Teensy directly to pin 1 on the driver. The ground of your 12V adapter would connect to the ground of your Teensy system which is also pin 9 on the driver. You need a common ground for the setup to work.

Here is a picture of that setup controlling a similar fan using pin 3 on the Teensy. The alligator clips are connected to the 12VDC adapter.
Controlling fan with ULN2803A.jpg
 
We cross posted, but your setup looks good. I didn't actually connect the 12V to COM on pin 10, but it works either way
 
Hello,
I've tried the system today, the problem is that when you connect the power supply to the breadboard, the fan turns on and doesn't stop blowing air. What should happen instead is that the fan starts off and only activates once the threshold is exceeded, then turns off after 10 seconds. Previously, with the MOSFET, it worked this way, but now it doesn’t seem to anymore. Any advice?
 
I have a question, we should run the system for 24hours, do you think is fine or there is gonna be a voltage overload again?
 
I think you should be fine. Your original problem was probably related to how the MOSFET was being driven. The Darlington should fix that and will probably be slightly warm to the touch when it is driving the fan, but nothing should be getting overly hot.
 
Back
Top