Example A
5 V logic driving a 12 V relay
A microcontroller at 5 V needed to drive a small 12 V relay
with a 400 Ω coil.
The tool reported Icoil ≈ 30 mA, so a transistor with at least 100 mA collector rating was selected. With βforced = 10 and a 2× margin, base current of around 6 mA was sufficient, leading to a base resistor in the ~700 Ω range. A standard 1N4148 was enough for flyback at this current.
The tool reported Icoil ≈ 30 mA, so a transistor with at least 100 mA collector rating was selected. With βforced = 10 and a 2× margin, base current of around 6 mA was sufficient, leading to a base resistor in the ~700 Ω range. A standard 1N4148 was enough for flyback at this current.