For hardware, I have a motor driver chip with PWM input on IO27 and IO10. Here is the motor driver's datasheet: https://fscdn.rohm.com/en/products/data ... aefj-e.pdf
For some reason, I can initialize both pins and the motor will stay stopped (correctly), but the moment I declare a PWM instance, it takes off moving (NOT desired )
Code: Select all
>>> from machine import Pin, PWM
>>> io10 = Pin(10, Pin.OUT, Pin.PULL_DOWN, value=0)
>>> io27 = Pin(27, Pin.OUT, Pin.PULL_DOWN, value=0)
>>> m0 = PWM(io27, duty=0, freq=500) # The moment this line is entered, the device takes off and I have to power it off to avoid it inplugging itself!
>>>