Controlling DC Motors with the L298N H Bridge and Arduino

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

КОМЕНТАРІ • 1,1 тис.

  • @Nelsonswl
    @Nelsonswl 6 років тому +64

    wow this guy is brutally descriptive, I love this channel already i wish i could give this video a 1000 likes. now i understand what is PWM. this video hit the spot on my quest for knowledge. Keep making videos like this, i have subscribed.

    • @Dronebotworkshop
      @Dronebotworkshop  6 років тому +12

      Wow what a great comment - thanks so much and thank you as well for subscribing!

    • @pravinchavhan8890
      @pravinchavhan8890 3 роки тому

      @@Dronebotworkshop
      hi , i tried to controll my motor with L298N and arduino nano , but my motor was not running . why it happened cause i checked the pins and program was also correct according with pin . but it doesn't work Can you help me please

  • @Matthew-tu2jq
    @Matthew-tu2jq 7 років тому +183

    Absolutely outstanding video! you didn't skip any detail while keeping it professionally presented. Thank you so much for this

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +23

      Thank you so much for this nice comment - really makes my day! I'm really glad you liked the video.

    • @aDAMAS20
      @aDAMAS20 3 роки тому

      @@Dronebotworkshop hi sorry for sudden ask but what is the required(max and minimum if there is such) for L298N H Dual Bridge? i tried to use my laptop/USB Port to connect in arduino but its not running. so far i dont have battery to test it. my code seems correct anyway but it is still not running so i figured the source power is at fault...i might also fry my arduino if i just randomly run voltages which is risky to replace + we are in pandemic and i cant easily go outside.

    • @sudamaprashad1853
      @sudamaprashad1853 3 роки тому

      @@Dronebotworkshop lllllllliipiop

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

      @@aDAMAS20 I don't think he's gonna answer that any time soon

  • @davidbergaragonzalez5653
    @davidbergaragonzalez5653 3 роки тому +32

    Your channel is severely underrated, you explain things very concisely, as someone with very little knowledge of electronics, I appreciate your work.

  • @julioduran2615
    @julioduran2615 4 роки тому +24

    I'm in love with that workshop. It is very well organized.

  • @Kingwinyoutube
    @Kingwinyoutube 7 років тому +52

    This channel has got some serious potential to get alot of subscribers! Please make more videos! Subbed

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +11

      Thanks so much for the nice comment. I have a few more in the queue, should be releasing one next week on the new Raspberry Pi Zero W.
      You also have a channel with a lot of potential, I just subbed to you! :)

    • @Kingwinyoutube
      @Kingwinyoutube 7 років тому +1

      DroneBot Workshop Thank you, i am excited

    • @johnclarke9054
      @johnclarke9054 7 років тому +1

      Great video, clear and precise. Thank you very much.

  • @faysalahmmed2696
    @faysalahmmed2696 8 місяців тому +1

    You are just awesome. No words can describe how good this video is.! Thank you. You helped me a lot

  • @markzickefoose5098
    @markzickefoose5098 7 років тому +57

    Nicely done. Very easy to understand and follow your sketches. You have a rare ability to explain the concepts in an easy to understand way without talking down to your audience. Thank you and hope to see much more.

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +11

      Thanks so much for your nice comment, I'm glad you enjoyed it!

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

    Thank you for sharing your knowledge, Dude!
    How can I control 20 step motors using a PC or Arduino? I mean... drivers and/or IC like the 74HC595...
    Do you know any project like so? Thank you in advance!

  • @byronwatkins2565
    @byronwatkins2565 5 років тому +5

    To skip values < 9, you can speed=map(speedStick, 0 1023, -247, 247); the same as below, and analogWrite (enable 8+abs(speed));

  • @ahooahoo983
    @ahooahoo983 5 років тому +10

    Thanks! I'm learning this so I can build a arduino controlled wheelchair for my grand monther.

    • @immanuelraynaldo717
      @immanuelraynaldo717 4 роки тому +1

      Me too, i want to know what motor did you use, the power and torque.

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

      @@immanuelraynaldo717 it needs very high torque if you want to do something heavy

  • @stefanoaltavilla3154
    @stefanoaltavilla3154 4 роки тому +9

    This channel turned to be my favourite in a couple of hours. Thank you!

  • @Bonjour-World
    @Bonjour-World 4 роки тому +1

    Have you done a tutorial on brushless DC motors ?

  • @mandelbro777
    @mandelbro777 4 роки тому +6

    great video as usual.
    love the way you systematically divide larger projects up into functional nibblets and then concisely and clearly communicate them with sufficiently high production value.
    keep it up !!

  • @liamtuneblom7123
    @liamtuneblom7123 4 роки тому +1

    How did you get the 7.4 volts power and power to the Arduino

  • @jean-valerythoraval4591
    @jean-valerythoraval4591 6 років тому +4

    2nd time i end up on your channel, 2nd time i'm impressed by the quality and clarity of the information. nice work!

    • @Dronebotworkshop
      @Dronebotworkshop  6 років тому +3

      Thank you, I'll try and keep up the quality for your next visit!

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

    Can’t joystick be used with H-Bridge for simple tasks without aurdino? Thank you

  • @stargazzn
    @stargazzn 7 років тому +4

    I liked this project. I'm working as an English teacher in Moscow and some 12 to 16 y.os have no interest in learning English. Then neither did I at that age. Some of them are very bright and they start getting physics in school at about 13
    So I want to teach them how to build a whole series of simple electric motors. This will be the perfect way to introduce them to the Arduino!!!

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +2

      Hi Robert, I think that's wonderful! Teenagers can be so creative if they are just given the opportunity.
      Best of luck with your teaching!

    • @stargazzn
      @stargazzn 7 років тому

      I ordered 10 of these devices for less than $20. I only really wanted 3 of them, but I couldn't turn down this offer.. Perhaps I'll build myself a whole new niche teaching English and might even get adults interested. :)

  • @martinwhitehurst9893
    @martinwhitehurst9893 6 років тому

    Hey so maybe you can help, I want to take a RC Excavator that has push buttons for some of the movements and I would like to use a joystick for those movements. Is it possible and would you help me figure this out.

  • @themarceloloo
    @themarceloloo 5 років тому +8

    Thanks for this valuable tutorial. Obrigado, aprendi facilmente com sua explicação!

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

    Really thank you sir, I was not knowing all this until it got watched this. Thank again!!

  • @wedoourbest2261
    @wedoourbest2261 7 років тому +5

    Excellent explanation, organised and great presentation skills. You deserve a huge following, keep it up please it is greatly appreciated!

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +2

      Thanks so much, I am indeed hoping to build up a following. Of course the only way is to get more videos out, so expect to see more very soon!

  • @chiavenato1
    @chiavenato1 5 років тому +2

    As always, your videos are THE BEST VIDEOS about arduino in the youtube congratulations! Best regards!

  • @gruntingbuffalo
    @gruntingbuffalo 7 років тому +7

    Hello Dronebot Worshop. Informative, interesting and well delivered. I think you have a potentially large audience of people like me who may not have an electronics or programming background but who are interested in learning about arduino, raspberry pi, ect. Thank you for the video, hope to watch more from you soon.

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +2

      Thanks for the nice comment Karl, it is my pleasure to teach anyone interested in the Arduino, Raspberry Pi and electronics anything that I can. I know it's been too long since I last posted a video but that should change very soon as I have a few that are almost ready to upload.

    • @stclairstclair
      @stclairstclair 6 років тому +3

      Karl, I'm learning code at 51, AAAAAAaarrrrrgggggrrr.....But im over the hump!

  • @sandychan4901
    @sandychan4901 6 років тому

    Hi , i wish to ask does this tutorial on controlling dc motors with L298N H bridge works the same way as when using a speed sensors in the another tutorial videos?

  • @havoc010101
    @havoc010101 7 років тому +7

    This is a very informative video!! Great for anyone looking to get started with Arduino.

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +2

      I'm glad you found it useful, thank you for your nice comment!

  • @salvatorebarbaro5862
    @salvatorebarbaro5862 4 роки тому +1

    I'm sorry to disagree with the sketch you submitted for the following reasons:
    1) you start from the assumption of controlling the L298 using INH1 and INH2 to indicate the direction and adjust the speed by injecting the PWM signal via the ENABLE pins, this can work with Drivers such as the L298 which have inputs managed by an operational comparator, but using other IC or H bridge based on different technologies this can lead to cross conduction problems! with relative destruction of the circuit.
    2) The correct management of the L298 itself is to use an INH input to inject the PWM signal with variable duty cycle to adjust the speed and the other INH input kept at a low logic level - and vice versa to change the direction of rotation.
    The enable pin must only be used to completely cut off the power to the two half bridges and block the H bridge.
    Unfortunately I note that this method of management leads many enthusiasts to use the same system (shetck) with other H bridges with often catastrophic results.

  • @jamescullins2709
    @jamescullins2709 7 років тому +13

    Wow what a clean workbench! Good video.

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +8

      Thank You - I try and keep it neat, makes it a lot easier to get things done.
      Wasn't always that way though, you should have seen the previous workshop that was in my basement before I built this one last year! But I'm pretty proud of this one as I built it all myself (I had never drywalled before in my life LOL) so I plan to keep it neat.

    • @claus6082
      @claus6082 7 років тому +2

      And that's how you can tell that someone is a professional.:D Keep that clean!

    • @crazyg74
      @crazyg74 6 років тому +1

      it's fabulous. Inspires me to redo mine! :-)

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

    love you 😘😘😘😘😘😘 man ur video can teach me so they can teach anyone ( my first lang. isn't eng.)

  • @ady.career
    @ady.career 7 років тому +15

    Very nice workshop and explaination too. As a beginner I found this very helpful...

  • @MyBigThing2010
    @MyBigThing2010 7 років тому +1

    great format and info...wish ya had more videos

  • @luckychucky3426
    @luckychucky3426 7 років тому +12

    You did a great job I'm very impressed with your explanation I've learned a lot thank you very much you may you you made it slow enough that I could keep up but fast enough where I didn't get bored thanks

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +2

      Thanks for the feedback Charles, I appreciate it. Glad to hear that you found the pace to your liking.

  • @HA-xy2fe
    @HA-xy2fe 5 років тому

    your tutorials are really helpful and you explain every single detail of everything, I really need someone to help me with my project which is connecting solar panel to the Arduino wireless car, may you please help me!

  • @rileypeterson1796
    @rileypeterson1796 5 років тому +9

    I just realized the intro music is the same as the one for Hermitcraft Recap

  • @bluehornet6752
    @bluehornet6752 5 років тому +1

    Great video and channel. Definitely made a subscriber out of me!

  • @RegisMichelLeclerc
    @RegisMichelLeclerc 6 років тому +3

    Personally, I prefer soldering my DIP components myself, but that's just a matter of taste. Sometimes I'm lazy and just plug a Nano.
    map() is overkill when converting a 1024 values range into a 256 values range, "div 4" is not as bad, but still excessive, and [0-1023] is definitely a multiple of [0-255]. The shortest way of dividing by 4 (integer division) is simply to shift the bits right by 2 positions (shr 2, or >>2). Also, you prefer using 511 as the middle of the interval [0-1023] because it's the end of the first half of the interval, not 512 which is the "0" of the second half. But as you say, the joystick's center is not that precise, you don't care too much. How about a "center" function?
    The test for the joystick position ("margin") is pointless, because you also have a test for minimum speed before sending the analogWrite() commands, so you're basically doing twice the same thing.
    The command from the joystick EITHER changes direction OR goes forward or backwards. Not very practical...
    Therefore, you only want shr 1 (a shorthand for div 2), and subtract 256 to it, giving you 2 values (H and V) in the interval [-256 ; +255]. A test on bit 15 (shr 15 gives 1 for negative numbers) gives the sign in each direction (the 10-bit [0-1023] value is converted into a 16 bit value when you store it into an int) so it's pretty easy to get the direction to send into the H-bridge without cascading the if()s.
    Anyway, if() is just a waste of resources when you can use a and(0xff) to force a [0;255] range.
    Also, on demo2(), a linear for() loop with a constant delay is definitely not right for an acceleration or deceleration, that's simple physics. You wouldn't do that in the real world.
    I know, on such a "project", you have used only a tiny part of the memory for code and variables, you don't care too much about code speed anyway, thus all of the above may sound excessive ranting, but the goal is to get proper techniques rather than trying to find the quickest way to build an example application, right?

    • @wmd5645
      @wmd5645 5 років тому

      Thanks i'm going to try and use this. You must be from the old school. A vid on this kind of stuff would be beneficial to the younger generation(me included) that thinks memory and performance is abundant. Thank you.

  • @jomango1929
    @jomango1929 5 років тому +1

    You the best ! Keep going ! Wishe you best luck !

  • @shahidilhan3139
    @shahidilhan3139 7 років тому +4

    why do you need a motor driver?

    • @Dronebotworkshop
      @Dronebotworkshop  7 років тому +7

      Not sure I understand what you are asking here? Are you asking why I personally would need a motor driver board (answer - to build robots) or why one would need one in general (answer - to control two DC motors using the TTL logic level signals from a microcontroller or other logic device).
      Your avatar indicates that you are a programmer so I'm not sure what you don't understand here. Please let me know so I can assist you further.

    • @AndersJackson
      @AndersJackson 7 років тому +16

      You need one driver, as the Arduino output pins can't provide enough current to drive a motor. If you try get to much current from or into a port, you will destroy the port and maybe even the Arduino.
      You have to check, but the Arduino have a maximum output current on each board and a maximum sum of all ports. So you are not allowed to go over both limits.
      There are also problems driving a motot, which a driver also fix, like the motor can generat to much short spikes of higher voltage, which also will ruin you Arduino port, and posible the Arduino.
      A ruin Arduino can be fixed by changing the processor chip.

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

    Your channel is one of my favorite, awesome explanation; clean and precise as always. Thank you.

  • @__nabinghosh__
    @__nabinghosh__ 5 років тому +1

    Nice but try to make it wair less

  • @kartikpujar4527
    @kartikpujar4527 5 років тому +1

    The best tutorial for Arduino..... The shop is fantastic..... And i would like you to make more videos on raspberry Pi

  • @22wilove
    @22wilove 6 років тому

    ok thats very good
    i have question how you controlling solenoid with arduino uno and L289N please respond and put in the comment the code?

  • @Anton-sz6ef
    @Anton-sz6ef 5 років тому +1

    Please someone answer : can I use it for a physics project where I need a high frequency current of like 3.3V meaning low and 5V meaning high. Can I like use it by changing it really fast with the Arduino commands and create the signal I want to create ? Thank you!

  • @craign8ca
    @craign8ca 5 років тому +2

    Wow. . .what a great video!! The link to this is a definite keeper.

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

    Great movie as always! Thank you very much! : D
    I have one question. In my boat, I have to replace the engines with more powerful ones. I don't want to burn my motherboard. The motors are brushed. I need an ESC for brushed motors with more power. But there is a problem - only 2 wires go per motor from the motherboard. The new ESC has 3 wires at the input. I don't know how to connect the wires - to still control the speed of the motors. Is there any signal converter I need? Do I also have to construct such a converter by myself? If anyone knows how to solve such a problem, please answer my question. Thank you and best regards. : ).

  • @yellowdogfarm
    @yellowdogfarm 4 роки тому +1

    Superb video and the web page tutorial is outstanding! Thanks so much!

    • @franciscalderbank8623
      @franciscalderbank8623 4 роки тому

      I can't agree more the web page information is better than any textbook.

  • @MrHristoB
    @MrHristoB 6 років тому

    Any chance for video with the Monster motor shield. I'm having trouble getting it going and the information out there is very sketchy.

  • @chetangopal6226
    @chetangopal6226 5 років тому +1

    Outstanding video and very well explained. Will be experimenting with H-Bridge over the weekend.

  • @QuickishFM
    @QuickishFM 5 років тому +2

    Great video that focuses specifically on the board and PWM pins. Thank you.

  • @ChurchofGod7dayAdvocate.
    @ChurchofGod7dayAdvocate. 4 роки тому +1

    You never disappoint, awesome stuff.Thanks, so much-loved

  • @andersdaun3950
    @andersdaun3950 4 роки тому +1

    Thanks for all the great videos.
    Greetings from Sweden

  • @acadman4322
    @acadman4322 5 років тому +2

    You are the best instructional video maker on the internet. Believe me, I've looked. You are truly a treasure.

  • @lorue
    @lorue 5 років тому +1

    Saludos desde México. Very very gooood your chanel and videos!!

  • @johnmellor6065
    @johnmellor6065 6 років тому +1

    i really enjoy your presentations and nicely paced videos great stuff thanks

  • @fredericosilva3645
    @fredericosilva3645 5 років тому +2

    Nice video bro!! Congrats!

  • @mr.makeit4037
    @mr.makeit4037 4 роки тому +1

    Very nice, clean, and organized shop. Love the parts drawers

  • @arnavranjan7881
    @arnavranjan7881 5 років тому +1

    Can I connect 2motor driver with one Arduino???

  • @sewingmachinesindetail
    @sewingmachinesindetail 11 місяців тому

    Thanks for this video. I actually miss the PCB diagram. You can find the datasheet for the chip, L298N.
    Questions:
    1) Do the PCB have free wheeling diodes for the outputs?
    2) I am a bit confused regarding current sense of the module. If you like to measure current, do the jumpers connects to ground? Do you need to apply an external shunt resistor at the jumpers position?
    3) If you got some other way of controlling the H-bridge, I guess it will be in order to use In1 and In2 with individual PWM signals and have EnA constantly high.

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

    I wish you had this in printed book format, very good thanks.

  • @MrDriveAndFlyRC
    @MrDriveAndFlyRC 5 років тому +1

    I think you are my spirit animal.

  • @sickandtiredofcomplaining6574
    @sickandtiredofcomplaining6574 5 років тому +2

    Excellent video I’m 38 and trying to learn this stuff... thank you!!! Beautiful shop setup as well

  • @tf5658
    @tf5658 4 роки тому +1

    this is the best L298N tutporial on youtube. thanks you a loooooooooooot

  • @fernandoyohara1138
    @fernandoyohara1138 2 дні тому

    Hello. Question from a newby on an old video. Why do you turn off motors by setting In to LOW and not setting Enable to LOW?

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

    If I havew problem with ESP32/8266/Uno/Mega I first check this channel. Bravo.

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

    This video is so informative, you need nothing else but this to understand how to use different motor drivers

  • @oljobo
    @oljobo 3 роки тому

    Wonderful, just wonderful 😍. Merry Christmas‼️🎅

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

    이영상보고 예쩐에 마이크로프로세서 과제할떄 RC카를 만들어야하는데 어떻게 구동시킬지 몰라 헤매고 있다가 해결책을 찾고 좋은 성적을 받았네요.. 정말 친절히 잘 설명해주십니다..! 다른 DC도 부탁해요 감사합니다!

  • @jinitgandhi1197
    @jinitgandhi1197 6 років тому +2

    Great Video mate! I've been through many other tutorials regarding the same topic but none was as informative and understandable as yours is. Keep more coming, Thanks! Subscribed!

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

    this is my new favourite channel!

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

    I just love it man , you did incredible awesome ... Thank you so much dear grandpa

  • @jdoc99
    @jdoc99 6 років тому +2

    This is the explanation I have been looking for. You covered all the little details thoroughly enough to give a newbie like the confidence to get started. I'm so happy I found your channel.

    • @Dronebotworkshop
      @Dronebotworkshop  6 років тому +3

      So glad you enjoyed the video Joshua, I am also happy that you found my channel!

  • @GaryMcKinnonUFO
    @GaryMcKinnonUFO 5 років тому +1

    Thanks for this, nice and clear and concise, liked and subbed :)

  • @kennethkustren3966
    @kennethkustren3966 4 роки тому

    Try that 298 on a NEMA17 stepper.
    Lets get crazy.
    Build a DREMEL -based CNC Router...
    Because CIRCUIT BOARDS exist... with small holes.

  • @berniken6511
    @berniken6511 5 років тому

    Hi, could you please advise me to where the Zip file is containing the project L298N software, I have searched without success. Thank you........................................Berni

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

    Great video.
    I’m trying to this like your car but huge hubs motors and 72volts, the throttle still works from a 0-5v, but when you pull back I would not want it to engage reverse as the forward momentum would burn out the motors. I would just want them to stop forward throttle or maybe start it’s regeneration braking.

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

    Hi, could you do a video on how to use and program an Arduino Uno with a Makerbase TMC2160-OCV1.0 STEPPER BOARD? Regards Freddy

  • @JamesTaylor-rater193
    @JamesTaylor-rater193 Рік тому

    So, when i tried to control the speed, the motor was just going at max speed no matter the number i gave it(aside from 0 which stops it)
    Can you help?
    I am using the L298N motor driver.
    I removed the jumpers, and added a connection from ENA to my arduino, but when i set it to an integer between 1 and 255, it just goes at max speed

  • @zenSutherland
    @zenSutherland 4 роки тому +1

    I love your videos and have learned so much - thanks again!

  • @caver662
    @caver662 4 роки тому +1

    No hablo ingles pero me salvo esto de mi examen

  • @ssqaurecontrolssquaretrain5587
    @ssqaurecontrolssquaretrain5587 5 років тому +1

    Your videos are awesome!!! Great work done by you. Thank you for such excellent videos.

  • @ianm1898
    @ianm1898 4 роки тому

    I dont know but if I use analogWrite, the motor doesnt want to run at all, even 200
    it will run only for digitalWrite(enA, HIGH);
    I have checked
    const int enA = 12;
    const int in1 = 11;
    const int in2 = 10;
    void setup()
    {
    Serial.begin(9600);
    pinMode(in1, OUTPUT);
    pinMode(in2, OUTPUT);
    pinMode (enA, OUTPUT);

    }
    void loop()
    {
    analogWrite (enA, 60);
    digitalWrite(in1, HIGH);
    digitalWrite(in2,LOW);
    }
    motor doesnt want to run -_-

  • @RajashreePint
    @RajashreePint 11 місяців тому

    Great video. Such clear and concise instructions, and great explanations on how things work. One thing though. The L298N has an input voltage range of 7-12VDC correct? Wouldn't it be easier to leave the transformer jumper in place. Then you would have an output of 5VDC from the L298N that you could power your Arduino

  • @doublerave6536
    @doublerave6536 4 роки тому

    Really nice video. Also is it possible to control only current with H-bridge?
    Thanks in advance.

  • @adrianrawlings2470
    @adrianrawlings2470 6 років тому +1

    Enjoying your tutorials a lot. I like how you present the projects and break down the steps. Would you please do a video on building an Arduino controlled PID circuit for DC motors. There are plenty of videos explaining PID bit none show what to use to get the feedback needed. Keep up the great work.

  • @peacefulandpretty2372
    @peacefulandpretty2372 6 років тому +1

    Awesome video! Thank you! Your workshop is soooooooo beautiful.

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

    This is my favorite Arduino channel. Thank you from Australia.

  • @bronsonalex48
    @bronsonalex48 7 років тому

    Nice tutorial. What if I drive both line (IN1 & IN2) to HIGH?

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

    Thanks to PWM , i can control DC motors using the L298N , because i use FPGA board in all of my projects which have digital IO only

  • @byronwatkins2565
    @byronwatkins2565 5 років тому

    Why not just speed=map(speedStick, 0,1023, -255, 255); if (speed

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

    Hello there. I'm from Finland and we famously don't smalltalk much so when I'm saying you saved our university-level assignement, I do mean It. Everyrhing works fine with our line followin robot but... The 5 V for logics (???) comes from USB i.e. the wire has to be attached between computer and the Arduino board. Are you having two different powersources with this? I am abreal novice so I' m sorry if I ask a stupid guestion. Anyway Youre really good at explaining things.

  • @webslinger2011
    @webslinger2011 6 років тому +1

    Thank you for a well explained and detailed sketch. Just starting out with arduino.

  • @bpbigman1
    @bpbigman1 6 років тому

    Brilliant video! Could I use an Interlink Electronics FSR402 0.5" Diameter Force Sensing Resistor to move one or two motors to a position (or say move the motor slowly for 4 seconds or so) when pressed and stop the motor - then when pressure on the Force Sensor is released, the motor goes back in the opposite direction to the starting position? I would be truly grateful for any assistance. Thank you.

  • @danieldewindt3919
    @danieldewindt3919 4 роки тому

    Thanx for explaining how to work with this driver. Mine will arrive in twoo days probaby.
    I'm a noob when it comes to programming and microcontrollers.
    Looking at the video around 30:51min you made me wonder.
    It is really nessesarry to subtract "460" form "JoyposVert" and than invert it using "*-1"
    Why not using the "map()" function to achieve this ressult?
    Kind regards,
    Daniel

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

    First of all, thx for the great video. Really well explained. But i have a problem
    Based on 13:54, you using 7.4V. I try to using 3 batteries with 3.7v each, which is the total is 11.1V. And the motor stopped working. Why?

  • @fernandovanegas1273
    @fernandovanegas1273 5 років тому +1

    Very understandable

  • @clovertu5616
    @clovertu5616 6 років тому +2

    This is an awesome video, very descriptive at the right pace, and has consolodated lots of knowledge I've found scattered around other videos in one nice 30min package. Thanks again, been making notes through out ;)

  • @iorisoldier
    @iorisoldier 5 років тому

    Thank you very much, English is not my language, but it speaks so clearly, that I asked to understand it with my basic English, besides that it explains very well

  • @TexasStatesman
    @TexasStatesman 5 років тому +2

    Your videos are outstanding and greatly appreciated, especially to a newbie like me.
    My original intent was to build the robot following your “Build a Robot” series but up to video #5 I realized it was somewhat more than I could do, so I’ve opted to learn and build from your individual robot videos (baby steps). I am familiar with ac electrical power which helps when working with dc.
    I’ve built a few of your examples, following the instructions, including all on this video, using the Arduino and motor controller and none of them functioned initially. Reading the comments from your other followers made me believe it was something I was doing wrong. I purchased all the same equipment and followed your instructions (I think). But this actually turned out to be a blessing. I was forced to read and learn about Arduinos, motors, motor controllers, etc. and not just piece pieces of equipment together and copy code.
    For instance, in this video with regards to using a joystick. Following your instructions, I was able to get motor B to turn in one direction, nothing else. Moving the enable pin for motor A to #2 on the Arduino and the data pins to #6 and 7, then updating the code, everything is functioning fine. Having to make these adjustments I hope is not a result of me doing something incorrectly as far as your instructions. (Maybe the equipment is not created equal?)

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

    Would anyone know how much current can pass through one of these? I'm particularly interested in how much the FETs will limit current, as I do not want my NEMA 17 to experience over 1 Amp!

  • @plasticelectrics
    @plasticelectrics 3 роки тому

    oh my thanks and danke and grazie.... saved me... i will get my pendulums swinging without clicking relays now !!!...top notch tutorial....

  • @cesarmansilla3407
    @cesarmansilla3407 4 роки тому

    Dear thanks for the video.
    A query. Is the L298 also used for the use of Pan Tilt Outdoor like the PT303 (12vDC)?
    thanks!