DRV8833
DRV8833. DRV8833 управляет двумя моторами (A и B). ESP32-C3 > DRV8833 GND > GND 5V > VCC D6 > IN3 D7 > IN4 D8 > EEP DRV8833 > Motor OUT3 > pin1 OUT4 > pin2 main.py from machine import Pin, PWM import time A1 = PWM(Pin(4), freq=1000) A2 = PWM(Pin(5), freq=1000) B1 = PWM(Pin(6), freq=1000) B2 = PWM(Pin(7), freq=1000) def motor(p1, p2, speed): speed = max(-1023, min(1023, speed)) if speed > 0: p1.duty(speed) p2.duty(0) elif speed < 0: p1.duty(0) p2.duty(-speed) else: p1.duty(0) p2.duty(0) motor(A1, A2, 700) motor(B1, B2, -500) time.sleep(2) motor(B1, B2, 500) time.sleep(2) motor(A1, A2, 0) motor(B1,...