Using BTS7960 BTN8982TA PWM H Bridge motor controller module with Arduino library

  Рет қаралды 128,461

Robojax

Robojax

Күн бұрын

Пікірлер: 498
6 ай бұрын
Thanks! This detailed step-by-step walk-through on how to operate the BTS7960 motor driver was exactly what I needed
@whitneydesignlabs8738
@whitneydesignlabs8738 2 жыл бұрын
Thank you so much! Works great. I moved your test code and wiring over to a Raspberry Pi Pico and it works great. All I had to do was ensure to use same GPIO pins as the code. It worked perfectly with no issues. BTW, I am using a wheelchair motor at 24vdc. So far under no load, running non stop for an hour, the chips don't even get hot.
@robojax
@robojax 2 жыл бұрын
you are very welcome. would you please share the code on Google drive or somewhere so I can share it with other? many people might need it. The best thank you for me is to subscribe to my channel. thank you.
@whitneydesignlabs8738
@whitneydesignlabs8738 2 жыл бұрын
@@robojax Thanks again. I thought I replied already, but I don't see the comment. Here is a link to my video using your code: kzbin.info/www/bejne/oamqqI1noN2Up5o which also has a link in the description to my Google drive with your code. Here is also a link directly to the drive with your code: drive.google.com/drive/folders/1KXQD5Gj2zxjA9OD6UG3i-uvIzwmdMY55?usp=sharing
@robojax
@robojax 2 жыл бұрын
Thank you. I just found your comment. it was flagged as spam. Watched your video with Excellent demonstration. I have worked with Raspberry Pi and I assume the code should not work as it is in totally different format. But not sure about Pico. may be something has come which I don't know. Regardless, I am pleased that I have been helpful to one more person(s). Cheers.
@4plus17
@4plus17 2 жыл бұрын
The pi do Not have a 5V pin, have it? Which pins do you use at the pi?
@whitneydesignlabs8738
@whitneydesignlabs8738 2 жыл бұрын
@@4plus17 It seems to work just fine with the 3.3v PGIO from the Pico. I posted a link to my test set up here: kzbin.info/www/bejne/oamqqI1noN2Up5o That link also contains a link to the modified code, which lists the exact GPIO pins I used. But you can use any pwm pins you like.
@riyad4547
@riyad4547 2 жыл бұрын
you have no idea , how helpful you were to my career , one day soon , i will pay you back respectively , out of appreciation and sheer respect .
@robojax
@robojax 2 жыл бұрын
I am honored to be part your advancement in learning and growth in career. Stay safe. Thank you.
@prashkd7684
@prashkd7684 Жыл бұрын
Thanks for this wonderful analysis. I just bought one of these and you are absolutely right. The airgap between the driver and heatsink just doesn't allow it to get up to 30A. Thankfully my application only require 8 A max per motor so hopefully this driver will not get overloaded.
@doylemaleche9937
@doylemaleche9937 4 жыл бұрын
Love your videos. very professional presentations. Please increase the volume of your videos. thank you!
@robojax
@robojax 4 жыл бұрын
Thank you for liking. Sure I have. My videos have changed now checked them out kzbin.infovideos
@rayleblanc7209
@rayleblanc7209 2 жыл бұрын
Very good information. To improve the thermal conductivity, the heat sink can be removed from the 2 screws and modified a little to reinstall it on top of the IC chips with longer screws. Now the heat sink can do a proper job of absorbing the heat and prevent thermal shutdown. A fan can also be used for optimal cooling.
@ericbommer2280
@ericbommer2280 Жыл бұрын
Interesting idea, I have also seen comment of just adding thermal past. I just ordered 2 for a trolling motor project. I think I will need to run them in parallels. But after you comment I might try to add the other heat sink, and use them on both sides as an experiment.
@willwalker2000
@willwalker2000 Жыл бұрын
@@ericbommer2280 I am also working on a trolling motor project and I've added thermal paste to mine, but I'm still not sure how well this is going to work
@RichardHauser
@RichardHauser Жыл бұрын
Yeah, I think they are M3 screws, so I got longer ones and flipped the heatsink over with some thermal paste on top. It certainly should work better.
@sted9245
@sted9245 Жыл бұрын
Would you provide an update after you have done this? Would be nice know if it's better
@arthurbispo9603
@arthurbispo9603 3 жыл бұрын
Incredible full video and with a spectacular explanation of each point of the code as well as the circuit, thanks for the video, I will use the library in my project.
@robojax
@robojax 3 жыл бұрын
Glad you enjoyed it!
@sewingmachinesindetail
@sewingmachinesindetail 6 ай бұрын
I have just made a temperature check of one of these modules, and I think that the current specifications given are far too optimistic. The right steady state current should be about 7 Amps. I use at test set up with the H-bridge in a four quadrant configuration with a motor and 24 VDC. Both sides are driven by 10 kHz, so the motor see a 20 kHz PWM signal. I then measured the temperature on the surface of the packet and on the heat sink. With a current of 7 Amp to a loaded motor I get 124 degr. C on the surface and 84 degr. C on the heat sink. You may choose to set two modules in parallel in order to increase the current and power, that you can handle.
@benfisher6085
@benfisher6085 2 жыл бұрын
Great video - very thorough and informative. Lots of useful information in the comments, and love that you are so responsive to questions. My question (which I didn’t find in any of the comments) is whether the amount of heat generated in the BTS chips is related to the PWM frequency being used, and also whether maintaining 100% duty cycle will create less heat. I note in your video that your code continually increases then decreases the duty cycle during your test. Thanks, and keep up the great work!
@robojax
@robojax 2 жыл бұрын
Hi, the datasheet we can see the maximum PWM frequency is 25kHz. I have not paid attention to the efficiency of module other than path resistance which is about 16mΩ. In the code the duty cycle changes but the frequency is fixed.
@tishankumarasinghe7709
@tishankumarasinghe7709 3 жыл бұрын
void setup() { Serial.begin(9600); } void loop() { Serial.println("Thanks Robojax..Subscribed.."); delay(100); }
@Roman-hr9vi
@Roman-hr9vi 3 жыл бұрын
Thank you so much for your help I was stuck and you helped me. Subscribed!
@robojax
@robojax 3 жыл бұрын
Glad I could help! Than you.
@arduinomaquinas
@arduinomaquinas 2 жыл бұрын
I built the device successfully, congratulations!
@lenslens7379
@lenslens7379 5 ай бұрын
I think best testing it under inductive load like dc motor to get real performance (switching losses) I always get your channel as reference for exploiting modules Thanks
@robojax
@robojax 5 ай бұрын
Hi, I agree with the inductive load tests. cheers
@bobp5776
@bobp5776 2 жыл бұрын
Would u do another test on the power handling? Remove the heat sink and put it on top of the iC's . All you need are longer bolts . It fits beautiful. You may have to drill out the holes on the heat sink a tad to fit your longer bolts. I know its an old device. But i would bet there alot laying in junk boxes.
@francoisguyot9770
@francoisguyot9770 Жыл бұрын
The heat sink could contact a soldermask free area connected with feedtroughs on that backplane of the board. It seems tha tthe footprint of that heatsink would fit on the component side without interfering with the other components tough. So i would try to switch its mounting and provide a small fan, mostly if the unit gets inclosed in a small water proof enclosure like it should if controlling an ebike or scooter. Thanks a lot for your diligent work on the spec sheets and circuit analysis.
@pervinivegen6410
@pervinivegen6410 4 жыл бұрын
very clear explanation english good enough for global thank you good job
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad you found it useful.
@Ahmed-fd4xj
@Ahmed-fd4xj 4 жыл бұрын
Thank you very much eng. Ahmad, your tutorials are much appreciated.
@robojax
@robojax 4 жыл бұрын
So nice of you
@paulhatfield498
@paulhatfield498 2 жыл бұрын
Nice video mate. Just ordered 2 of these things.. lets see if I can catch them on fire :)
@danbishop4035
@danbishop4035 4 жыл бұрын
Thank you for the work you did on this...Liked and subscribed and will most likely be joining you on Udemy. This worked like a charm on two harbor freight drill motors. I've got my DIY robot base performing simple movements with the aid of your tutorial and library.
@robojax
@robojax 4 жыл бұрын
Awesome, thank you!
@AndrewEG
@AndrewEG 4 жыл бұрын
Unscrew the heat sink and screw it down onto the MOSFETs. Use a few small washers to pack it up so it doesn't crush the MOSFETs. That fixed the overheating issue with me. Little Chinboi designing these modules had know idea what he was doing.
@robojax
@robojax 4 жыл бұрын
Yes a little extra work pays off. Thank you for sharing.
@murraymadness4674
@murraymadness4674 Жыл бұрын
I think they assembled them incorrectly, hence they are so cheap..
@leongallego6564
@leongallego6564 3 жыл бұрын
Thank you so much for the video. It was very informative and helpful. I have a question. Can I connect a 24v dc Motor to this module
@robojax
@robojax 3 жыл бұрын
You are welcome. I don't remember what was the voltage. but know I always explain the voltage. whatever is the voltage of the module, that is the motor voltage.
@kalais-n8b
@kalais-n8b 10 ай бұрын
yes sir i am used this BTs Below 13 Amps working fine after i increased motor capacity amps up to 28 its working only few seconds after that its automatically run (mean whenever i gave the BTS Input power supply from battery that time motor will run ) pls can you suggestion others driver with pwm type speed control?
4 жыл бұрын
Hi Thanks a lot for the detailed explanation, i wonder how can we connect 2 BTS7960 to control 2 motors. is it possible to combine some pins. or we need 12 pins to control excluding power and ground.
@robojax
@robojax 4 жыл бұрын
Hi, I just added the code for 2 or more motors. See the link on page where you see the code. Good cluck and thanks for subscribing and sharing my videos.
@paarthmishra3790
@paarthmishra3790 5 ай бұрын
Thanks a lot for the knowledge. You have given a code for multiple motors. Can we get a video on the wiring and equipment????
@robojax
@robojax 5 ай бұрын
Wiring is shown in the video. Please visit resources page for more codes.
@mathildaevan6992
@mathildaevan6992 5 жыл бұрын
Great Video! Really informative and helpful. @Robojax can you please suggest its max current output with 24V? And the best way to cool down this module at its peak 33A. As I read its datasheet it will shutdown on over heating ? Have you tested it at which Temprature it goes shutdown. Thanks
@robojax
@robojax 5 жыл бұрын
Thank you Mathilda. I have not tested it with 30A but if you watch the video til end, I have included some test and didn't know how people like this module so I did not spend more time on it.
@mathildaevan6992
@mathildaevan6992 5 жыл бұрын
No problem I'm going to test it! Your video inspired me about the efficiency of module in cheap price. So I'm definitely going to re-test rigorously. Excited to learn something more about it. Thanks again for your detailed review must appreciated!
@robojax
@robojax 5 жыл бұрын
You are welcome. your comment is appreciated. Good luck with your projects.
@thiagocarvalhodossantos3138
@thiagocarvalhodossantos3138 4 жыл бұрын
Hello @Mathilda, i want to know if you did the test with max current and if the module was promising
@GGMM670
@GGMM670 4 жыл бұрын
THANK YOU VERY MUCH , I understand this motor drive perfect.
@robojax
@robojax 4 жыл бұрын
You are welcome!
@GGMM670
@GGMM670 4 жыл бұрын
@@robojax and your translation is Turkish good . :)
@aleksandarra6564
@aleksandarra6564 4 жыл бұрын
In any case excellent tutorial ;-)
@robojax
@robojax 4 жыл бұрын
Thank you for not skipping the ads and keep watching them. This will help me a lot.
@tahaosman791
@tahaosman791 3 жыл бұрын
Thank you for your effort Sir! It is so helpfull. I also added some button etc. Seems great thanks to you!
@robojax
@robojax 3 жыл бұрын
You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338
@mcliitkharagpur774
@mcliitkharagpur774 7 ай бұрын
whether 12V-40V10A DC Motor PWM Speed Control switch can be run directly through Arduino, or it require to run though BTS7960, Pls. Reply.
@bearzal2234
@bearzal2234 4 жыл бұрын
Hi, Could you tell me how is the implementation of this controller with 16f877a pic microcontroller please? Is it possible to use this with 16f877a and do I need to write any PWM code to use it or I just send normal 1 and 0 logic outputs from pic to this controller to be able to use it?
@robojax
@robojax 4 жыл бұрын
Hi, I am sorry. I am not familiar with 16f877a.
@bearzal2234
@bearzal2234 4 жыл бұрын
@@robojax Could you tell me where would I find information about this please?
@mcliitkharagpur774
@mcliitkharagpur774 7 ай бұрын
whether 12V-40V10A DC Motor PWM Speed Control switch can be run directly through Arduino, or it require to run though BTS7960, Pls. Reply. Also, Pls. note, No Manual control switch is allowed for my work.
@RezaSimRacing
@RezaSimRacing 5 ай бұрын
thank you so much for your incredible informations
@robojax
@robojax 5 ай бұрын
My pleasure! سلام علیکم، خرسندم مفید واقع میشود. مجرای(کانال) فارسی برای این منظور را فعال کرده ام و تازه یک بخش به آن اضافه شده است: اشتراک شما حمایت از من است. تشکر kzbin.info/www/bejne/b5CbgYV_n6eZd7ssi=4qWn0mSdgEF0Gpvn
@michielkoppelman5382
@michielkoppelman5382 4 жыл бұрын
Hi, thanks for the clear explanation! I am trying to use the example sketch on an ESP32 wireless module and get the message: "Error compiling for board ESP32 Dev Module.". I know that the analogWrite() function is not implemented in the ESP32, but I am not experienced enough to see if that could be the problem here. Could anyone provide me with some help on this one? Thanks!
@robojax
@robojax 4 жыл бұрын
Hi, this will not work with ESP32 as ESP32 has different PWM mechanism. I would have to write separate library for this module. or watch my video on ESP32 with Fading LED, I have explained it there.
@WagonLoads
@WagonLoads 6 күн бұрын
Will your library work with a esp32? Can it work with stepper motors? I can see that it might work with a eBike or scooter or CNC or high current servo, but can it work with something like a Segway or 6 wheel ATV or heavy lift quadcopter where the left and right sides are rotating in same or opposite directions at controlled speeds? Hope I can see some applications like listed above..
@robojax
@robojax 6 күн бұрын
it won't work with ESP32.
@ronniemoore773
@ronniemoore773 Жыл бұрын
I have now downloaded a fresh copy from here. I have connected the Arduino and made sure that it shows on the correct port. I have gone to Sketch>include library> Robojax... and then upload the file. I keep getting that the motor is not defined. I am sure that it is not the code but that my stupidity is the cause. Please assist in raising my intelligence by a few points please...
@yuberalex3799
@yuberalex3799 2 жыл бұрын
You can brake a motor with the BTS7960 PWM H and how it would be done
@robojax
@robojax 2 жыл бұрын
Stop is the brake. to coast you just set the speed 0. but brake is stop. see comments from @Whitney Design Labs
@galihtanu
@galihtanu 5 жыл бұрын
I like your tutorial. I subscribed you, keep make a good tutorial
@robojax
@robojax 5 жыл бұрын
Good to hear that. Thank you for your subscription.
@ronniemoore773
@ronniemoore773 Жыл бұрын
I have tried whichever way to install the sketch to no avail. The Uno board outright rejects the script.
@ArcanePath360
@ArcanePath360 4 жыл бұрын
Thanks so much for this.
@robojax
@robojax 4 жыл бұрын
You're very welcome!
@zaidqortas6221
@zaidqortas6221 3 жыл бұрын
nice work ,thank you for your video
@robojax
@robojax 3 жыл бұрын
Thanks for watching!
@cenkerden4818
@cenkerden4818 3 жыл бұрын
I have got encoder motor with 6 cable. In order to work and take data from my motor, should I connect only 2 cable to my BT_2. I couldnt file zip file how can I find it?
@robojax
@robojax 3 жыл бұрын
that needs separate code and video. this is library is without encoder.
@YAgni-ug5jf
@YAgni-ug5jf Ай бұрын
Can this be used with analog output from a PLC
@timtaylor2631
@timtaylor2631 2 жыл бұрын
Thank you for a very good tutorial - Just found this video and subscribed. Do you have any videos of using the IBT 2 to remote control DC motors and linear actuators?
@hc1770
@hc1770 5 жыл бұрын
Hi, thank you for the detailed and informative video! I am trying to do a mini project which controls linear actuator and this seem to be able to work. Can you include a short guide on how to use the current sensing feature? It will be useful to perform some actions automatically if the current exceeds a certain threshold.
@robojax
@robojax 5 жыл бұрын
You can learn current sensing from this video for different module but you get the idea: kzbin.info/www/bejne/Y6a0fHV6ibx7hq8 details have been mentioned on page 17 of datasheet: www.robotpower.com/downloads/BTS7960_v1.1_2004-12-07.pdf
@Skagenin
@Skagenin 4 жыл бұрын
Excellent tutorial :-)
@robojax
@robojax 4 жыл бұрын
Thank you.
@asifalamgir5135
@asifalamgir5135 4 жыл бұрын
@@robojax Please add a circuit diagram next time.. By the way .. Excellent Work!!
@JustBuildingThings
@JustBuildingThings 9 ай бұрын
Thank you for great tutorials. Can the logic be powered by an external source instead of the arduino? And if so, would it be two wires to ground, one to the external power source and one to the arduino like you showed with the l298? I’m planning to use 3 bts7960 and a stepper motor driver in the same project but I’m concerned that it will be too many amps for the arduino. But maybe the enable pins and pwn would draw the same amps from the arduino even if I power the driver externally?
@couka5742
@couka5742 3 жыл бұрын
So... How much current CAN it take with varying duty cycle? Seems like you ended the video halfway through the test
@robojax
@robojax 3 жыл бұрын
you made me watch the video. Indeed I have tested it with full possible current and said in the video "it can not handle ......" amount of current with this heat sink. so you've missed it.
@waynewu7763
@waynewu7763 4 жыл бұрын
Thanks for this tutorial. I am using the same BTS but I am controlling it with labview. I am able to control the speed in one direction, even though I have both R PWM and L PWM connected to PWM pins 3 and 9 respectively. on my arduino uno. L_EN and R_EN are both active (true). Then I turn on PWM, however both pins (3 and 9) makes the motor spin in the same direction. Do you have any idea why?
@robojax
@robojax 4 жыл бұрын
You are welcome. The best thank you for me is to Subscribe 🔔 to my channel and thumb up the video. It is greatly appreciated. 🔔 😊. Check wiring.
@jon2487
@jon2487 3 жыл бұрын
Love the library and I currently have something working based on what you have shown. How would I expand the library you've included to have soft start and soft stop instead of just the hard stop you have now? Ideally I would have motor.rotate(5,CW); motor.easestop();
@guillermomejiacisneros4304
@guillermomejiacisneros4304 4 жыл бұрын
Hi, do you know why the wires get warm, the EM Is 36 v. 30 a. But I am just ussing 24 v 5 a, AND wires get hot.
@robojax
@robojax 4 жыл бұрын
Hi, 5A is not that much but how thick the wires are? put thicker wire.
@jakubvonasek3123
@jakubvonasek3123 2 жыл бұрын
Thank you very much for useful video. What about to use a thermal paste between heat sink and board (and fill up the holes). Or attach heat sink directly on chips. Could it than withstand 30 amperes? I mean: is higher current only dependent on cooling?
@robojax
@robojax 2 жыл бұрын
Thermal paste or thermal transfer sheet should be used.
@alfredonovoa8124
@alfredonovoa8124 5 жыл бұрын
Interesting module. Thanks!
@robojax
@robojax 5 жыл бұрын
You are welcome.
@yudamaulana859
@yudamaulana859 5 жыл бұрын
excuse me sir, do you have a reference on how to use the IS pin? i want to use current sense BTN
@robojax
@robojax 5 жыл бұрын
I have spent time make video on current sensor for Arduino motor shield (kzbin.info/www/bejne/Y6a0fHV6ibx7hq8), and it seems very few people showed interest. Now when I was writing the library for this, I did not pay attention to Current sensing because you might among the few who is looking into this. You can watch that video and I am sure you will learn how to use it for this as well.
@Fredstli
@Fredstli 2 жыл бұрын
Does the overtemperature shutdown function prevent it from "bloving up" if it gets to hot?
@robojax
@robojax 2 жыл бұрын
yes. Then why we should have it at first place. it is for protection.
@truongnguyendac2032
@truongnguyendac2032 4 жыл бұрын
Thank you for your tutorial. If I want to use multiple BTS7960 in parallel to power one single motor, what should I use to protect the motor and other BTS modules if one of them suddenly die while running full load? BTS is the most powerful DC Controller with PWM input I can buy from local store, so I have no other choice, except DIY.
@robojax
@robojax 4 жыл бұрын
you can do it using a current sensor like this kzbin.info/www/bejne/aXSWZHemmLiqf9k when the current reaches certain value, you can stop it using a relay. I have video on rely and if your current is very high then use kzbin.info/www/bejne/b5vadJZtqrV6pcU up to 100A nad i you want to use stand-alone device without arduino, here it is is kzbin.info/www/bejne/l2XFkHRmj6mprcU with relay you can turn OFF or ON any load. Good luck.
@jomfawad9255
@jomfawad9255 8 ай бұрын
Would you please be able to make a video how to control dc motor using DBH-12 motor driver and Raspberry pi? Thank you
@robojax
@robojax 8 ай бұрын
If manufacturer pay me, I will make video for it. Tell them to contact me via Robojax.com contact page
@botak333
@botak333 3 жыл бұрын
How to know bts7960 is shutdown sir?? Or broken?? Because i have bts, when i use on my motor wiper, sometime bts not responsir,
@robojax
@robojax 3 жыл бұрын
it should respond unless wiring has issue.
@botak333
@botak333 3 жыл бұрын
@@robojax just sometimes sir, if i want the motor work again, i shouldbe shutdown my oc, and turn off my power supplay sir.
@botak333
@botak333 3 жыл бұрын
@@robojax after that turnon all again and work, but sometime will again like that sir
@509trails
@509trails 4 жыл бұрын
This is a great h bridge I use them all the time
@robojax
@robojax 4 жыл бұрын
Thank you for sharing.
@alarmkoguvenlik
@alarmkoguvenlik 5 ай бұрын
I'm sorry, I have a question. Shouldn't the enable pin be output?
@robojax
@robojax 5 ай бұрын
Yes of course it should be.
@gamvin2107
@gamvin2107 4 жыл бұрын
It would be a different story if you use a fan in front of the module to help sink the heat. have you tried testing it with cooling fan.
@robojax
@robojax 4 жыл бұрын
no. this module is sold like this and I wanted to test it as is. Spent almost a week to write library for it. this is the most powerful module for motor in this series.
@jamestom3168
@jamestom3168 3 жыл бұрын
Very Informative Content!
@robojax
@robojax 3 жыл бұрын
I am glad you found it useful. Please subscribe. I appreciate it.
@Bondangoed
@Bondangoed 4 жыл бұрын
@robojax could I control 2 dc motors in forward direction by using both outputs to power motors with common ground. I.e set both enables to high, then pwm- l should drive motor1 and pwm-r should drive motor 2???
@robojax
@robojax 4 жыл бұрын
Yes you can. I have shown the diagram how motor's direction of rotation changes. if you don't change the direction , then you can use two motors. but I don't remember how I wrote the library to accommodate for that. you have to figure it out until I update the library which I don't know when.
@Bondangoed
@Bondangoed 3 жыл бұрын
@@robojax what is the purpose of the IC? Could Arduino not control driver IC through resistors without the IC?
@bengacz
@bengacz 4 жыл бұрын
Would 3.3V as VCC work as well as 5V? I'm thinking of controlling it with ESP32
@robojax
@robojax 4 жыл бұрын
I have provided the datasheet. I don't remember it. The link to the datasheet is where the code is.
@sergioro99
@sergioro99 3 жыл бұрын
Hi bengacz. I am thinking of controlling it with ESP32 too. Have you discovered something? Can it be used with 3.3V? Thanks for the info
@bengacz
@bengacz 3 жыл бұрын
@@sergioro99 yes it can and it works good. I made child car on this
@youssefdirani
@youssefdirani 5 жыл бұрын
Keep on the Good work !
@robojax
@robojax 5 жыл бұрын
I will . Thanks.
@mampfi
@mampfi 3 жыл бұрын
I think that the ic's are counterfeit. I meassured the resistance of my BTS7960 board and the high side switch and has 775mOhm, the datasheet says 12,5 mOhm max!
@robojax
@robojax 3 жыл бұрын
how did you measure it?
@mampfi
@mampfi 3 жыл бұрын
@@robojax I connected the board with an electric load(set to 2A constant current) and meassured the voltage between vs (Pin 7) and OUT (pin 3). I meassured a voltage of 1,55V. According to ohms law -> R=U/I -> 1,55V/2A=0,775Ω Awesome Video, thanks for reading the comments!
@EdyStauch
@EdyStauch 3 жыл бұрын
This module claims to support up to 27v. I have one and tested with 12v wich is fine. Then i tryed 24v and looks like it died... No smoke or anything else, just stop working even with 12v. Do you already run this module with 24v input?
@robojax
@robojax 3 жыл бұрын
I have shown the datasheet for the chip and that it is not fake. What I said in video, it will work. You have done something wrong.
@agustinguzman6375
@agustinguzman6375 2 жыл бұрын
Hello. What happens when both Enable and both PWM pins are set to High at the same time? does anything burn up? or, does the module understand this is a bad input and doesn't turn anything on? thanks!
@robojax
@robojax 2 жыл бұрын
Hello, I believe I have explained it. Nothing bad will happen. It will for motor to stop.
@emrecosgun4850
@emrecosgun4850 3 жыл бұрын
Thema you for your nice tutorial but I would have a question what kind of battery do you use
@robojax
@robojax 3 жыл бұрын
I have mentioned the minimum and maximum voltage which I don't remember now. if your battery is within the min and max voltage it should work. The power depends on the motor.
@fadelfarae6019
@fadelfarae6019 2 жыл бұрын
How can I connect a radio remote controller with that, i Been struggling with that for long time coding is not my strong suit.
@ACARVA65
@ACARVA65 3 жыл бұрын
Thanks a lot for your Video. I have just one question, if you can help me. Regarding the PINs 5 and 6 (R_IS and L_IS), how it yours? Digital or Analogy information? If we have over current, the sign should be toogled (0 to 5V)? Thanks a lot
@robojax
@robojax 3 жыл бұрын
“How is yours?” Didn’t understand it
@electricbookworm1
@electricbookworm1 3 жыл бұрын
My motor is only running in clockwise direction. What would be the reason?
@robojax
@robojax 3 жыл бұрын
I assume you have not modified the code, then check wiring.
@whitneydesignlabs8738
@whitneydesignlabs8738 2 жыл бұрын
Hi Ahmad, I have watched your video several times and have your test code working fine. My question is about the current sense pins. Are we getting a value from the motor controller anywhere for a current reading? I understand the main code, but don't fully understand the class (library?) and don't see where these pins are used. I know it has been a few years since you wrote this, but if you can shed some light on the current sense pins and usage, it would be much appreciated. Thanks!! Scott
@robojax
@robojax 2 жыл бұрын
Hi, I just checked the code and watch portion of the video to see what I have done. Because to measure the current we needed external resistor, I have not included that in the library. I opened the library and checked it there is nothing for current sensing. Sorry. if I see interest in this module a lot, I might try to make another video and show current sensing but as of now, it seems there is not enough people to encourage me to make new video on this. if someone pays me to write code and show how to measure the current and take action when current reached at certain value, I might consider working on it.
@whitneydesignlabs8738
@whitneydesignlabs8738 2 жыл бұрын
@@robojax Totally understandable. Thanks for taking a look. I think the current sense function would be useful, but not not required to do the things I have in mind. The reason I asked about it, is that I have been experimenting with a with simplified code from Saravanan AL and wiring the R_EN and the L_EN together to a single GPIO, and not using the L_IS or R_IS pins at all. This means that it only takes 3 GPIO per BTS7960. I am working on a 6WD rover, so this means a single Raspberry Pi Pico, can run all six motor drivers and still have some GPIO left over. So I was wondering if those extra pin connections were necessary, in order to save GPIO pins on the microcontroller. Thank you so much for all your educating on KZbin.
@sergioro99
@sergioro99 3 жыл бұрын
Nice video!! Could you tell me which motor you use in the video, or recommend me a single-phase motor like the one you use in this video? I am doing a project similar to an electric scooter (I need at least 250 W of power). Thank you very much and continue with these fantastic videos!!!!
@robojax
@robojax 3 жыл бұрын
Thanks. I've just added the motor model on the code page robojax.com/learn/arduino/?vid=robojax_BTS7960_motor_driver I have no experience with electric scooter. Sorry.
@djzatka
@djzatka Жыл бұрын
Does it handle 18 amps?
@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...! :-)
@robojax
@robojax 3 жыл бұрын
I happen you’ve watched the video as I don’t remember the numbers but I always try to put actual load . I am not sure if this is for 40A but if it is then yea the connectors are very small. Keep in mind the problem might be with the oxbow oaths rather than the connectors.
@IgnasiCabezas
@IgnasiCabezas 3 жыл бұрын
@@robojax Thank you for your answer! Could you tell me what does it mean Oxbow oaths?
@arduinoherman3867
@arduinoherman3867 2 жыл бұрын
Hi, this is very interesting. But I have a question. Can I supply power with Accu Battery 12v for BTS or I need another hardware?
@robojax
@robojax 2 жыл бұрын
Hi, the voltage sources should be the voltage as the motor. it does not matter you get it from as long as the battery can supply needed current (power) to the motor it should be fine.
@arduinoherman3867
@arduinoherman3867 2 жыл бұрын
thanks ao much
@bayuhariyansyahlubis3916
@bayuhariyansyahlubis3916 2 жыл бұрын
Let's thumbs up!!!
@robojax
@robojax 2 жыл бұрын
I am glad you liked it. The best appreciation for me is to subscribe to my channel. thank you.
@bayuhariyansyahlubis3916
@bayuhariyansyahlubis3916 2 жыл бұрын
@@robojax this is my second subscribe, from my second account sir. 👍👍👍
@smartcaterpillar2817
@smartcaterpillar2817 2 жыл бұрын
hi sir, i think pin "IS" is not necessary because we dont control the current, we just control the speed is it? if im wrong iam ready to learn from expert like you
@robojax
@robojax 2 жыл бұрын
You are right.
@smartcaterpillar2817
@smartcaterpillar2817 2 жыл бұрын
@@robojax thanks a lot sir
@nikonikolic1365
@nikonikolic1365 11 ай бұрын
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?
@ernievirata2551
@ernievirata2551 3 жыл бұрын
This is a great tutorial video.. well you always did. Thank you very much. BTw, I got one question, can I use this as a voltage regulator? maintain 70V and placed it on the high side of the load? Appreciate your reply thanks in advance.
@robojax
@robojax 3 жыл бұрын
Hello, I have spent so much time to make those diagrams so there is not questions left. Here we have no HIGH or LOW. you connect your motor directly to this module. The maximum voltage is whatever I said in the video as I don't' remember it.
@selaribrahimmosa5769
@selaribrahimmosa5769 3 жыл бұрын
im still confused .. how much its bear current cant this modul last 10 amper?????
@AhmedHussainEng
@AhmedHussainEng 3 жыл бұрын
its fine and cheap and that is good, but 6 pins to the Arduino its so much , what if I want to use three motors?
@robojax
@robojax 3 жыл бұрын
Yes Arduino mega which has over 50 pins
@4SquareHI
@4SquareHI 3 жыл бұрын
Will this module run on a D1 mini? I need Wi-Fi integration into Home Assistant Preferably with ESPHome or alternately MQTT. Thanks for the video
@robojax
@robojax 3 жыл бұрын
Yes it will. I just Used digital pin
@robvansuilen
@robvansuilen 3 жыл бұрын
I ordered one of these units online. I think they are completely unsafe/dangerous. the BTS 7960 chips are together on the same cooling block without electrical insulation. Do you agree on the danger it poses? If so please put this in your video! because its putting people at risk!
@robojax
@robojax 3 жыл бұрын
The module shown in video, the chips are on PCB and body of the chip is not attached to the heatsink. so it is safe. unless yours is different. see the module document robojax.com/learn/arduino/robojax_BTS7960_motor_driver_manual.pdf
@robvansuilen
@robvansuilen 3 жыл бұрын
@@robojax I think you misunderstood the point i was trying to make. I have a module that looks exactly like the one u use in your video. Your statement that the chips are not connected to the heatsink is not true (in my case)( and why else would they put on a heatsink in the first place??) . If you take off the heatsink you can see the problem yourselve. The design of the board is so that the chips must dissipate the heat from the chips trough the PCB by mean of Via's. These vias connect the back of the chips to the heatsink. In my case there is no silicon pad between the heatsink and the circuit board. Thus the only thing keeps the unit from short circuit is the thin black anodised layer on the heatsink. Your link in to the manual is not very useful im afraid. Please take a look at the following forum, it is in dutch, but the photo's are clearly showing the problem. www.circuitsonline.net/forum/view/152301
@matthias417
@matthias417 Жыл бұрын
Just as a information also for the users here. If you switch off the debug mode, the library has a bug. if(this->_debug){ digitalWrite(pwm1Pin, LOW); ... This means, the pwn1Pin is only set to LOW, if you are in debug mode. So if you change direction (without debug-mode and without calling stop) both of the PWM will be bigger than 0, which you should avoid. Best regards, Matthias
@robojax
@robojax Жыл бұрын
Hi, as I remember, the debug mode is not affecting other settings except printing something. What is the code you shown? is it from library?
@matthias417
@matthias417 Жыл бұрын
@@robojax Looks like links are not allowed, i posted a link to the libraray. Yes, the Problem ist the library in RobojaxBTS7960.cpp in Line 84. Of cause the debug mode SHOULD only affect printing or sending to serial console, but in that line pwm1Pin is set to LOW only in debug mode. So the following code will trigger the bug: RobojaxBTS7960 motor = new RobojaxBTS7960(inhR, pwmPinR, isR, inhL, pwmPinL, isL, 0); motor.begin(); motor.rotate(100, 1); //motor.stop()
@ockertgoosen5346
@ockertgoosen5346 5 жыл бұрын
Great video, i am trying to control 24V 15A motor using a BTS7960 module. it has burn out though...are you suggesting that it is because of the high current? it also started smoking after short operation.
@robojax
@robojax 5 жыл бұрын
I am not sure why it smokes. Check the current. or may be install a fan to cool it.
@mcliitkharagpur774
@mcliitkharagpur774 7 ай бұрын
whether 12V-40V10A DC Motor PWM Speed Control switch can be run directly through Arduino, or it require to run though BTS7960, Pls. Reply. Also, Pls. note, No Manual control switch is allowed for my work. My Motor Rating is: Rated Voltage: 24F/36V, current(F.L.): 5A, Speed: 5000 R.P.M. @180W (F.L.).
@ranjan578
@ranjan578 6 ай бұрын
U cannot run anything 40ma directly through Arduino, its just a microcontroller it should be used with motor drivers which can handle high current
@markstephens7567
@markstephens7567 3 жыл бұрын
Great information. Would it make sense to move the heat sink to the other side and clamp it down on top of the circuit components?
@robojax
@robojax 3 жыл бұрын
right now the chips are not couching the heatsink. you can come up with other method to cool it down. yes.
@angelleal3005
@angelleal3005 2 жыл бұрын
How good is this H bridge in comparison to others such as l298 which is known to have some voltages drops across the drive itself.
@robojax
@robojax 2 жыл бұрын
this is totally different. L298N can handle only 2A this is made for 30A and I've tested it but forgot how much it could handle. it is like you want to travel with small Toyota or large truck. if you don't need the truck then get small Toyota.
@angelleal3005
@angelleal3005 2 жыл бұрын
@@robojax Do you know how significant can the voltage drops be ? the L298 is known for having up to 5v drop when handling 2A. I wonder how big is the drop with this one. I really need a high efficient driver for my application.
@bessybessy
@bessybessy 4 жыл бұрын
Fine! That is for one wheel control. Maybee you have code for two motors (like wheelchair ) for grassmover? I have Arduino Nano3, 9V switcher trafo and two BTS7960 motor driver, two used motors are on the way too. Thank You, M
@robojax
@robojax 4 жыл бұрын
You are welcome. Yes you can. Watch this video and learn from it kzbin.info/www/bejne/aGium4Ccha1kms0 The best thank you for me is to not skippin the ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
@anamorales4873
@anamorales4873 4 жыл бұрын
Hey, great tutorial :), maybe i ask for to much, but could you help me to get the footprint or the library for proteus?
@robojax
@robojax 4 жыл бұрын
Hey, Proteus is very expensive and they don't have free version for that reason I don't have it and don't like the software. Now they should offer free version even with limited capability.
@eldarnoedobrea9022
@eldarnoedobrea9022 3 жыл бұрын
Thanks for the video. Do you think we can use 3.3 V logic from a raspberry pi for the PWM?
@robojax
@robojax 3 жыл бұрын
yes you can use
@christopherhughes6519
@christopherhughes6519 Жыл бұрын
Thanks!
@robojax
@robojax Жыл бұрын
You are very welcome. Thank you.
@MadDogPE
@MadDogPE 4 жыл бұрын
Hi Robojax, nice video, very well explained ! I've been trying to learn and adapt your knowledge to my application, however I'm not really sure it'll work since I don't have any of this modules available at the moment. So hopefully you can help me with this question ... Do you think that connecting 02 BTS7960 modules in parallel will work to drive a 60A 24VDC motor ? PSU is a 24V 100A.
@robojax
@robojax 4 жыл бұрын
Hi MadDogPE, Thank you. According to the datasheet www.robotpower.com/downloads/BTS7960_v1.1_2004-12-07.pdf on page 7 it says supply voltage max is 45V. So it will not work for your application.
@MadDogPE
@MadDogPE 4 жыл бұрын
Hi @@robojax ! thanks for the reply. Sorry but I don't understand your answer, I'm using 24V motors, that is less than 45V.
@xchan1323
@xchan1323 4 жыл бұрын
hi Robojax, i have a big Motor RC car, L298N motor driver is not enough to drive the rear motors it gets really hot and it wont run when you put it on the ground, i bought a BTS7960. please teach me how to code and wire it to replace the old setup. thank you
@robojax
@robojax 4 жыл бұрын
Hi Christian, If you watch this video and follow the instruction, you can control any DC motor. I've made it very simple using the library. Try watching the video without escaping.
@ronniemoore773
@ronniemoore773 Жыл бұрын
I have cleared the code and downloaded a fresh copy from your link. After installing, it keeps giving an error on the motor which was not declared
@robojax
@robojax Жыл бұрын
when it says motor was not declared, then library is missing.
@robojax
@robojax Жыл бұрын
just read the comments, 1000s of people used this. you must be doing something wrong. The code and downlead link has not been changed. so watch carefully. or post comment under someone else to see how they did it if you can't learn from my tutorial.
@kartiknv5705
@kartiknv5705 4 жыл бұрын
Hey sir..excellent tutorial out there.I have a question that is..can only one motor be used with a single shield?or two?
@robojax
@robojax 4 жыл бұрын
Hi, Perhaps you escaped the video. I have said in the video that you can control 1 motor. If you want to control 2 motor, you can but not fully. Details in the video.
@ae20120
@ae20120 3 жыл бұрын
Another great tutorial, thanks so much for your videos. I followed up the video but my motor doesn't run unless I remove the connection between BTS7960 Vcc&GND to Arduino Mega 5V and GND. It was working fine before with the Vcc and GND connected. Do you have any recommendations. Thanks so much.
@robojax
@robojax 3 жыл бұрын
why have you connected the from VCC from this module to Arduino? I forgot what I did . if you follow the exact instruction, it should work. it has worked for 1000s other people.
@juhaimebrahim2179
@juhaimebrahim2179 4 жыл бұрын
Excellent video, however, I'm having issues downloading the BTS7960 library from the link in the description, please may you assist? @Robojax
@robojax
@robojax 4 жыл бұрын
You are welcome. I just downloaded the library without any issue. it is your network or internet.
@jismaelcr
@jismaelcr 3 жыл бұрын
you can use this library with nodemcu esp8266, thanks in advance and greetings.
@robojax
@robojax 3 жыл бұрын
Greetings, not it won’t work with ESP .
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 655 М.
How To Use This High Current Motor Driver | HW-039 or BTS7960B Motor Driver
10:31
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 52 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 89 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 2 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Control Large Gearmotors with PWM & Arduino
34:34
DroneBot Workshop
Рет қаралды 261 М.
Controlling DC Motors with the L298N H Bridge and Arduino
36:41
DroneBot Workshop
Рет қаралды 1,3 МЛН
How 3 Phase Power works: why 3 phases?
14:41
The Engineering Mindset
Рет қаралды 1 МЛН
Turning Car wiper motor into servo using BTS7960 Motor drive
5:11
Nyagado Morris
Рет қаралды 11 М.
Huge Current MOTOR DRIVER BTS7960
7:27
Saravanan AL
Рет қаралды 66 М.
How to work with BTS7960 motor driver and Arduino
9:23
Ingeniero Lab
Рет қаралды 109 М.
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 744 М.
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 52 МЛН