baileychic
Advanced Member level 3
I have problem finding the equation.
I am doing a project using PIC12F1840.
I am reading adc value and scaling it to 110 to 280 value.
110 and 280 are the lower and upper limits.
I have to convert 111 to 179 to 217 to 224 value but the condition is
for increase of 1 in input the output should increase by 1.
111 (input voltage) + 106 = 217
118 + 106 = 224
after this for
119 to 126 the output should again vary from 217 to 224.
This has to continue till 279 (input voltage).
For input voltage 111 to 179 then output value varies between 217 and 224 and cycles between these values for increase of every 7 value in input.
I am doing a project using PIC12F1840.
I am reading adc value and scaling it to 110 to 280 value.
110 and 280 are the lower and upper limits.
I have to convert 111 to 179 to 217 to 224 value but the condition is
for increase of 1 in input the output should increase by 1.
111 (input voltage) + 106 = 217
118 + 106 = 224
after this for
119 to 126 the output should again vary from 217 to 224.
This has to continue till 279 (input voltage).
For input voltage 111 to 179 then output value varies between 217 and 224 and cycles between these values for increase of every 7 value in input.