Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


bigredbee_2mhp

BeeLineGPS 2M HP

5 W APRS transmitter

Info

Convert reported voltage

The raw value coming out of the A/D converter is sent directly. The battery voltage gets divided by 3 before going into the 10 bit (1024 steps) A/D converter. The microcontroller runs at 3.3 V.

From volt to hex

Battery is at 8.0 V.
ADVALUE = 8/3/3.3*1024 = 827, convert to hex and you get 0x338.

From hex to volt

Reported value is V338.
Convert 0x338 to decimal and multiply by 9.9/1024
827*9.9/1024 = 7.99 V

bigredbee_2mhp.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1