Hi All,
I have been using the 16-bit resolution of the Arduino (pin 9 or 10) to control a servo.
I came across something, and now if I am using a 8-bit resolution,
I was wondering something:
Since the pulse is sent to the servo every 20ms, from 1 to 2ms, there is one step right? (as in, it moves up or down once). So I calculate this:
256bit/20ms = x/1. solving for x, we get 12.8 possible positions.
I need to use 8bit so what possible ways are there to increase the number of possible positions?
What can I do, add timeouts? how does it work?
Or like allocate all 8 bit into the period from 1 to 2ms. How do i do it? i was thinking about updating the timer every 2 ms. I dont know if my thought process is correct, and I don't know how I would code this.
Could you hhelp me out please?
I have been using the 16-bit resolution of the Arduino (pin 9 or 10) to control a servo.
I came across something, and now if I am using a 8-bit resolution,
I was wondering something:
Since the pulse is sent to the servo every 20ms, from 1 to 2ms, there is one step right? (as in, it moves up or down once). So I calculate this:
256bit/20ms = x/1. solving for x, we get 12.8 possible positions.
I need to use 8bit so what possible ways are there to increase the number of possible positions?
What can I do, add timeouts? how does it work?
Or like allocate all 8 bit into the period from 1 to 2ms. How do i do it? i was thinking about updating the timer every 2 ms. I dont know if my thought process is correct, and I don't know how I would code this.
Could you hhelp me out please?