Hi all, I've got a PIC project with a speed control that is a pot as the R in RC mode One option I would like is to be able to set a mid-point frequency such that moving the pot fully counter-clockwise will be the same ratio as slow as fully clockwise is as fast The equation would be x * (1/y) < x > x * y For example, in the range 2 to 32, 8 (=3Dx) is the 'midpoint' and y =3D 4 2 is 8 * 1/4 and 32 is 8 * 4 How would I (can I) resolve the equation to find 'x', the midpoint, if I have just the range, which in this case is 500kHz to 4100kHz ? I can guess at say 1400kHz. 1400/500 =3D 2.8. 2.8 * 1400 =3D 3920, which is close but there must be a better way TIA --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .