DC Motor (L298) Basic + Object Oriented | Raspberry Pi Tutorials for Beginners

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 60

  • @stinkyjutsu
    @stinkyjutsu 3 года назад +1

    the best walkthrough i have seen yet. i just started with writing script 2 days ago and this is already super simple to understand.

  • @terencefagan276
    @terencefagan276 3 года назад +2

    Great job, walking through the steps and then discussing why OOP. Thank you!

  • @carlosjarquin5540
    @carlosjarquin5540 4 года назад +2

    I just love you bro, you are amazing. Thanks a lot for your videos cause they have helped a lot.

  • @AdityaVithaldas
    @AdityaVithaldas 2 года назад +3

    One of the best walkthroughs, I have come across, thoroughly explained. And got me well to controlling one motor. However, when I tried the same with another motor using the same approach, for some reason, that just didnt work .
    Sometimes the motor would keep running (even before running the code) and didnt respond to the Pi instructions.
    Other times, it would just stay put and not move at all.
    I was wondering if there is a choice of pins involved? E.g. just a few pins that truely support the PWM etc? Is this a problem that is commonly faced? Been breaking my head on this a couple days, not able to figure out.

  • @duncanmarks1590
    @duncanmarks1590 Год назад

    Hi, a good introduction to motor control and object orientated programming. bye

  • @WilliamTatum
    @WilliamTatum 4 месяца назад

    fantastic explanation - thank you ser.

  • @ashok_ign5623
    @ashok_ign5623 4 года назад +9

    Thank You Which software you used for circuit diagrams(Starting of video) ??

    • @ayo6728
      @ayo6728 2 года назад +2

      Fritzing

  • @jimmykan7873
    @jimmykan7873 4 года назад +4

    Hi Mr. Murtaza I found your tutorial very easy to understand, will look forward to all your tutorials.
    I have followed this tutorial and have my robot running without problem but the robot seems to go right when forward, It seems the right motor has less power.

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      Yes this is a common issue. Both motors rotate at different speeds. This can be corrected in the software part where you can add and subtract a certain tuning value to the motors. But if the turning is quiet significant than the motor might be damaged or there might be a loose connection.

    • @jimmykan7873
      @jimmykan7873 4 года назад +2

      @@murtazasworkshop Thanks for your reply, I found the problem, the left, and right motors have different gear ratio after replaced with the same motors it works just fine.

  • @모아-t9q
    @모아-t9q 6 месяцев назад

    In this video, you used a separate power source for the motor, but instead of doing so, can't I modify the poser supply of raspberry pi (by making some voltage distribution circuit) and use only one power supply?
    Appericiate for making a good video

  • @zvisger
    @zvisger 6 месяцев назад

    This is great, but one complaint I have is that the diagram for the wiring doesn't display the actual pin names we are plugging them into. It's only a problem for me because I'm using a breakout board and I don't know where the ones you used, are mapped on the breadboard now. I have the Rpi pinout diagram, but I can never tell which directionthe arduino is supposed to be facing in relation to the pinout. It's a minor thing, and I know I can just go look it up, which I will, but I wish I could tell which pins you are actually using, by name!

  • @oguzcan815
    @oguzcan815 10 месяцев назад +2

    what software do you draw the circuit on? thanks

  • @salmankhan24
    @salmankhan24 4 года назад +1

    awesome and detailed tutorial...can you please make tutorial with bts 7960 motor driver

  • @masamohammad7101
    @masamohammad7101 2 года назад

    This video was great, thank you, but I have a question, there is a project and I will connect a 2 dc motor with a raspberry so I need a motor driver. I don't know which type to use. Is this stable? If we stop the engine, the wheels can move by any external influence or will remain stationary

  • @Sam-tg4ii
    @Sam-tg4ii 2 года назад

    I am a beginner. Can you tell me the difference between a motor controller and pico in working with motors? Do I need both? Is one better than the other?

  • @claudioguendelman
    @claudioguendelman Год назад

    can i use the same power source for raspberry and the motor driver ? thanks soo much

  • @programmingdigest7582
    @programmingdigest7582 4 года назад +2

    U r great sir❤️

  • @Callme_noori
    @Callme_noori Год назад

    Hi which app do you use for schematics?

  • @aadityanaresh9847
    @aadityanaresh9847 3 года назад

    Thank you sir !! 😊

  • @pro_gamer4558
    @pro_gamer4558 7 месяцев назад

    Which version of rpi.gpio did you use?

  • @abessesmahi4888
    @abessesmahi4888 2 года назад

    What is the name of the editor you are using? please.
    Thank you.

  • @louise1021
    @louise1021 3 года назад

    There is no red light on my motor driver unless I put the live/red wire in the far left and the black one in the far right. Any ideas what I am doing wrong?

  • @louise1021
    @louise1021 3 года назад

    Hi there. :) Any idea why is the motor so slow? When I apply the batterypack directly to it, it goes a lot faster. At 100 duty cycle the robot can't move at all across my carpet.

  • @cipopescu
    @cipopescu 4 года назад +1

    Hi! I have a question, do you have any idea why the motor won't budge at power levels lower than 30? I am using the exact same setup as yours.

    • @ananthramvijayaraj4554
      @ananthramvijayaraj4554 3 года назад +2

      Do you mean duty cycle of lower than 30? If you are talking about duty cycle it’s coz the average voltage will be the duty cycle/100*high voltage. So if your high voltage isn’t that high then 30/100*high voltage will be a low average voltage value.

    • @cipopescu
      @cipopescu 3 года назад +1

      @@ananthramvijayaraj4554 bro it’s been a year😂

  • @rajiram814
    @rajiram814 4 года назад

    Hi Murtaza, Im facing issue with the change in direction of dc motor. I connected single dc motor to raspberry pi using REES52 L293D driver module. In this driver module for a single motor i only have two pins referred as MTR and IN1 . So i tested with the code that u suggested in the video but its not working. For me the motor always rotates in the clockwise direction. PIN 20 - Connected to MTR pin in driver module and PIN 21 - Connected to IN1 pin in driver module . I dont have L298N driver.
    Could you help me in fixing this issue. I want to control the motor direction based on the IR sensor data.
    print("Change direction")
    GPIO.output(20,GPIO.LOW)
    GPIO.output(21,GPIO.HIGH)
    print("Change direction")
    GPIO.output(20,GPIO.HIGH)
    GPIO.output(21,GPIO.LOW)

  • @programmerjowo
    @programmerjowo 3 года назад +1

    noobie here, is this working on raspberry4?

  • @tiarakusumadewi2337
    @tiarakusumadewi2337 3 года назад +3

    Hi, Sir. May I know what application that you used to build the digital electrical circuit for raspberry pi? (0:35)

  • @panktiparmar2359
    @panktiparmar2359 Год назад

    hello where have u written this code?

  • @kentthomas1045
    @kentthomas1045 4 года назад

    Hi is it possible for you to do a video with servo motor like MG 996R?

  • @yasinmaden8151
    @yasinmaden8151 2 года назад

    how can i do speed control with raspberry pi pico?

  • @saifallahchakroun6253
    @saifallahchakroun6253 4 года назад +1

    What is the name of the program you use from 0:08 to 0:14 sec?

  • @visiblemh9410
    @visiblemh9410 2 года назад +1

    Hii, sir.
    Traceback (most recent call last):
    File "/home/pi/motorCode.py" , like 5, in
    GPIO,setwarings(false)
    AttributeError: module 'RPi.GPIO' has no attribute 'setwarings'
    problems sir.

  • @hasinapubgmobile4839
    @hasinapubgmobile4839 4 года назад

    Tq

  • @nalossu8564
    @nalossu8564 Год назад

    does anybody know this software he is using

  • @harisbinyousaf6146
    @harisbinyousaf6146 2 года назад

    Can you tell the python IDE you are using for your Pi?

    • @finbii
      @finbii 2 года назад

      Thonny.

  • @programmingdigest7582
    @programmingdigest7582 4 года назад

    What ide u are using plz tell me sir

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      Its called 'Mu' its preinstalled in Raspberry Pi

    • @programmingdigest7582
      @programmingdigest7582 4 года назад

      But sir I don't have are u using latest rasbain..?

    • @murtazasworkshop
      @murtazasworkshop  4 года назад +1

      Yes its the latest one . You can try installing using
      sudo pip3 install mu-editor

    • @programmingdigest7582
      @programmingdigest7582 4 года назад

      OK sir thank you so much❤️

    • @programmingdigest7582
      @programmingdigest7582 4 года назад

      Sir one question can I share ur video on my website If the content match ur video

  • @onekamil
    @onekamil 2 года назад

    not working your website! sad

  • @saadahmad4111
    @saadahmad4111 2 года назад

    GG

  • @swastiksaumya5502
    @swastiksaumya5502 2 года назад

    your website is now working

  • @swastiksaumya5502
    @swastiksaumya5502 2 года назад

    please check it out

  • @carlosfuentes9928
    @carlosfuentes9928 4 года назад

    Which simulation program are you using?