32924cdc23ccf2b510eecfbcf5df7cbf5c6f4802
Chip-dat/Infineon-dat/BTS7960-dat/BTS7960-dat.md
| ... | ... | @@ -60,4 +60,80 @@ Method 2: |
| 60 | 60 | |
| 61 | 61 | ## Dimension |
| 62 | 62 | |
| 63 | - |
|
| ... | ... | \ No newline at end of file |
| 0 | + |
|
| 1 | + |
|
| 2 | + |
|
| 3 | + |
|
| 4 | +## simple arduino control code |
|
| 5 | + |
|
| 6 | + |
|
| 7 | +š Arduino Pin Connections (Example) |
|
| 8 | + |
|
| 9 | +| BTS7960 Pin | Arduino Pin | Purpose | |
|
| 10 | +| ----------- | ----------- | --------------------------- | |
|
| 11 | +| VCC | 5V | Logic power | |
|
| 12 | +| GND | GND | Ground | |
|
| 13 | +| R_EN | 8 | Enable right channel | |
|
| 14 | +| L_EN | 9 | Enable left channel | |
|
| 15 | +| RPWM | 10 | (PWM) Right side PWM signal | |
|
| 16 | +| LPWM | 11 | (PWM) Left side PWM signal | |
|
| 17 | + |
|
| 18 | +the demo code |
|
| 19 | + |
|
| 20 | + // Define motor control pins |
|
| 21 | + #define RPWM 10 |
|
| 22 | + #define LPWM 11 |
|
| 23 | + #define R_EN 8 |
|
| 24 | + #define L_EN 9 |
|
| 25 | + |
|
| 26 | + void setup() { |
|
| 27 | + // Set control pins as output |
|
| 28 | + pinMode(RPWM, OUTPUT); |
|
| 29 | + pinMode(LPWM, OUTPUT); |
|
| 30 | + pinMode(R_EN, OUTPUT); |
|
| 31 | + pinMode(L_EN, OUTPUT); |
|
| 32 | + |
|
| 33 | + // Enable both sides of the H-Bridge |
|
| 34 | + digitalWrite(R_EN, HIGH); |
|
| 35 | + digitalWrite(L_EN, HIGH); |
|
| 36 | + } |
|
| 37 | + |
|
| 38 | + void loop() { |
|
| 39 | + // Rotate motor forward |
|
| 40 | + analogWrite(RPWM, 200); // PWM value (0-255) |
|
| 41 | + analogWrite(LPWM, 0); |
|
| 42 | + delay(3000); |
|
| 43 | + |
|
| 44 | + // Stop motor |
|
| 45 | + analogWrite(RPWM, 0); |
|
| 46 | + analogWrite(LPWM, 0); |
|
| 47 | + delay(1000); |
|
| 48 | + |
|
| 49 | + // Rotate motor backward |
|
| 50 | + analogWrite(RPWM, 0); |
|
| 51 | + analogWrite(LPWM, 200); |
|
| 52 | + delay(3000); |
|
| 53 | + |
|
| 54 | + // Stop motor |
|
| 55 | + analogWrite(RPWM, 0); |
|
| 56 | + analogWrite(LPWM, 0); |
|
| 57 | + delay(1000); |
|
| 58 | + } |
|
| 59 | + |
|
| 60 | + |
|
| 61 | +## ā
Summary |
|
| 62 | + |
|
| 63 | +| Feature | Description | |
|
| 64 | +| ---------------------- | -------------------------- | |
|
| 65 | +| **Motor channels** | 1 DC motor | |
|
| 66 | +| **Direction control** | Yes (Forward / Reverse) | |
|
| 67 | +| **Speed control** | Yes (via PWM) | |
|
| 68 | +| **Continuous current** | ~30A (with proper cooling) | |
|
| 69 | +| **Peak current** | ~43A | |
|
| 70 | +| **Voltage range** | Typically 6Vā27V | |
|
| 71 | + |
|
| 72 | + |
|
| 73 | + |
|
| 74 | +## ref |
|
| 75 | + |
|
| 76 | +- [[motor-driver-dat]] |
|
| ... | ... | \ No newline at end of file |