Timeline for How to control BTS7960 43A motor driver directions?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2022 at 2:11 | comment | added | Dave X | Couldn't this run two motors without reversing? If you put one half bridge output on one motor (other terminal ground) and the other half-bridge output on a second motor (its other terminal on ground) wouldn't it work? Or does the microcontroller inhibit doing PWM on both half bridges at the same time? | |
Apr 7, 2019 at 14:58 | vote | accept | oldbin | ||
Apr 4, 2019 at 18:36 | comment | added | Ale..chenski | @oldbin, the other answer for control assume that when PWM is not active, its state is "LOW". When making the demultiplexor, you need to ensure the "LOW" state on inactive channel. Maybe 1G18 will work better for you. | |
Apr 4, 2019 at 18:21 | comment | added | Ale..chenski | @oldbin, so you are using two PWM pins, per motor/per board. I believe that RPWM and LPWM never work at the same time. If so, you can use a logic-level IC - tiny decoder like SN74LVC1G19 to split one PWM output to LPWM and RPWM, but you will need another GPIO to select the signal path. | |
Apr 4, 2019 at 17:56 | comment | added | oldbin | @ Ale..chenski, thank you. I tested the board, it can only run with RPWM+L_EN(HIGH)+R_EN(HIGH) forward, and LPWM+L_EN(HIGH)+R_EN(HIGH) backward. maybe I did some thing wrong? | |
Apr 4, 2019 at 17:50 | comment | added | Ale..chenski | @oldbin, technically you need only one PWM pin to control the bridge if you make some external switch between left arm and right. Maximum 2 PWM. The other signals are regular GPIO to change directions, braking, etc. The IS pins are sensor outputs, so you don't need any other PWMs. | |
Apr 4, 2019 at 17:39 | comment | added | oldbin | Thanks, I Known that one board one motor, I just wonder if it is a must to use 4 PWM pins to control two boards? any solution to use less pins? or how can use one Arduino to control a two motors toy car? not enough PWM pins. | |
Apr 4, 2019 at 1:51 | history | edited | Ale..chenski | CC BY-SA 4.0 |
added 321 characters in body
|
Apr 4, 2019 at 1:46 | history | answered | Ale..chenski | CC BY-SA 4.0 |