How to control Nema17 stepper motor with L298n motor driver.

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 68

  • @AmirHamza-wi7os
    @AmirHamza-wi7os 7 місяців тому +2

    For those who are wondering how to change motors direction just put (steps_per_rev/ -100) at the end of the code. It worked with l298n (Green) .... but I cant tell whether it will work with l298n (Red)....Anyways Aewsome Video....❤

  • @DomBurgess
    @DomBurgess 10 місяців тому +1

    Thanks for the video! I have an Nema 17 hooked up to a L298n and an Arduino. I have no issues operating it, but I'm having problems powering it. If I use a 5v 1a supply, it works but torque is low. If I use a 12v 2a supply, the torque is great, but the L298n pulses ever second or so which sends power to the motor. It doesnt appear to actually turn the motor, but it makes a buzzing noise which is VERY annoying. Do you know why I'm getting this pulsing from the driver?

    • @passiontechklm
      @passiontechklm  10 місяців тому +2

      This is all because of l298n driver current not enough to support Nema 17 stepper motor current,basically this driver can handle only up to 1 of continuous and of peak 2A , but if you add bigger size of heat sink will be solve .

  • @canimbenes
    @canimbenes 20 днів тому +1

    Hello. I did everything as you said, but when I upload the code to the Arduino, I see a lot of empty boxes on the Serial Monitor (probably due to the baud rate). I'm using a 9V power supply, but the motor is not moving. When I adjust the potentiometer on the breadboard, I can see the changes reflected in the lights on the Arduino, but the motor does not move at all. What do you think could be the reason for this?

    • @passiontechklm
      @passiontechklm  20 днів тому

      @@canimbenes this Stepper motor is must use 12v Battery or power supply. 9v will not support

    • @canimbenes
      @canimbenes 19 днів тому

      @@passiontechklm I’d like to ask one additional question. Is it possible with this code to stop the potentiometer in the middle position and make the motor turn to the right when turned to the right, and turn to the left when turned to the left?

  • @braulioayala6574
    @braulioayala6574 2 роки тому +6

    What is your current in your 12V supply??

  • @3Dprintforlife
    @3Dprintforlife 11 днів тому

    Hey, can I get the link of the same power supply that you used. I can't find on that works.

  • @Zimbob2424
    @Zimbob2424 2 місяці тому +1

    so I should be able to ad an on of button between the arduino and 10k potential meter, correct? and that will keep the driver from heating up when it's not being used or would I need to shut off power.

    • @passiontechklm
      @passiontechklm  2 місяці тому

      @@Zimbob2424 i suggest that you add bigger heat sink and mini fan to blow up the heat.

  • @eduardoguedespavao4793
    @eduardoguedespavao4793 Рік тому +1

    How can I do this with arduino nano? I tried to change the pins from 1,2,3,4 to 9,12,13,14 (nano pwm pins) with no results...

  • @yessyayuamandasari5710
    @yessyayuamandasari5710 2 роки тому +4

    I want to ask, if you want to change the direction of rotation, how do you do it?

  • @THEbaDrehtoMrEKCUF
    @THEbaDrehtoMrEKCUF 3 місяці тому +1

    Thank you
    very very very much!

  • @celinelusegro3518
    @celinelusegro3518 2 місяці тому +1

    Can we still use the stepper driver even though the power source produces 6 amp? or will it only work using a power supply with 2 amp below?

    • @passiontechklm
      @passiontechklm  2 місяці тому

      @@celinelusegro3518 You can use 6Amp but its need to be 12V.

  • @dhanushhr3342
    @dhanushhr3342 2 роки тому +2

    Thank you it worked great

  • @dablet
    @dablet Рік тому +2

    has anyone gotten this L298N+Nema 17 to work with ESPHome or Tasmota? if so, could you please show the wiring diagram as well as the codes?

  • @kondordv
    @kondordv 10 місяців тому +1

    what driver do you use for unipolar stepper motor?

    • @passiontechklm
      @passiontechklm  10 місяців тому

      There are many stepper motor drivers out there depending on current holding.... like a4988 , uln 2003 driver etc

  • @HoXDipannew
    @HoXDipannew 3 роки тому +1

    Very nice tutorial

  • @3Dprintforlife
    @3Dprintforlife 11 днів тому +1

    is a 12v 5A power supply too much?

  • @alisatheeralap8763
    @alisatheeralap8763 10 місяців тому +1

    Very nice, Can I use with Jetson nano

  • @robertgubberiksson2068
    @robertgubberiksson2068 3 роки тому +2

    Nice tutorial!
    I have done exactly as in your video, with the same components, but my driver gets really hot. Do you have any idea why?

    • @passiontechklm
      @passiontechklm  2 роки тому

      this driver is peak 2Amps only but if you add bigger size of heatsink its will be fine.

    • @muhammadmudassir6343
      @muhammadmudassir6343 2 роки тому +3

      sir all these video that use L298n are fake this driver is not suitable for NEMA 17 I've tried it and it gets super hot , so the solution for this is a4988 driver which I also used practically and working fine

    • @unodragon2294
      @unodragon2294 Рік тому +2

      @@muhammadmudassir6343 do you maybe have a code I wanna control a nema17 as a servo motor with potentiometer

    • @Zimbob2424
      @Zimbob2424 2 місяці тому

      @@muhammadmudassir6343 thats' good to know, don't want a fire that's for sure

  • @justinalentecer
    @justinalentecer 3 роки тому +1

    Helo, thanks for the vid. My motor isn't turning smoothly but stopping what do you think might be the problem? thanks

    • @passiontechklm
      @passiontechklm  2 роки тому

      May be your power supply current not enough?

  • @AmirHamza-wi7os
    @AmirHamza-wi7os 7 місяців тому +1

    thank you❤

  • @amalmahmoud2185
    @amalmahmoud2185 2 роки тому +3

    Can i connect nema 23 with the same way?

  • @phattangpt0939
    @phattangpt0939 2 роки тому

    your video is very good. let me ask when i supply 12V/5A to L298 and nema 17 stepper motor then after some time the motor and l298 get very hot

    • @passiontechklm
      @passiontechklm  2 роки тому +2

      L298N is peak 2Amps so to be able to handle the NEMA 17 you have to change the heatsink to the lager size and give air flow to the heatsink something like a mall fan to blow the heat.

  • @diegoalbertomartinezgonzal889
    @diegoalbertomartinezgonzal889 8 місяців тому

    Puedo conectar una fuente conmutada 12v 10A al L298n

  • @carfiallos
    @carfiallos Рік тому +1

    Hello, my stepper motor just vibrates, it doesnt rotate??? do you know why??

    • @passiontechklm
      @passiontechklm  Рік тому

      Normally that issue happen when the current is not enough to push the motor or when signal is not detect properly if you use the driver

    • @TheSquire101
      @TheSquire101 10 місяців тому +1

      @@passiontechklm Can you share with us the power supply you used

    • @passiontechklm
      @passiontechklm  10 місяців тому

      @@TheSquire101 you can use 12V 3A AC/DC power supply

    • @timlesellier734
      @timlesellier734 9 місяців тому

      Hello, I have the same problem (the motor vibrates but does not turn). I have a 12V, 1.5A power supply, is this the problem?@@passiontechklm

  • @faresalkhoor4405
    @faresalkhoor4405 Рік тому +1

    can we use two nema stepper motor on one L298n motor drive

    • @passiontechklm
      @passiontechklm  Рік тому

      No you can use two because l298 module is just 2Ampier so it will burn out.

  • @nobrane6139
    @nobrane6139 3 роки тому +2

    AMAZING !!!

  • @symontorres3952
    @symontorres3952 2 роки тому

    Is it possible to add relay module 12v to 220 instead of a battery(newbie question)

    • @passiontechklm
      @passiontechklm  2 роки тому

      As I understand your question....12V relay module means you need supply 12V to active the relay on and off but the load side Com to No is can apply either 12V or 220VAC .

  • @aaryaprayagi1929
    @aaryaprayagi1929 2 роки тому +1

    Can I use 9v DC current?

  • @annamotiwale1998
    @annamotiwale1998 Рік тому

    Can we use 6 pin stepper motor

  • @BlesTtag002
    @BlesTtag002 9 місяців тому +1

    The controller gets hot, is it normal?

    • @passiontechklm
      @passiontechklm  9 місяців тому

      Yes, that's normal but to get more reliable need to add bigger heat sink.

  • @Sohail-fi3dl
    @Sohail-fi3dl Рік тому

    appreciate

  • @m3dp_official
    @m3dp_official 2 роки тому +1

    not working..................very disappointed

  • @electronicsideas1361
    @electronicsideas1361 6 місяців тому

    Fantastic .Circuit diagram please

  • @celinelusegro3518
    @celinelusegro3518 2 місяці тому +1

    is it okay to use 9v dc power supply?

    • @passiontechklm
      @passiontechklm  2 місяці тому +1

      @@celinelusegro3518 You can try it but not sure will support to move motor or not.