Adc Acquisition; Battery Voltage Service - Ebyte E104-BT51 User Manual

Cc2640r2f ble5.0 low power consumption, bluetooth to serial port module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.

5.6 ADC Acquisition

The E104-BT51 module, in order to adapt to a wider range of data acquisition, adds two 12-bit precision ADC
acquisition channels, the reference voltage is fixed ref is 4.3V, uses the command "AT + ADCx?" to read the ADC value
of the ADCx pin and display it in decimal. User can calculate the voltage Vx to be measured according to the formula.
Formula: ref / 4096 = Vx / ADC. For details on reading the ADC acquisition volume, refer to Command
the ADC Sample Value.
Notice: This module does not need to do voltage division or other operations, just connect the target to be tested to the
detection pins (DIO_23, DIO_24), and then ground the module.

5.7 Battery voltage service

The E104-BT51 module in order to enable the battery voltage to be obtained in a timely manner, and can be
displayed intuitively in mobile phones or other devices, this module adds a battery voltage service. You only need to
connect a specific ADC acquisition pin to the corresponding battery pin, the device will automatically collect battery
voltage data periodically, calculate the corresponding percentage according to the user's preset voltage upper and lower
limits, and update to the Bluetooth service in real time to wait for other host devices to obtain data. Users can calculate
the corresponding voltage value based on the ratio updated by the Bluetooth service. We use p to represent the
percentage of battery service, Btmax to represent the set full battery voltage, and Btmin to represent the minimum battery
Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.,Ltd.
3-12
E104-BT51 User Manual
6.45 Querying

Advertisement

Table of Contents
loading

Table of Contents