-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When attempting to initialize or run a SPIKE Large Angular Motor (45602) on a Technic Hub (88012) running Pybricks firmware v3.6.1, the hub immediately drops the Bluetooth connection and becomes unresponsive. I have tried 2 different motors on all 4 ports.
The same 2 motors work normally on a SPIKE Prime Hub with the same Pybricks version. Additionally, other sensors such as the color and distance sensor, work as expected on the Technic Hub, so it seems that only the motors are having difficulties with Pybricks.
With the following program, the hub connects to Bluetooth, prints "Initializing motor...", then pauses, disconnects from bluetooth, and stalls.
from pybricks.hubs import TechnicHub
from pybricks.pupdevices import Motor
from pybricks.parameters import Port
# Initialize the hub
hub = TechnicHub()
# Initialize the Large Angular Motor (45602) on Port D
motor = Motor(Port.D)
print("Motor initialized successfully.")
# Run the motor forward for 3 seconds
motor.run_time(500, 3000, then=Stop.HOLD)
# Now run it backward for 3 seconds
motor.run_time(-500, 3000, then=Stop.HOLD)
# Print to show it is done
print("Motor run successfully.")
I expected the motor to turn forward and backward and print messages, but the program froze during motor initialization and dropped the Bluetooth connection so no print statements were reached. I have tried all 4 ports on the technic hub with no success. I have also tried multiple programs that operate with the motor initialization line commented out, but fail as soon as I uncomment the motor initialization line. I have verified that the motors work normally on Spike Prime hub and that sensors (distance, color) work on the technic hub. The only problem seems to be the large angular motors.
