Destroyed Leonardo

Hi,
I was using a Leonardo to controler a motor through a Mosfet with this configuration using a 12v 5a power supply: leonardo-blown-up hosted at ImgBB — ImgBB
(i did connect ground to source and drain to the motor, i don't know if i drew it correctly in the diagram)

I was powering the Leonardo with a 5v usb charger. Then i thought i would power it directly from the 12v power supply, and i connected the Vin pin from the Leonardo directly to the positive terminal of the 12v power supply. After a couple seconds it started to release smoke and the wire in the side of the power supply started to burn. After this it is no longer recognized by windows or the Arduino IDE, when i power it it just stays there with the green LED on, or sometimes, with both the green and yellow LEDs on.
Is there any way to save it?
thanks

Unlikely ; smoke tends to be pretty terminal .

Can you tell what part(s) are burned? Is anything getting hot now?

i connected the Vin pin from the Leonardo directly to the positive terminal of the 12v power supply.

That's supposed to work so I don't know what went wrong. It's possible that you damaged it with static discharge, or maybe your board was defective to begin with.

through a Mosfet

Your schematic shows an (incorrectly connected) bipolar transistor but the 1K resistor should protect the Arduino for anything wrong on the output side.

P.S.
It's also possible that your 12V power supply has a higher-voltage turn-on spike or some other "funny" issue. And have you measured to make sure it's 12V?

amadeok:
Hi,
I was using a Leonardo to controler a motor through a Mosfet with this configuration using a 12v 5a power supply: leonardo-blown-up hosted at ImgBB — ImgBB
(i did connect ground to source and drain to the motor, i don't know if i drew it correctly in the diagram)

I was powering the Leonardo with a 5v usb charger. Then i thought i would power it directly from the 12v power supply, and i connected the Vin pin from the Leonardo directly to the positive terminal of the 12v power supply. After a couple seconds it started to release smoke and the wire in the side of the power supply started to burn. After this it is no longer recognized by windows or the Arduino IDE, when i power it it just stays there with the green LED on, or sometimes, with both the green and yellow LEDs on.
Is there any way to save it?
thanks

No, its completely fried. Your circuit as drawn sent 12V straight into pin 9. The maximum allowable voltage is 0.3V higher than the supply, and the maximum supply is 5.5V

That circuit is utterly wrong, and it cannot be right since you mention drain and source but the circuit doesn't use a FET

Hi,
Yes i knew that diagram was probably wrongly drew, but as i mentioned there, the mosfet was the IRLZ44N, and i connected the source to ground, the drain to the motor and the gate to the pin 9. I know i had not wired wrong because it was working fine before i fed the 12v to the Vin pin.

Then draw the circuit accurately please, otherwise the answers you get will be based on false information,
helping nobody.

If it was working fine then what are you asking us for? It's toasted... atleast share some pictures so we can try to assess the damage... my guess would be no.

Don't feel bad - frying a board is a rite of passage.

aarg:
Don't feel bad - frying a board is a rite of passage.

Oh!

I seem to have missed out!

Mustn't be doing enough! :astonished:

Tell me about it! I managed to stick -12v up the chuff of a Nano soldered into stripboard. That had to be surgically removed with a Dremel cutting wheel and replaced with the last one I have in stock. that wasn't a lot of fun.

I’ve changed many regulators on Arduinos... just saying... lately it’s been those on the 5v breadboard supply.

Hi,
Yes i'm sure the power supply is 12, its like 12.3v. Let me clarify that the smoke was coming from the cable in the side of the power supply, not the arduino. There is really nothing that can be visually seen in the board. But pretty much anywhere i touch it, i can feel a slight electric current.

You clearly have/ had a short circuit somewhere in your wiring.