Servo with SSD1306 and TIMER_INPUT_FREQ_DUTY_MEASUREMENT
Posted: Wed Jan 22, 2020 12:04 am
I'm trying to turn a knob with a servo for ... reasons ... and while all of the features I want are working individually they do not work when combined.
My code is here: https://gist.github.com/jschoch/9afa3cf ... 2ef394956b
Right now the servo writes to the 0 position on setup. This is setup before my PWM measurment timer is started and configured. The signal works and the servo moves to the 0 position and I can see a good signal on my scope. After that setup routine and the timer has been started I cannot get the servo to move and the signal looks like this:
https://drive.google.com/open?id=18B-S0 ... 6U33V3ddXx
this is when the servo should be doing nothing.
https://drive.google.com/open?id=18A5oX ... iZfe1UdBTX
I'm wondering what may be causing this. I've tried a variety of pins with no effect on the servo signal. The PWM measurement works fine and the i2c display also works fine. I tried to pause the timer before I called servo.write but that did not seem to help. Any thoughts, is this a bug?
My code is here: https://gist.github.com/jschoch/9afa3cf ... 2ef394956b
Right now the servo writes to the 0 position on setup. This is setup before my PWM measurment timer is started and configured. The signal works and the servo moves to the 0 position and I can see a good signal on my scope. After that setup routine and the timer has been started I cannot get the servo to move and the signal looks like this:
https://drive.google.com/open?id=18B-S0 ... 6U33V3ddXx
this is when the servo should be doing nothing.
https://drive.google.com/open?id=18A5oX ... iZfe1UdBTX
I'm wondering what may be causing this. I've tried a variety of pins with no effect on the servo signal. The PWM measurement works fine and the i2c display also works fine. I tried to pause the timer before I called servo.write but that did not seem to help. Any thoughts, is this a bug?