It is a blue pill f103
I have it working now. I had to delay after the servo.write and I also changed the prescaler on the timer. Not sure which one fixed it or if both helped.
Now i need to get it in a shielded box since the EMI from the spindle motor creates noise and false readings when running ...
Search found 2 matches
- Thu Jan 23, 2020 11:38 pm
- Forum: General discussion
- Topic: Servo with SSD1306 and TIMER_INPUT_FREQ_DUTY_MEASUREMENT
- Replies: 4
- Views: 4354
- Wed Jan 22, 2020 12:04 am
- Forum: General discussion
- Topic: Servo with SSD1306 and TIMER_INPUT_FREQ_DUTY_MEASUREMENT
- Replies: 4
- Views: 4354
Servo with SSD1306 and TIMER_INPUT_FREQ_DUTY_MEASUREMENT
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/9afa3cf07b9ed465835f262ef394956b
Right now the servo writes to the 0 position on setup. This is ...
My code is here: https://gist.github.com/jschoch/9afa3cf07b9ed465835f262ef394956b
Right now the servo writes to the 0 position on setup. This is ...