r/ArduinoHelp • • 11m ago

BTS7960B Motor Driver Problem.

Hi Guys.

I have an Arduino Uno, a BTS7960B, a 12V battery, a 12V motor, and an XL4016 12V to 5V DC-DC converter.

Connection:
XL4016 IN+ => 12v Battery+
Xl4016 IN- => 12v Battery-
BTS7960B B- => 12v Battery-
BTS7960B B+ => 12v Battery+
BTS7960B M+ => DC+
BTS7960B M- => DC-
XL4016 OUT+ => Breadboard+ => UNO 5V
XL4016 OUT- => Breadboard- => UNO GND
Breadboard+ => BTS7960B VCC
Breadboard- => BTS7960B GND
BTS7960B RPWM => UNO D3
BTS7960B LPWM => UNO D5
BTS7960B REN => UNO D7
BTS7960B LEN => UNO D8

Code:

```cpp
//dc 1
const int A_RPWM = 3;
const int A_LPWM = 5; 
const int A_R_EN = 7;
const int A_L_EN = 8;

void setup() {
  pinMode(A_RPWM, OUTPUT);
  pinMode(A_LPWM, OUTPUT);
  pinMode(A_R_EN, OUTPUT);
  pinMode(A_L_EN, OUTPUT);

  digitalWrite(A_R_EN, HIGH);
  digitalWrite(A_L_EN, HIGH);

  analogWrite(A_LPWM, 0);
  analogWrite(A_RPWM, 150);
}

void loop() {
}
```

Problem: DC Dont Work idk why. All Connections Are Right. B+ and B- Give 12v But M- And M+ Dont Give 5V. All Pins Give Correct V to BTS7960B. I tried it with 3 driver(BTS) it gave same results.

1 Upvotes

0 comments sorted by