embd icon indicating copy to clipboard operation
embd copied to clipboard

pca9685 PWM Controller - initialize Mode2 register with OUTDRV=1

Open RyAndrew opened this issue 7 years ago • 0 comments

I was trying to figure out why the adafruit driver works and this one does not. https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library/blob/master/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py

Mode register 2 was never configured. Also I believe sleep here is unnecessary. Was this confused with a sleep for golang?? "It takes 500 us max. for the oscillator to be up and running once SLEEP bit has been set to logic 0." page 14 of the datasheet

RyAndrew avatar Jul 19 '18 05:07 RyAndrew