Arduino ~ DC Motor Controller (Easy!)
Uploader Comments (AKSoapy29)
All Comments (40)
-
Just because it works now doesn't mean that you are not hitting your controller with high voltage. So when your controller stops working you will know why. Maybe if you can get the use of an oscilloscope and set it up to look at the pin you are using to drive the motor. Run the motor then shut it off. See if you can see the voltage spike coming back to the controller.
But hey it's our controller, blow the crap out of it if you want.
-
@AKSoapy29 You see that diode that is connected across the leads to the motor? That is there to prevent voltage flyback from blowing up your controller. This voltage comes from the collapsing magnetic field that occurs when you shut off the power to the motor. When you need to be able to run the motor in both directions you need a way to control flyback. The diode only works in one direction. So you need something that will protect your controller. A relay will not do that.
-
What is the delay for?
-
drowned out by (noise) cannot absorb info with that racket in background
-
@AKSoapy29 how about creating a tutorial with "L293D"? It helps in turning the motor both ways.
-
@veizagaarze Hey,
I don't know the name for it, but I believe there is some sort of Arduino board that is designed for it 50 output pins that are PWM. that means you can control 50 servos providing you have the correct power supply and connect the grounds together.
If you search Google you will find it in a few seconds :) hope this helps.
@sanity599 A relay will work, if you use the right type. Dual pole, dual throw works, and it runs the same way as if you don't have a relay. The relay part comes after the diode, to prevent damaging the controller. When I make the tutorial, you will see. Have you even tried it? If not, your trolling.
AKSoapy29 1 week ago
in your set up is there a way to making the motor spin the other way? or is that another setup?
perez861 1 month ago
@perez861 There is another setup using a dual pole, dual throw relay. I was going to make a video of how to create it, but I just haven't had the time to do so. Maybe this weekend would be a good time...
AKSoapy29 1 month ago
@AKSoapy29 You can't do it that way. The diode that is across the motor is to prevent voltage from flowing back into your arduino, killing it, when the magnetic field collapses when the motor is shut off. To make the motor turn both ways and to protect your controller you need an H-bridge. Google is your friend.
sanity599 1 week ago
@sanity599 I made a different way to control speed and direction using a relay. No need for an h-bridge.
AKSoapy29 1 week ago
What music is this?
bc2noob 2 months ago
@bc2noob 7:28 in the video will tell you.
AcDc Back in Black,
Nickelback Savin' Me
AKSoapy29 2 months ago