SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.


Member Since: December 16, 2010

Country: United States

  • 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 :(