2014年10月1日 星期三

Battery Voltage Detector

Need to monitor the battery voltage on PIC32 !?

Here is a web link regarding using LED forward voltage with ADC : link

The battery voltage measured 1.76V as the RED LED forward voltage.
Left:calculated the VDD=3.1V                              Middle:Circuit Diagram                             Right: Calculation

The ADC of LED forward voltage 1.76V got 581 counts.   581 = (1.76/ 3.1)*1024 

The Vdd estimation: Vdd = (1024*1.76 )/ ADC-count   


Trying to figure out BigEndian/LittleEndian

Trying to figure out PIC32 memory order for the BLE packets order sending...