Thanks for that! I should have known about Timer8.
Could you please help me figure out how PWM works to power a motor on micropython? I have connected D0 to the motor driver and am running the following code that I got from what you suggested someone here:
import time
from pyb import Pin, Timer
tim = Timer(8, freq=1000) # Frequency in Hz
ch1 = tim.channel(1, Timer.PWM, pin=Pin("D0"), pulse_width_percent=75)
while (True):
time.sleep(1000)
Am I missing something fundamental in understand how this works compared to Arduino/Raspberry Pi’s PWM?
PC