Hi to the Forum,

Having fallen on this post by researching the use of servos used in radio control and piloted with the ReadADC command, I wanted to tell you my solution to use all the potentiometer stroke.

The control potentiometer (read on the transmitter) ranges from 0 to 5 Volts.

ReadADC gives values from 0 to 255 but the servo can only use values from 75 to 225 (0.75msec to 2.25 msec).

The aim was therefore to find a mathematical equation linking ranges of values 0-255 to a new complete range of 75-225.

In this way, all the potentiometer stroke is used.

Excel being, sometimes, our friend the solution was quickly found to solve this system of equation.

Code:

Code:

```
#picaxe 14M2
#no_data
symbol Servo1 = B.5 'Define Servo 1
servo Servo1,150 'init servo1
'=============================
Do
ReadADC C.4, W0
W1=W0*6/10
W1=W1+75
Servopos Servo1,W1
Loop
```

Looking forward to reading your comments ...

Regards