How to work with BTS7960 motor driver and Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

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

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

    Great one! Simple one for beginners. You haven't given the unnecessary things which will help someone to start their journey....

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

    In the sketch pins are wrong defined. The correct pin definitions are: R_IS = 1; R_EN = 2; R_PWM = 3; L_IS = 4; L_EN = 5; L_PWM = 6;

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

    the pins are wrong defined in the example sketch...

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

    It is not better to have a single PWM signal and the ENABLE signals of the directions of rotation, to have them through an inverter. In this way they will NEVER be both enabled and a Single PWM signal would serve to rotate the motor in both directions. Let's imagine a 2 motor application, we would need 4 PWM signals in this way and only 2 if we do it as I propose. Does it seem correct?

  • @farhansadid4753
    @farhansadid4753 4 ปีที่แล้ว

    Wow! So cool! Keep going, brother!

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

    Hi! I'm confuse why do you set L_IS and R_IS as OUTPUTs, they should be set as INPUTs.
    Pin IS of the BTS7920 is an OUTPUT Pin !?!
    Also, I have made a schematic and L_IS and R_IS are directly connected to the respective pin 5 of the BTS7960 while all OUTPUTS to the BTS7960 such L_PWM, R_PWM L_EN and R_EN goes through the buffer 244 before interfacing to BTS7960 motor driver.

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

      You're right. X_IS pins are actually outputs from the motor driver. The TH-camr has no clue.

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

    Could you explain why you need to put both motor and battery ground together ?

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

      To complete the circuit...

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

      The two boards are effectively two different DC powered subsystems. The Arduino is powered from the USB lead and the motor driver from (in this implementation) a 9V DC battery.
      In order for two such subsystems to signal to one another they must have a common ground reference (i.e. to agree on what 0 Volts looks like!) thus the need to cross connect their ground leads - but just once. Multiple common ground connections between two subsystems can cause problems. Without that common ground connection, they wont communicate properly or at all, and also they may damage one another.

  • @ArcanePath360
    @ArcanePath360 4 ปีที่แล้ว

    Do you need to wire up 3,4,5,6 if you are only intending to use PWM? (pins 3,6 on Arduino?) I don't understand what IS and EN stands for.
    Thanks

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

    The Arduino numbers on your diagram don't seem to match those in the code. The pins used in the code start from 2 but on the diagram they start from 1. As has already been said R_IS and L_IS should be set as INPUT and not OUTPUT

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

    Which hex coupler did you use for connecting the wheel with the motor ?

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

    Hi, I try this with two motors and they work very well but when I tri it with another servo conected to Arduino Uno, one of the motors doen't work, that it is, only one motor and the servo work well. Would yo know why?

  • @user-sm8wo3dj5z
    @user-sm8wo3dj5z ปีที่แล้ว

    how do you add a josystick to control direction and speed?

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

    what is we use dual motor driver could please explain
    what changes should we make and we'll use 4 motor

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

    Both RPWM and LPWM pins of my bts7960 are short. Does that mean I've burnt mt bts7960.?

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

    olá, pode ajudar, estou a fazer uma bike eletrica usando o arduino e a placa bts, mas tem que ter um potenciometro para controle da velocidade, como se faz pra acrescentar esse potenciometro e atualizar o programa? obrigado

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

    Sean Lyon
    4小时前
    Great video! I am making a ball launching machine using a 12V 30W motor and a 16.8 Ah Lithium battery. I need the motor to spin one second and wait for 5 seconds and repeat this cycle. Would this motor controller work with this setup? Thanks

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

    can u use 2 of this driver using 1 microcontroler to control 2 motor ? and should i connect the vcc and ground pin to the arduino ? will it burn the arduino ?

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

    Hello, how do i use the low-side MOSFET inside the BTN8982 when the load (Motor) is connected to the Vs + supply (+24 Volts) and O/P terminal (tab and pin 4)? I'm using a PWM drive signal at the input of IN while INH is held high (logic +5volts)? The datasheet shows that to select either the high-side or low side MOSFET transistors inside the BTN8982 will mean that when the PWM signal is high (+5 volt level) then the high-side MOSFET will be on therefore shunting the motor which will act a brake, which is not efficient? Any ideas?

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

    Can i use MY1016Z2 Motor (250 watt with 24V )with this driver ?

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

    R_IS and L_IS should be set as INPUT! Not OUTPUT! They tell your Arduino board about how much current your motor is drawing!

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

    Thank you very much for this great tutorial!

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

    Nice one friend! I use the IBT-2 and arduino on my DIY motion simulator (full frame platform) which interfaces with Racing simulator software games! You did a good job on this post! DMAX motion simulator ch

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

    Awesome video. Thanks. I sure burned up a lot of L298N's.

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

    Off topic... but how much rpm is that motor?

  • @javierito8808
    @javierito8808 4 ปีที่แล้ว

    Hi! thanks for your video! do you have something when we need connect two motors?

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

      You can simply connect two motors to the motor output pins and they will work together. But if you want to control each of them individually, then two BTS7960 is needed.

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

      @@IngenieroLab I want to control two motors and each of them individually and I think I will use two BTS7960s. However, Are there enough pins for Arduino to connect two BTS? And as I see in your video, pin R_IS and L_IS you set LOW logic the whole time. Is it okay if I don't connect these two pins to Arduino? Hope u answer me this question. Thank you.

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

    how many of the that Board the arduino UNO can handle ? is there a bigger arduino which can handle 36 IBT_2 ? thanks

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

      Yes, an Arduino Mega 2560 will do the job.

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

    Dear, I have one question about this H-bridge. I really appreciate if you could help me, answering to this comment.
    The thing is that I need to use this H-Bridge for a project I'm developing to can control something at 40A continiously. The problem is that I don't understand how is possible that the connectros in this circuit can support 43A continiously. Everywhere in internet I read that this can work at this high current, but when I look to this small connector I think this can hardly resist it... I have some of this H-bridge and they work perfectly, but I never tried to use it at high current... Normally to can drive high current you need thick cable, but this thick cable doesn't fit in this small connectors...!! Another point: I have been reading in the side of this connector (marked in the green plastic) that this is designed for maximum 220VAC and 10A... So this is confirming a maximum current of 10A, isn't it??
    I hope you can tell me something about it, probably you have more experience... Thank you so much in advance...! :-)

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

      It can not handle 43A continuous. It can only handle about 10-15A.
      The problem is that the heatsink is mounted in a stupid way, it should be mounted directly on top of the two main driver chips, using a good thermal paste. This will help it handle more, but how much exactly I do not know.
      The 43A rating is that of the chip datasheet, which assumes "sufficient" cooling. If you want to guarantee 43A, you should mount a very good heatsink.

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

      @@ChielScape I have three of these, with a 120mm intake fan blowing on the fins and a 90mm exhaust fan. I've been running them for over 300 hours and the most current my motion sim rig has shown is 36 amps (12vdc) and that's at big directional change acceleration to hard braking. My motors are 50:1 and are pretty big. But I agree with you that the heatsinks should probably be ON the Chip.. DMAX motion sim channel

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

      @@ChielScape So if i use 250 watt motor with 24 V maybe that's work ?

  • @youssefkhafaga
    @youssefkhafaga 4 ปีที่แล้ว

    Nice work, thank you.

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

    Can this driver be used to drive a transformer winding to create an inverter?

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

      This is a motor driver. Look for a dedicated inverter if you want that.

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

    Hello. What will happen when you apply a PWM signal to RWPM and LPWM at the same time? Will it stop or will there be a short circuit and damage?
    Witaj. Co się stanie gdy podasz sygnał PWM do RWPM i LPWM jednocześnie ? Zatrzyma się czy będzie zwarcie i się uszkodzi ?

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

      If both pins are high, the motor will brake (not break).

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

    Thank you, this help me a lot,

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

    could I control two parallel motors (3A max each) with that driver?

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

    is there a way to make it go one direction only ?

  • @brainfreeze911
    @brainfreeze911 4 ปีที่แล้ว

    great tutorial... what if I want 2 motors running and controlled it by a joystick? is it posibble? can you helpme with the codes TIA

    • @IngenieroLab
      @IngenieroLab  4 ปีที่แล้ว

      Yeah you can control two motors with with joystick using bts7960. Recently I will provide a video explaining that to everyone.
      Thanks for your response.

    • @brainfreeze911
      @brainfreeze911 4 ปีที่แล้ว

      @@IngenieroLab is it posted?

    • @IngenieroLab
      @IngenieroLab  4 ปีที่แล้ว

      @@brainfreeze911 Not yet, it will be posted by next week. Stay tuned, you will get it ASAP..... Thank you!

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

    Can it control 220V 1.5-2Hp gear motors?

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

    Can I use this with four motors? If yes how should the connections be?

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

      Only if you plan to control those motors together. It cant separately control 4 motors, only 1 with its 2 terminals: 1 positive, 1 negative (they change polarity to reverse direction) for the motor output. Otherwise you would clearly see 8 motor output terminals. Still, if the total current consumption of those motors isnt way too high, you could connect all 4 motors to the same 2 terminals. I guess you want to control the motors independently, so this module isnt for your application.

  • @harownowon6449
    @harownowon6449 4 ปีที่แล้ว

    hi. is it suitable for nema 17 stepper motor??

    • @IngenieroLab
      @IngenieroLab  4 ปีที่แล้ว

      Thanks for asking. I'm afraid, apparently it's not suitable for stepper motors. But you can use it for steppers though by changing the sketch.

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

      @@IngenieroLab How so?
      There are only 2 high voltage/current outputs and for a stepper motor you need 4 ideally or at least 3.
      If you know how, please let me know, that would help a ton. As I'm trying to drive a number of steppers and I'm in search for simple and cheap drivers.

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

    Vey much pro, WOW.

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

    Thanks for the tutorial

  • @AbdulRazak-fz6ie
    @AbdulRazak-fz6ie 4 ปีที่แล้ว

    How to know is rpm encoder sir ?

    • @IngenieroLab
      @IngenieroLab  4 ปีที่แล้ว

      You must use a rotary encoder to know the rpm of motor. Only BTS7960 can not detect that...

    • @AbdulRazak-fz6ie
      @AbdulRazak-fz6ie 4 ปีที่แล้ว

      @@IngenieroLab i have motor PG45 with encoder sir ,but i don't know to know the RPM with arduino .i hope you can help me to know that sir🙏

  • @SURYA_NAsurya
    @SURYA_NAsurya 4 ปีที่แล้ว

    thanks this work in arduino leonardo

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

    Hello bro can i use L298N

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

      Yes

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

    is this driver works with Wiper Motor ?

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

      It depends on the wiper motor. If it has just two connections into the motor then it may work - but that will depend on the current drawn by the motor (i.e. what amps it consumes). There should be some kind of label on the motor that says (for example) something like "12V 15A" meaning it needs 12 Volts at up to 15 Amps.
      This board supposedly can supply up to 42 Amps - but a guy called RoboxJax did a detailed test of this board here on TH-cam and concluded that 15 Amps is probably a safe continuous current limit for this board - else it will overheat. Having said all that, the board does feature over-amps shutdown protection so there would be little to lose by trying out your 2-wire motor to see if it works - assuming your power source (car battery?) is also up to the job.

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

      @@alanmusicman3385 I would suggest download the PCB mount with 40mm fan and add active cooling on there if someone plans to run at the higher range of the limits so that it can prolong the life

  • @recraze
    @recraze 4 ปีที่แล้ว

    Clear, well So thanks.

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

    can we run 5 motoros by one arduino ?> with 5 IBT_2 ?

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

      I have been able to run 3 motors from one arduino. Using 3 IBT-2.. I dont think you can control five without using two arduino's. Not enough IO pins.. I built a 3DOF motion simulator for sim racing with one arduino and 3 ITB's.. DMAX motion sim Ch

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

      @@DMAX_DIY I found out how to run 18 IBT which can run 18 with one arduino due with the help of two Multiplexers

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

      @@EnergySeeker Well I did not think of multiplexing. Good job.. I'm trying to switch over to the sabertooth 2x60. I already have some JRK12V12's. But thinking of upgrading to more powerful motors for a 6DOF

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

      @@DMAX_DIY if you check my channel you will see how I did the 18 motor drive with one arduino
      But am using it for something else not motors

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

      @@EnergySeeker Cool.. I'll check it out Amir. DMAX

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

    You're connecting 6 data pins, and you're only using 4 of them.
    Why?

    • @a.sanusinazareth9213
      @a.sanusinazareth9213 2 ปีที่แล้ว +3

      I think, mostly tutorial not appears as it is. It needs to be "Oh-no" from the learners to investigate deeply why not working. *besides, many tutorials are fake LOL

  • @shahriarswapnil9649
    @shahriarswapnil9649 4 ปีที่แล้ว

    great video bro

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

    I tried a few BTS but easly burn. No protection . I do not recoment BTS7960 module.

  • @lepswithtanveer78
    @lepswithtanveer78 4 ปีที่แล้ว

    Good job bro

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

    your diagram is something, and your actual connection is something else? where is the motor ground connection to arduino in your diagram? where is your power connection to arduino?

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

    sir bluetooth add kar ke video bana do

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

    nice work

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

    I thought it was a double H driver.

  • @sampamnl.8964
    @sampamnl.8964 7 หลายเดือนก่อน

    ขอบคุณมากครับ

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

    haiya chawnima

  • @mendolgosong4075
    @mendolgosong4075 4 ปีที่แล้ว

    Subtitle Indonesia please

  • @hamzael-khanchouf1770
    @hamzael-khanchouf1770 2 ปีที่แล้ว

    Thanks

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

    tanks

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

    Nice video.

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

    change your voice bro

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

    Is this suitable for stepper motor?

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

      No

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

    Hello. Is it possible to use plc s7-1200 which supplies PWM Pulse like Arduino to control DC Motor 24V 2A? Thank you so much.

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

    Can I use BTS7960 to drive hub motor?