OK so let me draw out the plan and circuit so you know where I am.
I was messing with my cats toy (a laser with a motor for them to chase). I took it apart because it sucked and the cats would get bored very quickly with it.
OK so the goal, use an Ardweeny to operate this cats toy which has a small motor normally ran on 6v (I plan to run on 12 Volt DC). I already tested the motor and it works fine with 12 volt (I want it to be faster for rapid movement).
OK So the goal was to use the Ardweeny which puts out 5 Volt on its I/O's if you didn't already know that.
I built an H-Bridge using this diagram
Bipolar Transistor HBridge Motor Driver - Robot Room
I changed the NPN transistors for IRF520 MOSFET's
https://www.futurlec.com/Transistors/IRF520.shtml
I changed the PNP transistors for IRF9Z34N MOSFET's
https://www.futurlec.com/Transistors/IRF9Z34N.shtml
I Programmed my code to Run forward for a few seconds then reverse for a few seconds. It was something like
I have 2 separate voltage sources, 1 from the Ardweeny and 2 from the Wall Wart DC REGULATED 12 Volt power supply.
Both Power supplied are connected by GROUND, The Wall Wart powers the motor, The Ardweeny +5volt powers the base of the transistors.
Now when I hooked up a battery pack which is 3Volt everything worked fine. When I changed the 3Volt battery pack for my 12volt Wall Wart I get instant overheating transistors and they go up in smoke.
I have tried several transistors, MOSFET's and varying voltages and once I try to use the 12Volt supply its game over.
Any help is greatly appreciated, I feel like I have a good understanding of NPN transistors but PNP transistors make me insane.
I was messing with my cats toy (a laser with a motor for them to chase). I took it apart because it sucked and the cats would get bored very quickly with it.
OK so the goal, use an Ardweeny to operate this cats toy which has a small motor normally ran on 6v (I plan to run on 12 Volt DC). I already tested the motor and it works fine with 12 volt (I want it to be faster for rapid movement).
OK So the goal was to use the Ardweeny which puts out 5 Volt on its I/O's if you didn't already know that.
I built an H-Bridge using this diagram
Bipolar Transistor HBridge Motor Driver - Robot Room
I changed the NPN transistors for IRF520 MOSFET's
https://www.futurlec.com/Transistors/IRF520.shtml
I changed the PNP transistors for IRF9Z34N MOSFET's
https://www.futurlec.com/Transistors/IRF9Z34N.shtml
I Programmed my code to Run forward for a few seconds then reverse for a few seconds. It was something like
Code:
# NOT real code
r1 = digital pin 1
r2 = digital pin 2;
r3 = digital pin 3;
r4 = digital pin 4;
forward();
delay(2000);
reverse();
delay(2000);
forward()
r1 LOW
r2 LOW
r3 HIGH
r4 HIGH
reverse()
r1 HIGH
r2 HIGH
r3 LOW
r4 LOW
I have 2 separate voltage sources, 1 from the Ardweeny and 2 from the Wall Wart DC REGULATED 12 Volt power supply.
Both Power supplied are connected by GROUND, The Wall Wart powers the motor, The Ardweeny +5volt powers the base of the transistors.
Now when I hooked up a battery pack which is 3Volt everything worked fine. When I changed the 3Volt battery pack for my 12volt Wall Wart I get instant overheating transistors and they go up in smoke.
I have tried several transistors, MOSFET's and varying voltages and once I try to use the 12Volt supply its game over.
Any help is greatly appreciated, I feel like I have a good understanding of NPN transistors but PNP transistors make me insane.