@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.
@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 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.
@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.
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.
Great video! But I have some constructive criticism for your future vids. 1 turn the music off it makes it hard to hear what you have to say. 2 an easy fix for showing us how the motor is moving take a piece of tape and put it on the shaft. other than that great vid.
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.
will this damage my arduino if done wrong because im not sure which transistor i am using and my arduino is making a small bussing noise, please respond
great video, very informative. i know its a very bad way of doing stuff, but i cant find the potentiometr i bought and i really want to finish this tonight.since u forgot the potentiometr in the diagram, i would ask - can i do without it?
I might just be being really dumb but why not just use the 3.3v or 5v power headers on the arduino instead of the battery pack. Aside from that nice video :)
I just got an arduino and can't yet afford a motorshield after buying other little parts and I'm glad you made this video, there arent many detailing motor control without a shield, good on ya and I'm looking forward to the H-bridge video
@tonicq Your welcome. Sometime I'll make a video that will make the motor go both dirrections, with the control of speed. It will use an H-Bridge. Hope this tutorial was helpful! :)
@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 4 days ago
What is the delay for?
ArduinoKing 3 weeks ago
drowned out by (noise) cannot absorb info with that racket in background
brianfindsall 3 weeks 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 how about creating a tutorial with "L293D"? It helps in turning the motor both ways.
iampriteshdesai 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 6 days ago
@sanity599 I made a different way to control speed and direction using a relay. No need for an h-bridge.
AKSoapy29 5 days ago
@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.
sanity599 4 days ago
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.
sanity599 4 days ago
Great video! But I have some constructive criticism for your future vids. 1 turn the music off it makes it hard to hear what you have to say. 2 an easy fix for showing us how the motor is moving take a piece of tape and put it on the shaft. other than that great vid.
madgermandr 1 month 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 1 month ago
Thank you very much for this video, I have a project due tomorrow and this was very helpful. Thanks again.
TheTyno37 2 months ago
Hello, my name is Adalberto. I need help to connect servo motors to arduino.
is for my robot it has 19 servo motors please helpme
veizagaarze 2 months ago
@veizagaarze I don't know how to control that many servos.
AKSoapy29 2 months ago
@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.
danthebest185 1 month ago
will this damage my arduino if done wrong because im not sure which transistor i am using and my arduino is making a small bussing noise, please respond
legomaster12 3 months ago
@legomaster12 by the way i am using a 9v battery
legomaster12 3 months ago
great video, very informative. i know its a very bad way of doing stuff, but i cant find the potentiometr i bought and i really want to finish this tonight.since u forgot the potentiometr in the diagram, i would ask - can i do without it?
etkavisible 3 months ago
@etkavisible Yes, you just have to program the pwm pin to any value that you choose.
AKSoapy29 3 months ago
ac/dc
asariitis 3 months ago
Thanks - we enjoyed your video and it was useful and informative.
FalconerKettelMason 3 months ago
I might just be being really dumb but why not just use the 3.3v or 5v power headers on the arduino instead of the battery pack. Aside from that nice video :)
brendanhayellis 4 months ago
sorry not found this ok what is this el board were i can find them?
Volunteer8020 8 months ago
@Volunteer8020 What? I can't understand your post.
AKSoapy29 8 months ago
RIFD coming soon!
AKSoapy29 9 months ago
You said "Curved side of the diode." Better remember ur lines :)
Anthony96922 9 months ago
its more easy to write val = analogRead(potpin)/4; without map Funktion
shantoni0 9 months ago
I just got an arduino and can't yet afford a motorshield after buying other little parts and I'm glad you made this video, there arent many detailing motor control without a shield, good on ya and I'm looking forward to the H-bridge video
1world1love2day 10 months ago
@1world1love2day I might make a H-Bridge video. Might. Just keep checking in to find out. Sometime when I figure it out.
AKSoapy29 10 months ago
thanks :D
osnoflaster 10 months ago
can you explain why the diode is needed please?
EarRecon 10 months ago
@EarRecon I think so the backflow of power doesn't damage any of your parts, or the Arduino board itself.
AKSoapy29 10 months ago
what kind of pot you using?
c23lh 10 months ago
@c23lh I'm using a 10K ohm potentiometer.
AKSoapy29 10 months ago
awesome dude!
ravel2 11 months ago
@ravel2 Thanks! I just thought people should know this, cause I couldn't find that many videos of it. :)
AKSoapy29 10 months ago
I will try. Thanks.
tonicq 11 months ago
@tonicq Your welcome. Sometime I'll make a video that will make the motor go both dirrections, with the control of speed. It will use an H-Bridge. Hope this tutorial was helpful! :)
AKSoapy29 11 months ago