I wanted to use 12v led, so I tried to switching 5v(gpio pin) to 12v.
And this circuit broke down my raspberry pi. When I wired this circuit, they worked well. But I switched on and off several times, the transistor and raspberry pi broke down.
Why my raspberry pi and transistor died??