battery V/A reading


does 1 knows how check batterys voltage arduino (if possible amps too) problem battery 12.6v , 4a.....so there way???? maybe aref pin????

use voltage divider lower voltage maximum less 5. input 1 of analog input pins (not aref).

you can try 3.3k , 10k resistors wired this:

12v ------ 10k ------ analog in ------- 3.3k ------- grnd

you can calculate voltage this:
voltage = (analog in) * 5/1024 * (10+3.3) / 3.3
or
voltage = (analog in) * 0.01966

don't forget use floats when have decimals.


Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > battery V/A reading


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial