RAK811 RUI, measure self battery

Hi,
I tried to asked this in other topic, had 0 answers, so probably i wasn’t enough clear. So here is another try:

I want to read the battery of a node that uses RAK811 module and is programmed using RUI, based on RAK7204 code example.

rui_adc_get() function uses VCC (battery voltage) as vref for the ADC, so the resistor divider method will not work. (Tested!. Will show the same value regardless battery voltage)

In rui.h i found a header for rui_device_get_battery_level() function, which i suppose was designed for that purpose using the internal 1.2v reference, however when this function is included in the code, the online compiler throws errors “unknown function”.

So if someone can point me a working and tested example of battery self measurement with RAK811 module and RUI, without external components, the project will be finished!

Oh i forgot, the project is OPEN SOURCE, correct battery measurement is the last thing to finish it. You can check the code here:

https://github.com/galopago/RAK811_RUI_SWITCH_SENSOR

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.