5.5.9 Read ADC Input Voltage or Query Battery Voltage
| Firmware Version 1.0 | Firmware Version 1.2 and Later |
|---|---|
|
|
Note: All Firmware version 1.0 syntax remains valid in version 1.2 and later. | |
Read the current voltage level. The unit of response is 0.001V. An analog signal can be provided as an input to the RNBD350 module at the ADC pin (PB7). The RNBD350 module does the ADC conversion using a fixed reference and provides the digital value. Prior to initiating the Read ADC Input Voltage command, the user has to configure the factors of voltage detection using the Set ADC reference Factors command (S@,<hex16>,<hex8>) or (SBVF,<hex16>,<hex8>) command. Use the factors to get the actual ADC voltage. This command expects the reference voltage and bias voltage percentage as input parameters. For more details, refer to Set ADC Reference Factors or Set Battery
Voltage Factors.
| Item | Firmware Version 1.0 and Later | Description |
|---|---|---|
| Example: | @,4 | Read battery voltage |
| Response: | 0A28 | The analog value of 0A28 corresponds to the analog voltage of 2.6V |
| Item | Firmware Version 1.2 and Later | Description |
|---|---|---|
| Example: | QBV,4 | Query Battery Voltage |
| Response: | 0A28 | The analog value of 0A28 corresponds to the analog voltage of 2.6V |
