DC Motor Arduino Tutorial - Elegoo The Most Complete Starter Kit

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ค. 2024
  • In this video I continue the Elegoo 'The Most Complete Starter Kit' tutorials, doing the DC Motor tutorial. I ended up doing something cool with the code in this one.
    You can find my code for this project on my github: github.com/hadefuwa/elegoo/
    Elegoo Arduino Most Complete Kit £50: amzn.to/3EKfdMZ
    Elegoo Arduino Basic Kit £15: amzn.to/3mSEpL4
    They sell a bunch of other kits as well: amzn.to/31kmK7J
    My Elegoo "Basic Starter Kit" playlist can be found here;
    • Elegoo Uno R3 Basic St...
    The Elegoo Arduino 'Most Complete Starter Kit' is a really good but slightly expensive piece of kit. I paid around £50 for it on Amazon but totally worth it in my opinion. They come with PDF tutorials allowing anyone to quickly get started using Arduinos and Breadboards. In this video series I will complete all the tutorials for the Most Complete Starter Kit.
    Subscribe for more as I'll be posting a lot more Arduino content.
    ________________________________________________________________________________________________
    Hi, I'm Hamed, an Electrical & Electronics Engineering Student in Leeds, UK.
    Visit my website at www.hamed.engineer
    If you have any questions you can email me at hamed@hamed.engineer or just comment below.
    Stuff You May Have Seen In My Videos
    The Oscilloscope I Use (From Banggood): www.banggood.com/custlink/vvD...
    Alternative Oscilloscope £220: amzn.to/32JhxXx
    Elegoo Arduino Most Complete Kit £50: amzn.to/3EKfdMZ
    Elegoo Arduino Basic Kit £15: amzn.to/3mSEpL4
    Soldering Iron Station £28: amzn.to/3eONT5y
    Handheld Oscilloscope £50: amzn.to/3HvJRvy
    Handheld Oscilloscope £100: amzn.to/3ENljMG
    DIY Function Generator £9.99: amzn.to/3JCQrCg
    Lavolta Power Supply £60: amzn.to/3mMvwmb
    Eventek Power Supply £60: amzn.to/3HxP9q3
    You Can Also Find The Above For Cheaper On Banggood/Aliexpress

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

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

    love ur video's man, keep on making more. love them

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

    thanks for the tutorial! really helped!

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

    Okay so can I hook up 2 motors to the power supply shown in the video ?

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

    Where Did u get the lessons from ? Because the CD that came with the kit didn't have instructions. Also does Elegoo have its own OS for coding & programing other than Arduino

  • @arielg6352
    @arielg6352 3 ปีที่แล้ว +5

    Love this video! I’ve been using tweezers to put the wires into board lol 😂

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

      LOL no! You're joking right?? 😂

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

      @@HamedAdefuwa LMAO. I am being super careful to not damage any of the wires and making sure nothing is plugged in while I do this. 😂 The board is so tiny and trying to do it by hand was annoying. Haha

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

      Lol bless you, it's better to be how you are. I'm the complete opposite and I've paid for it scarily. At these voltages with the Arduino (5V) you'll be fine though whatever you do. Thanks for watching!

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

      Well it’s too easy NOT to mess up thou!

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

      @@HamedAdefuwa Where did you download the pdf lesson files

  • @CHIRPICI98
    @CHIRPICI98 28 วันที่ผ่านมา

    where from can i get tge code
    ?

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

    Nice video

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

      thank you for watching :)

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

    also can you send me the link to the programming where you adjust the speed of the motor it is the finale step for me to finish plz give it to me fast

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

      // Define pin constants
      #define enablePin 5
      #define in1Pin 4
      #define in2Pin 3
      void setup() {
      // Set pin modes
      pinMode(enablePin, OUTPUT);
      pinMode(in1Pin, OUTPUT);
      pinMode(in2Pin, OUTPUT);
      // Set initial motor direction and speed
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }
      void loop() {
      // Change motor direction and speed after 5 seconds
      delay(5000);
      digitalWrite(in1Pin, LOW);
      digitalWrite(in2Pin, HIGH);
      analogWrite(enablePin, 100);
      delay(5000);
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }

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

    Hey, Where did you download the lessons to practice?
    Thanks in Advance

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

      everyting you need should be here: www.elegoo.com/pages/arduino-kits-support-files

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

    hey mine does all of that but when its spinning it only slightly spins rather than doing full rotations, the only difference to yours is that im using a 9v battery instead of an adapter, does that change anything?

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

      erm yeah somethings wrong there, the 9v battery it should work better. higher voltage would help the motor spin more. u sure you're using the motor and not the servo lool unlikely I know

    • @Mauricio-wf7se
      @Mauricio-wf7se 2 ปีที่แล้ว

      Mine does this as well. But it also makes a beeping noise

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

      @@HamedAdefuwa Thanks! turns out that the motor i was given was soldered really badly on the positive connection, so i have re-soldered it and it works fine

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

      @@Mauricio-wf7se have you checked the solder connections on your motor? that seemed to be the problem with mine, not sure about the beeping though

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

    I just got this kit and am trying this lesson, but I cannot get anything to happen. I have check, unplugged and replugged everything and get no response from the motor. I have tried uploading to both ports available on my computer and still no difference. Any suggestion?

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

      If you have a multimeter you can check continuity on the motor itself. The solder on mine and others was not great. Or just connect the motor straight to 5V and see if it spins. If it doesn't you'll need to resolder those connections.

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

      @@HamedAdefuwa lol i tried this, as soon as i connecred it to the arduino it spun to life, i got startled and the negative wire fell off

    • @Skyrem-dm7hj
      @Skyrem-dm7hj ปีที่แล้ว

      ​@@Merchantofwar he's not using an arduino. You need to use a elegoo

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

      @@Skyrem-dm7hj it still works the same

  • @oscarvaldovinos6597
    @oscarvaldovinos6597 2 หลายเดือนก่อน +1

    Someone pass the arduino code complete of the motor in the comments xfa because I got lost when they made the corrections please

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

    Doesn't work for me unfortunately. Seems like the motor doesn't have enough power, it is only twitching slightly.

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

    where do i find the code

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

      // Define pin constants
      #define enablePin 5
      #define in1Pin 4
      #define in2Pin 3
      void setup() {
      // Set pin modes
      pinMode(enablePin, OUTPUT);
      pinMode(in1Pin, OUTPUT);
      pinMode(in2Pin, OUTPUT);
      // Set initial motor direction and speed
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }
      void loop() {
      // Change motor direction and speed after 5 seconds
      delay(5000);
      digitalWrite(in1Pin, LOW);
      digitalWrite(in2Pin, HIGH);
      analogWrite(enablePin, 100);
      delay(5000);
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }

  • @CodedGamer972
    @CodedGamer972 9 หลายเดือนก่อน +3

    the fact i am 11 and i know how to build a humanoid robot with ai from scratch is amazing when compared to older people in the university studing about this

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

      Yup! Well done, keep going!

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

      11 going on 61 .
      Old man .

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

    rip, my 3-6v dc motor just broke.

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

    Dosent work

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

    Can you give the code to get it to spin slow enough for a merry go around ?

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

      FOR REAL YO THATS WHAT IM SAYING!!!!!

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

      // Define pin constants
      #define enablePin 5
      #define in1Pin 4
      #define in2Pin 3
      void setup() {
      // Set pin modes
      pinMode(enablePin, OUTPUT);
      pinMode(in1Pin, OUTPUT);
      pinMode(in2Pin, OUTPUT);
      // Set initial motor direction and speed
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }
      void loop() {
      // Change motor direction and speed after 5 seconds
      delay(5000);
      digitalWrite(in1Pin, LOW);
      digitalWrite(in2Pin, HIGH);
      analogWrite(enablePin, 100);
      delay(5000);
      digitalWrite(in1Pin, HIGH);
      digitalWrite(in2Pin, LOW);
      analogWrite(enablePin, 255);
      }