Chuk

Member Since: December 16, 2010

Country: United States

  • Product COM-10734 | about 2 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 :(