Cytron MDD10A: How to use it with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 52

  • @6301นพวรรณคุณสาร
    @6301นพวรรณคุณสาร 2 ปีที่แล้ว +2

    So easy to understand for an absolute beginner. Thank you so much!

  • @terrybomerscheim8165
    @terrybomerscheim8165 3 ปีที่แล้ว +2

    Hello, It's a Very Good thing you're doing by putting this code out here to be used. Thank-You , I've looked a long time for this. I have this running correctly on a Cytron MD10-Pot which is not the same article as yours, but it's a go. This is perfect for Joystick code, just exactly perfect. The Compiler was cranky, like always, but that's been ironed out and it freaking runs. TY.

    • @UndernetSystems
      @UndernetSystems  3 ปีที่แล้ว

      I'm glad this video was helpful to you. I wish I had some of these modules still to make a couple more videos about it with different microcontrollers. These drivers are very reliable.

    • @machozs
      @machozs 2 หลายเดือนก่อน

      @@UndernetSystems Hello. I also got the MD10-POT but I'm a total newbie. Not a programmer, but I'm an electrician. Ladder is not a problem, but c++ is a problem for me. I understood how to apply different examples. What I need is to control the motor via IoT Remote in a mobile phone using Arduino Uno R4 + Cytron MD10-POT (speed and direction). Can you help me modify the code for my need? I actually need to remake the Cytron_Motor_Driver2.ino program from a potentiometer to control from an app

    • @machozs
      @machozs 2 หลายเดือนก่อน

      @@UndernetSystems Hello sir. I am testing your Cytron_Motor_Driver2 program. I'm not a good programmer, more of an electrical engineer and I'm at the very beginning with ardruin. I like your application and I want to ask you if it is possible to modify the program so that the motor is not controlled by a potentiometer but by a mobile phone using a mobile application. I need to create Cytron_Motor_Driver3 with IoT Remote. Thank you for your reply.

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว +1

    Useful video 👍

  • @jeffwilliams59
    @jeffwilliams59 4 ปีที่แล้ว +1

    Really helpful video -- totally helped me with a project -- despite the mic :)

  • @CoachMeGary
    @CoachMeGary 2 ปีที่แล้ว +1

    I wish to start and stop the motor after a fixed period of time. Is there an Arduino lib that does this?

    • @UndernetSystems
      @UndernetSystems  2 ปีที่แล้ว

      I can't think of a library that does it out of the top of my head. I could help you write something if you can give me some details as to what you are trying to acomplish.

  • @hafizharun9601
    @hafizharun9601 4 ปีที่แล้ว +1

    hello sir the switch when you turned on the power supply is connect to? and the coding needs to be improved or just can simply use like ur coding for controlling with potentiometer? and i wanna connect mdd10a a to two motor drivers and do i need to make it series so that it control for two dc motor with same output?

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว

      Hello sir, the device is connected to a power supply, instead of using it you can use batteries or a wall power supply (anything that can deliver the voltage you need for the motors in your application). The code can be used as is, but you can easily modify it to fit the needs of your application, and yes, it can be used with a potentiometer. If you want to connect two motors to one driver and drive both with the same signal, you need to connect the motors in parallel (positive of motor 1 with positive of motor 2, negative of motor 1 with negative of motor 2). You will need to insert all the cables of both motors into one of the outputs of the device. I generally recommend to give each motor their own output because it allows your motors to have more current to use, which can increase your overall torque. Hope this helps you out.

    • @hafizharun9601
      @hafizharun9601 4 ปีที่แล้ว

      @@UndernetSystems Hi sir if i give each motor their own output the motor 1 and motor 2 connection and just connect it at M1B and M1A for motor 1 and M2A and M2B for 2nd motor at MDD10A and connect it with arduino uno and a switch and controlled by potentiometer can it produce same output for both motors?

  • @rohan3_official
    @rohan3_official ปีที่แล้ว +1

    superb video... I just wanted to know one thing, is it possible to run the motor wirelessly using RF module with this driver, I know the code will be different, but is it possible!!!!

    • @UndernetSystems
      @UndernetSystems  ปีที่แล้ว +1

      Yeah it is. Some rf RC modules can let you output a pwm signal that this might be able to use directly too.

  • @vanshajbhaskar8971
    @vanshajbhaskar8971 4 ปีที่แล้ว +1

    Hey!! How did you turn of the motor as it has DIR pin when low moves clockwise and when high anti clockwise.
    So we have to make the speed Zero to stop the motor. Right ?

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว +1

      It has two pins for direction per output. If you put a high signal on one of the direction pins, it will go in that specific direction, once you make the signal a low, it will stop. If you want to vary the speed, you can use a PWM signal instead of a high signal and that will change the speed in that direction.

    • @vanshajbhaskar8971
      @vanshajbhaskar8971 4 ปีที่แล้ว

      @@UndernetSystems It has DIR1 &DIR2 for motor1 and motor2 respectively as per the datasheet. So how can I sop the motor individually in Arduino? Or you mean DIR1 is for clockwise rotation and DIR2 is for anticlockwise when high. And when both are low both motors are stopped.

  • @BryanCavill
    @BryanCavill ปีที่แล้ว +1

    Hi, Can you help on this please. Using Cytron MDD10A rev 2 with Arduino UNO v3. need to connect two brushless 12 volt DC 7 amp motors for wind simulation for sim racing rig, the speed will be controlled by a software package called SimHub which accepts custom sketches. The motors only have to work in one direction the speed of the fans is proportional the the vehicle speed in the simulation. There is also a directional element of speed control that is why the fans must work independently. So what connections do i need between the Uno and the MDD10a). Also do you have a sketch for this. Thanks for your help in advance.

    • @UndernetSystems
      @UndernetSystems  ปีที่แล้ว

      I can give you a hand with it. I am a firmware/hardware engineer. The best way that I could help you is if you join the discord server linked in the description of that video. I am generally there along with other engineers.

    • @Lessenjr
      @Lessenjr 8 หลายเดือนก่อน

      Hello Bryan, Did you get this figured out. I am attempting the same project as you

  • @fernandopalacio4026
    @fernandopalacio4026 2 ปีที่แล้ว

    i need move 6 gear motors with, can i combine this module with adafriuit PCA9685???? thanks

  • @statmuzyq
    @statmuzyq 4 ปีที่แล้ว

    Question I’m trying to find a code to run the motors off the arduino from Bluetooth is that possible?

  • @AFSMG
    @AFSMG 4 ปีที่แล้ว

    It is not necessary to use disconnectors in the transistors when they are passing 10A? Have you tried this situation? Thank you very much

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว

      I have not tried it in that situation. I do not have more of those motor drivers in hand anymore. If you are concerned about peak current through the device, it can handle 30A as stated by their website as well. You just need to be careful in your application to not exceed the 10A continuous rating. Yes, you will most likely not damage it if you go over that amount for a small time period.

  • @Aditya-kv7to
    @Aditya-kv7to 2 ปีที่แล้ว

    is it compatible for 550 motor?

  • @fpvnafret
    @fpvnafret 4 ปีที่แล้ว

    Thanks for this, awesome I have a question. Wil this work with a PWM receiver instead of the potenciometer can I Just conect one of channels from a pwm rc receiver?

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว +1

      I can't see why it wouldn't work :)

    • @fpvnafret
      @fpvnafret 4 ปีที่แล้ว

      @@UndernetSystems thanks, I Will try 😝

    • @miracleee2840
      @miracleee2840 หลายเดือนก่อน

      @@fpvnafretdid it’s works ?

  • @nawinlifehacks9978
    @nawinlifehacks9978 5 ปีที่แล้ว

    Hello sir..ENA , IN1 , IN2 , IN3 , IN4 ENB pins in L298N motor driver.but cytron motor driver was fully different.how can declare IN1, IN2 , IN3, IN4 and ENA ENB pins.. please explain sir in cytron motor

  • @AFSMG
    @AFSMG 4 ปีที่แล้ว

    Does the MDD10A have any protection? What if the current exceeds 10A? Is the card broken?

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว

      Generally the mosfets might be able to handle a bit more than 10A without dying. They might get hot enough to damage other components on the board. I would suggest limiting your current usage to 10A. If you think you might have issues going over 10A for long periods of time you might want to add fuses to your motor.

  • @sebastian_109
    @sebastian_109 4 ปีที่แล้ว

    Can i also control smaller motors with this driver? I kind of dont understand if it will provide e.g. 0.5A, 3-6V or it will be impossible or sth?

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว

      It should be able to control those loads, don't see why it would not be able to.

    • @sebastian_109
      @sebastian_109 4 ปีที่แล้ว

      @@UndernetSystems Okay, thank you very much

  • @cl3375
    @cl3375 5 ปีที่แล้ว

    Hi, great video!! Can you please tell me what wires you used for the motor to motor controller connection? Thanks!!

    • @cl3375
      @cl3375 5 ปีที่แล้ว

      oh btw, I am using an arduino with the cytron motor controller rated for 30A continuous and and also using the motor from a power drill in my project!

    • @UndernetSystems
      @UndernetSystems  5 ปีที่แล้ว +1

      @@cl3375 The wires that I used for that motor are similar to the ones used for 3d printer heater cartridges. In your case you would have to check what is the maximum current draw of your motor under load, that will tell you the size of wire you want to use with it. If you use wires that are too small, you run the risk of burning them. Check the max current draw of your motor and then check this chart to pick the wire you want. www.google.com/url?q=www.solaris-shop.com/content/American%2520Wire%2520Gauge%2520Conductor%2520Size%2520Table.pdf&sa=U&ved=2ahUKEwjnntG24cDgAhUhm-AKHSEOBb0QFjAJegQIBhAB&usg=AOvVaw2eEVXSRFzxUcA_nqpzZdHZ

    • @cl3375
      @cl3375 5 ปีที่แล้ว

      @@UndernetSystems haaha yep! definitely will burn the wires if they are too thin! verified that yesterday, thanks for the link! also.. how did you know the max current that motor would draw? The drill I used did not come with a complete performance chart. It has 2 speeds - 0 -1800RPM and 0-400RPM. Stall torque is 500 in-lbs (or 41ish ft-lbs). Battery is 18VDC. Using just those values, the current at max power (at 1/2 RPM and 1/2 stall torque) the current, according to power, is 147A. clearly this is not really the case since there is a gear box. If I assume the gearbox is 36:1 then the current at max power should be about 3.88, but I'm not sure about the gear box, and even if I was, I am not 100% sure how fast the current grows. I want to guess max amps at about 20A to be safe but here is a more concise question: what will choosing a wire that is too thick result in? Should be ok, right?

  • @pruthvirajsinhbarad9432
    @pruthvirajsinhbarad9432 3 ปีที่แล้ว

    In low speed (PWM value 50) L298n makes humming and not rotates

    • @pruthvirajsinhbarad9432
      @pruthvirajsinhbarad9432 3 ปีที่แล้ว

      Does this mdd10a runs at very low speed
      Motor full load 12V 2.5amps

    • @UndernetSystems
      @UndernetSystems  3 ปีที่แล้ว

      @@pruthvirajsinhbarad9432 With this DC motor driver, to change the speed of your motor you are basically changing the width of your control signal. Whether or not the driver will be able to drive your motor at lower speeds depends on your motor and its voltage ratings. If your voltage is too low, your motor will not have enough torque to be able to start rotating. The way that I generally deal with this situation is by looking at what range the motor can work at when you are testing it. Lets say if you are seeing that your motor can only rotate from 50 to 255, you can write a function (or use the map function on arduino) to take that 50-255 range and turn it into a 1-100% percent range, and anywhere below 50, the software will assume that the speed is 0. Hope it helps.

  • @javierito8808
    @javierito8808 4 ปีที่แล้ว

    Hi! What if I need this kind of drivers but for two motors, because I need the same functions like l298n, but is too small. I need for +/- 10amp. Thanks!!!

    • @UndernetSystems
      @UndernetSystems  4 ปีที่แล้ว

      Check their specifications and see if they can deliver that current. I think they do?

  • @Robloxzz
    @Robloxzz 3 ปีที่แล้ว +1

    Is it possible to use in python?

    • @UndernetSystems
      @UndernetSystems  3 ปีที่แล้ว

      Yes you can. I have used them with python on the raspberry pi before. The language that you use doesn't really matter, what matters is how your hardware can control it.

    • @Robloxzz
      @Robloxzz 3 ปีที่แล้ว

      @@UndernetSystems Ok! Thank you very much!:)

  • @TheOldKid
    @TheOldKid ปีที่แล้ว +1

    Good tutorial. Too bad it wasnt stated in bold letters or stated in general on amazon this driver needed a microcontroller to use rc with it. No telling how many people bought this thinking they could use it without arduino. My code skills are near nonexistent. Ive been driving myself nuts battling an arduino, riorand esc and hub motor for a few days thinking i could just adapt my wheelchair motors, hook up this driver and be done. Yet another setback. Not a big one but wasnt expecting to figure out another code. I think yours will get me started and i need to work out channels. I think i need to stick with the fabrication of carts, buggies and other vehicles and leave all this to the smart people

    • @UndernetSystems
      @UndernetSystems  ปีที่แล้ว

      Hahah yeah it can be pretty daunting if you don't have previous experience. If you need any help let me know. When I made this video I was still in college so hopefully now I'm far more helpful.

    • @TheOldKid
      @TheOldKid 7 หลายเดือนก่อน

      I have several hobbies that i rarely have time for so once i get frustrated it takes months to get back to a particular one. I ended up using an l293d and had my two small motors working. Unfortunately i didnt notice one of the supply voltage wires was barely hanging on and turned the l293d into charcoal. I bought an xy160d motor driver and as far as wiring it has same pin identification but no luck. I have been going through code after code, video after video trying to either get the mdd10 or xy160d to work but missing something. Serial monitor shows like all good. For some reason im not getting the message from arduino to motor drivers. Transmitter and reciever are good, arduino good, drivers power up but motors just sit. Im leaving something out but not surprising since my coding cave man level​@UndernetSystems