Hello,
I am trying to control 2 motors via 7A/160W Dual H-Bridge Motor Controller (link: https://www.handsontec.com/dataspecs/mo ... ontrol.pdf) and Raspberry Pi 5.
I do power motor controller via buck converter (providing 7V), I did connect the pins (for single motor at this time) from the motor controller to the Raspberry Pi 5 (please see image attached), however, running the simple script the motor does not spin.
I checked via the multimeter the output of the corresponding IN1 or IN2 when script is enabled showing 3.3V.
The motor specifies:
Control signal Level (Compatible 3.3V/5V)
Control signal current: 3 ~ 11 mA (Each route).
I am not sure what's going on.
I am trying to control 2 motors via 7A/160W Dual H-Bridge Motor Controller (link: https://www.handsontec.com/dataspecs/mo ... ontrol.pdf) and Raspberry Pi 5.
I do power motor controller via buck converter (providing 7V), I did connect the pins (for single motor at this time) from the motor controller to the Raspberry Pi 5 (please see image attached), however, running the simple script the motor does not spin.
I checked via the multimeter the output of the corresponding IN1 or IN2 when script is enabled showing 3.3V.
The motor specifies:
Control signal Level (Compatible 3.3V/5V)
Control signal current: 3 ~ 11 mA (Each route).
I am not sure what's going on.
Code:
from gpiozero import PWMOutputDevice, DigitalOutputDevicefrom time import sleep# GPIO pinsENA = 18 # PWM enableIN1 = 23IN2 = 24enable = PWMOutputDevice(ENA)in1 = DigitalOutputDevice(IN1)in2 = DigitalOutputDevice(IN2)def forward(speed=0.8): in1.on() in2.off() enable.value = speed print("Forward")def stop(): in1.off() in2.off() enable.value = 0 print("Stop")try: forward(0.7) sleep(20) stop()except KeyboardInterrupt: stop()Statistics: Posted by cjacky475 — Tue Dec 09, 2025 11:02 am