Added: 1 year ago
From: AKSoapy29
Views: 22,176
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (40)

Sign In or Sign Up now to post a comment!
  • @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.

  • What is the delay for?

  • drowned out by (noise) cannot absorb info with that racket in background

  • in your set up is there a way to making the motor spin the other way? or is that another setup?

  • @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 how about creating a tutorial with "L293D"? It helps in turning the motor both ways.

  • @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 I made a different way to control speed and direction using a relay. No need for an h-bridge.

  • @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.

  • What music is this?

  • @bc2noob 7:28 in the video will tell you.

    AcDc Back in Black,

    Nickelback Savin' Me

  • Thank you very much for this video, I have a project due tomorrow and this was very helpful. Thanks again.

  • 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 I don't know how to control that many servos.

  • @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.

  • 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 by the way i am using a 9v battery

  • 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 Yes, you just have to program the pwm pin to any value that you choose.

  • ac/dc

  • Thanks - we enjoyed your video and it was useful and informative.

  • 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 :)

  • sorry not found this ok what is this el board were i can find them?

  • @Volunteer8020 What? I can't understand your post.

  • RIFD coming soon!

  • You said "Curved side of the diode." Better remember ur lines :)

  • its more easy  to write val = analogRead(potpin)/4; without map Funktion

  • 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 I might make a H-Bridge video. Might. Just keep checking in to find out. Sometime when I figure it out.

  • thanks :D

  • can you explain why the diode is needed please?

  • @EarRecon I think so the backflow of power doesn't damage any of your parts, or the Arduino board itself.

  • what kind of pot you using?

  • @c23lh I'm using a 10K ohm potentiometer.

  • awesome dude!

  • @ravel2 Thanks! I just thought people should know this, cause I couldn't find that many videos of it. :)

  • I will try. Thanks.

  • @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! :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more