Transistor get's really hot and doesn't seem to work.
I'm trying to turn on and off a 12V dc motor/pump (it's one of the motors that squirts the water on your windshield to clean it). Just hooked directly up to the power supply it draws about 1.5A. When I turn on the switch, my transistor gets super hot, to the point I can smell it burning, and the motor does NOT turn on. It's an IRF510 transistor. I copied this circuit from a YouTube video (https://www.youtube.com/watch?v=-g0Q0e1mhIY&feature=iv&src_vid=nYjhYKeOOgI&annotation_id=annotation_856844) and this guy seems to have gotten his version to work fine. I cannot figure out what's going on here.
The wires in my picture that go off the table are connected to a 13V power supply on the ground. The diode attached to the motor is a 6A rectifier to handle the emf surge from turning the motor off.
Let me know if you have any questions for me!
IRF510 Datasheet: http://www.kitsandparts.com/IRF510.pdf