Ttelmah
Joined: 11 Mar 2010 Posts: 20059
|
|
Posted: Tue Jan 10, 2017 8:49 am |
|
|
So, learn to debug.
Print the number coming from the ADC with no processing at all. Is this right?.
Then work through things one stage at a time, checking the values, till you find where it goes wrong. |
|