IRL Battery Level Measurements - Explain to me like I'm 5

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

So I've browsed to forums, watched the videos, and this great tutorial, which I've learned from valuable info from all, but I want to ensure that a non-devkit application is going to work correctly.  I'm using a 222014 chip.  I have the module all well, and both have VREF pads with a 1uF bypass cap attached.  I'm running the bare chip on a CR2032 (3.3v), my ADC component is set to Internal 1.024 volts, bypassed, and my vref pin from the ADC is set to P3.6.  Measurement code is ready, using the script in the tutorial.

   

So, with that setup, would I:

   

a) connect pad P3.6 to pad VREF and done?

   

b) Have a voltage divider, from the CR2032, down to 1.024V into pad P3.6...?

   

    b.1) AND pad P3.6 to pad VREF?

   

c)  All sorts of NOPE, and better ideas?

0 Likes
4 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Please post your code so we can check it.

0 Likes
Anonymous
Not applicable

Actually, an a,b,b.1,or c answer is pretty much all I'm looking for if you can take a guess.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

b, not b.1

   

 

   

minimalistic Bob

0 Likes
Anonymous
Not applicable

Thanks, Mr. Marlowe!

0 Likes