Controlling DC Motor with Raspberry Pi and L298N motor driver

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

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

  • @MrKbtor2
    @MrKbtor2 5 месяцев назад

    Thanks a lot! This filled in some gaps that "step-by-step" tutorials missed.

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

    Awesome video and really appreciate the time and effort you put into this. It was so easy to follow along.

  • @st-ty1mc
    @st-ty1mc Год назад +2

    Thank you so much !!

  • @enaitzprieto6962
    @enaitzprieto6962 3 месяца назад +1

    I dont know why but the dc motor only goes one direcctio. I mean it goes to one side but not to the other side when I say it to go it stops. Can someone help me please?

  • @heronymousbot5883
    @heronymousbot5883 Год назад +1

    Does the motor driver regulate the voltage and current to the raspberry pi? Because it has to be 5V to the raspberry pi and can’t go under 3A.

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

      Raspberry pi is using a different power source. For this example, I was using a 5V 2.5A adapter and on another project (ruclips.net/video/63b76p7MuG4/видео.html) I used a 5V 2.1A power bank to power the Pi.
      Side Note: I am using Pi 3B+, Pi 4 is more power-hungry.

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

      @@collvy can I use just one battery pack to power motors and a pi? I have a buck converter to step down voltage to the pi. Would this work?

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

      In theory, you could use the same battery, it depends on the power consumption by your motors and what kind of battery (LiPo/ 9V Alkaline/ 18650 ,etc) you are using, and how much power it can supply.
      To keep things simple I prefer you use a different power supply.

    • @heronymousbot5883
      @heronymousbot5883 Год назад +1

      @@collvy I’m in a battle bot competition and we have a 12 lb weight limit that’s why. Else I would. But we’re using lipo batteries and it’s a 2.2Ah 25C battery for 2 drive motors, a weapon motor, and a pi. Everything else is negligible current draw or power consumption. The two drive motors pull 9.1A together at max speed, and the weapon (flipper) motor at max torque takes 20.45 A. I’m hoping I can connect all to one battery, with in between components like ESCs and junction board etc and connect a pi with a voltage converter

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

    What do we need to enable in raspi confit before we connect the l298n . I know we have to enable i2c but what else

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

      We don't need i2c, we can use regular GPIO to send signals to the PI.
      www.collvy.com/blog/controlling-dc-motor-with-raspberry-pi

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

    very thanks

  • @احمدعلوانخلفالله
    @احمدعلوانخلفالله 6 месяцев назад

    what is the software name to write a Python code in raspberry pi

  • @ids-do8so
    @ids-do8so 10 месяцев назад +1

    Gbu

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

    The conection esquema is wrong.....

    • @collvy
      @collvy  10 месяцев назад +1

      Could you please point out which part?