Control High current DC Motors with Arduino and BTS7960 motor driver(CODE)| Ebike motor controller

Поділитися
Вставка

КОМЕНТАРІ • 100

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

    thanks a bunch. i got stuck trying to use same code and schematic from l298n only to find out this driver requires one pin more. that burst my bubble but you helped me with this video by explaining in detail. not a lot of info to be found concerning this driver in particular. 🚗🚗🚗

  • @lyhongleft3676
    @lyhongleft3676 5 місяців тому

    you are a life saver, thank you.

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

    This video is very helpful and thanks for your patience to upload it. How can add and 433 mhz rf 2 channel remote to control it's direction with it.
    I appreciate it if you can please help me out please 🙏🏻

  • @titassaha7467
    @titassaha7467 7 місяців тому

    Nice explanation bro......keep going

  • @hannahreiner344
    @hannahreiner344 4 місяці тому

    Would you be able to use the same connections and modify the code for a linear actuator. Also, what size wires do you use? I am trying to run a 12 V linear actuator with current load of 4.5

  • @I_am_Ashok
    @I_am_Ashok Місяць тому

    Dear sir, how to control the back emf of a bi-directional dc motor ? Kindly make a video on this topic. Thanks

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

    Thanks brother. Please also upload Flysky control for 2 BTS 7960 (4 motors) with speed control for soccer bot.

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

      Yes ,next i will upload that video

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

      ​@@techathomeHow many BTS 7960 Can be used on arduino?

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

      One BTS need , 2PWM pins and 2 digital pins. From this you can calculate based on which Arduino u are using.

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

      @@techathome i want to control 5 24v dc motors. Just one bts can control them?

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

      If you want to control 5 motors independently, then you need 5 BTS.
      If u want to control all 5 together, then depends on the current drawn by each motor.

  • @wilmercb
    @wilmercb 5 місяців тому

    How do you use the IS pins with the Arduino. Are they needed ? Thanks Great tutorials

    • @techathome
      @techathome  5 місяців тому

      Welcome!
      Even I didn't find any documentation on using IS pins,
      To run the motors they are not required.

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

    Nice

  • @Ais-qc1bc
    @Ais-qc1bc 10 місяців тому

    Brother can u make Apm 2.8 and arduino comonication project using Telemettry port?? - i am tired to this connection.

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

    this dude is a magician i also ive in india and this guy made a ffb steering wheel with the same motor and driver .
    me: in shop i want a ebike motor
    guy: ok that will be 856 rupees
    me:nah i dont need it

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

      😂 But that ebike motor costs more.
      I already had from previous projects.
      So used directly here.

  • @fgregerfeaxcwfeffece
    @fgregerfeaxcwfeffece 3 місяці тому

    E-bike motors will probably be my fallback if I can't figure out how to drive the motor modules for e-scooters.
    Do you have any idea what all the wires on e-scooter motors do? Do they perhaps already include a motor controller?

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

      They might have controller already, I have not explored much.

  • @tanxinghan509
    @tanxinghan509 4 місяці тому

    Brother, may I ask you a question. After seeing your video, it is possible for me to connect ebike throttle to arduino uno which are connect to BTS 7960 and controlling the speed and direction of motor? thanks

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

    I want to use a potentiometer so do i need to use a 3 way switch?? And can you help me how i can use a potentiometer to adjust the speed

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

      Refer this, concept remains same. Some changes need to be done for BTS motor driver logic: ua-cam.com/video/67ARqgkOCc8/v-deo.htmlsi=agrk-ORZxdSUrY3f

  • @HardeepSingh-zt4cd
    @HardeepSingh-zt4cd 3 місяці тому

    ​@techathome hello sir kindly make car with 4 jhonson motors using two Motor drivers BTS7960 and Bluetooth HC -05 module

  • @lochankuttappa1978
    @lochankuttappa1978 3 місяці тому

    Can i also add regenerative braking if i want to?

  • @kevinjoanherediarodriguez2373

    hello friend excellent video I have a similar project but I would like to see if there is a way that you can help me by solving some doubts with an arduino code for a mecanum robot and be able to connect it to that bts7960 module

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

    What happens if you PWM the enable pins ? For instance “digitalWrite(r_en, 100)” instead of “digitalWrite(r_en,HIGH)” ?

    • @techathome
      @techathome  11 місяців тому +1

      I have not tried that, I think unless it is 255, it considers as Low, and HIGH for 255.
      But to generate PWM signal, u have to use analog write.

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

      @@techathome thank you . I’ll try it

  • @Arne-Test-zv5sf
    @Arne-Test-zv5sf 10 місяців тому

    Any idea why this works for me without even connecting 5V and GND to the micro controller???? This is so weird. For the rest exactly the same wiring

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

      Ideally it should not work !

  • @BarMagnet
    @BarMagnet 5 днів тому

    Can this driver be used to drive a transformer winding to produce a decent inverter?

    • @techathome
      @techathome  3 дні тому

      No

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

      ​@@techathomeThank you for your brief and prompt answer and your explanation.

  • @user-uw2eg2qy1r
    @user-uw2eg2qy1r 8 місяців тому

    is this connection ok with your steering wheel?

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

      This is just for demonstration.
      For steering wheel, connections are different. You can get it from description.

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

    I did the same connection and code when I enter 255 in rpwm then motor start rotating clock wise but when I enter 255 in lpwm and make rpwm 0 then nothing happened motor didn't rotate can you help me whats the issue.

  • @M.M.K-gv8hz
    @M.M.K-gv8hz 8 місяців тому +1

    Can I reduce the rpm to 30rpm?

    • @techathome
      @techathome  7 місяців тому +1

      Yes, you have to vary the duty cycle, I have shown the same in video.

  • @bossoy0769
    @bossoy0769 4 місяці тому

    Bro my motor driver has a Problem the l pwm is not working my motor is beeping but the r pwm is working should i replace it?

    • @techathome
      @techathome  4 місяці тому

      If you are changing the direction according to code explanation it should work.

  • @lenslens7379
    @lenslens7379 3 місяці тому

    How you considering high power without load?

    • @techathome
      @techathome  3 місяці тому

      I have mentioned the motor driver specifications which can handle up to 43A.

  • @Ais-qc1bc
    @Ais-qc1bc Місяць тому

    can i control mini cycle wheel using this motor?

    • @techathome
      @techathome  Місяць тому

      This is the motor without gear box, it cannot give more torque.
      You have to use motor with gear box.
      Refer this video: ua-cam.com/video/ImYMBpdXi8U/v-deo.htmlsi=sigtZYveKxkMzo-T

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

    Bro you uploaded Community of Joystick Controll where is the Tutorial of Joystick.

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

      Yes bro i will upload,
      We had lot of requests on motor driver for roborace

  • @HardeepSingh-zt4cd
    @HardeepSingh-zt4cd 3 місяці тому

    Kindly make using bluetooth HC 05 Bluetooth module

    • @techathome
      @techathome  3 місяці тому

      Hc05 related tutorials I have already uploaded

    • @HardeepSingh-zt4cd
      @HardeepSingh-zt4cd 3 місяці тому

      @@techathome sir kindly make car using two Motor drivers BTS7960 and Bluetooth HC -05 module

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

    how to control the speed of the motor according to temperature sensor data?

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

      Same project I have done, refer this: ua-cam.com/video/jWEqkF-Z_SA/v-deo.htmlsi=tYbzzPHZ1nr90vBl

  • @rexcode9366
    @rexcode9366 3 місяці тому

    how to remove the humming noise from the driver at low pwm?

    • @techathome
      @techathome  3 місяці тому

      Arduino PWM frequency is very low. You have to increase the PWM frequency, i have not tried yet. Some registers to be updated. Search for the same on google.

  • @lakshmanaraoduppada4028
    @lakshmanaraoduppada4028 5 місяців тому

    Hello sir
    If I use 2 motors
    What is the code for that sir ???

    • @techathome
      @techathome  5 місяців тому

      Two motors in which way? I didn't get exact requirements.

  • @telugupeople7565
    @telugupeople7565 5 місяців тому

    bro i did all connections correct and code also perfectly uploaded but output is not coming from BTS7960 module tried a lot of times 😥 please give me solution pleasee

    • @techathome
      @techathome  5 місяців тому

      Try with different BTS driver.

  • @ubarts3084
    @ubarts3084 5 місяців тому

    Plz tell how to control two motors with this driver

    • @techathome
      @techathome  5 місяців тому

      This motor driver has only single channel to control motor.

  • @egygamers4866
    @egygamers4866 3 місяці тому

    How can i add ebike throttle to this project please

    • @techathome
      @techathome  3 місяці тому

      Is that a potentiometer sensor?
      Can you send its link or any photo with outputs on mail: deepakhd20@gmail.com

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

    how to change speed

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

      Change the duty cycle value in analogwrite function. I have shown in the video. Watch from 7:15

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

    Why is motor making noise after you reduce speed?

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

      This happens when microcontroller PWM frequency is low, like Arduino supports 490Hz by default which is inside the human audible range.
      Since there is no momentum of motor at lower speeds, it is not able to match the PWM signal state switching between high and low.

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

      @@techathome is there any way to remove this problem?

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

      If you use microcontrollers with more PWM frequency(more than 20kHz), it will resolve.
      Also in Arduino there is some method to increase PWM frequency output, you can search on UA-cam.

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

      @@techathome bts has 25 KHz will it work?

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

      Yes BTS support upto 25khz, But control signal frequency from Arduino should be high.

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

    Kya hun 36 v moter ko control kar sakde a

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

      According to datasheet, max voltage supported is 27V.
      So you cannot use 37v motor.

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

      @@techathome 24 v moter ko control kar sakte hai

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

      Yes, The motor used in the video is 24v.

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

      Thanks sir plz video bna kar send karna

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

      We have already explained in this same video for 24v motor.

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

    how do we connect the hc05 bluetooth to bts7960 please make a tutorial

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

      I have made similar using L298N, Is it possible to update code.
      ua-cam.com/video/5JLXpp7_l-E/v-deo.html
      ua-cam.com/video/qxt_MdnQTm8/v-deo.html