December 16, 2010
about 3 years ago
In a typical micro-controller ADC setup, I found this formula to give fairly good percentage readings (0..100), you could tweak the 0.36 value if needed.
100 * ((ADC_read / ADC_max) ^ 0.36)
or for PIC32
100.0f * powf(ADC_read/1023.0f, 0.36f);
No public wish lists :(
Forgot your password?
No account? Register one!