Learn How To Control A Small DC Motor Using Arduino MEGA 2560 - Lesson 29 Elegoo Mega Starter Kit

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

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

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

    Effortlessly understood, thanks for the review lol

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

      worked like a charm

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

      even with my bootleg kit! same parts different names but worked!

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

      Thanks for leaving a message. glad it worked! 💪👍

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

      awesome job! good luck with your projects

  • @elliottsancrant531
    @elliottsancrant531 9 หลายเดือนก่อน +1

    Hey I followed the tutorial but my PSU started smoking. What did I do wrong?

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

      That's interesting, sorry to hear that! Are you using a breadboard power supply? If so, was it damaged? Did you use the power supply with the jumper on the 3v side or did you use one of the 3v headers to operate a 5v motor? what kind of plug did you power the breadboard psu with ? More detail will help pinpoint the reason for smoking.

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

    hello, i have a problem with the two dc motor cables as they have come loose from the two metal parts, what should i do? Should I solder them again ?

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

      Hi there! Yes, solder them back on. Clean off the old solder and apply new

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

      @@BMonsterLaboratory thank you, i Will try!

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

    Hey really good tutorial but I have a problem: my motor makes sound like if it was working, but the fan doesn't always spin. How can I fix it ?

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

      Hi HASAN! use multimeter to test connection. Check motor connection (solder joints, alligator clips..etc) however you made connection. If you're using a battery, maybe replace or use 9v wall adapter in the barrel Jack of arduino. Don't power motor through arduino board. Use external power. Try those ideas. Thanks for reaching out! 👍

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

      @@BMonsterLaboratory Ok thank you ! I tried what you said but everything is properly installed, do you have anything else to help ?

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

      @@hasankhaddam540 if the motor is getting power it should work. Can you try another motor? You could also send me a pic of your setup

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

      @@BMonsterLaboratory I don't have another DC Motor, but I can send you a picture. Where do I send you the picture ?

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

      Bmonsterlab@yahoo.com

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

    I can't find the code for this

    • @BMonsterLaboratory
      @BMonsterLaboratory  7 หลายเดือนก่อน +1

      here ya go!
      //www.elegoo.com
      //2017.12.12
      /************************
      Exercise the motor using
      the L293D chip
      ************************/
      #define ENABLE 5
      #define DIRA 3
      #define DIRB 4
      int i;
      void setup() {
      //---set pin direction
      pinMode(ENABLE,OUTPUT);
      pinMode(DIRA,OUTPUT);
      pinMode(DIRB,OUTPUT);
      Serial.begin(9600);
      }
      void loop() {
      //---back and forth example
      Serial.println("One way, then reverse");
      digitalWrite(ENABLE,HIGH); // enable on
      for (i=0;i

  • @ben-zz2rm
    @ben-zz2rm 4 หลายเดือนก่อน +1

    great video, thank you. I'm having the following issue. Have rechecked code several times and cannot see the problem, can you please help.
    E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino: In function 'void loop()':
    E:\Documents\PERSONAL\Bens_Arduino\projects\DC_motor_2_forward_reverse\DC_motor_2_forward_reverse.ino:24:20: error: expected ';' before ')' token
    for(i=0, i

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

      Hey there! thanks~
      You have some syntax errors and missing ";" ...maybe typos. Don't forget to define ENABLE.
      Try this
      #define ENABLE 5 // Define the pin connected to the motor driver
      void setup() {
      pinMode(ENABLE, OUTPUT); // Set the ENABLE pin as an output
      }
      void loop() {
      for (int i = 0; i < 5; i++) { // cycle will continue until i