This circuit has been working fine for 3 days, but day 4 is not working after debugging found that the transistor is opened. Then I changed the transistor and it's working, so why is this happening and what is the correct way to consider the different things while designing these circuits?
A quick search for the data sheet for the PMBT2222 shows that it has a maximum collector - emitter voltage of 30V, so with 90V you can expect a 'problem'.
@jim-p Hi, thanks for replying below your answers
What is the voltage of RELAY_1?
answer—3.3V via MCU
What is the voltage of IN_90V?
answer input voltage is 12v
coil resistance is 225 ohm
so as per calculation, the current is 53.3 mA. Then why is it damaging the transistor?
There may be other unknown factors involved but one could be that you are not completely turning on the 2222 and it is overheating. I would change the base resistor from 1K to 330Ω
@itsashutamar , can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Can you post some images of your project?
So we can see your component layout.