You can get Konashi's battery level by constructing the following sample code with Konashi.js.
I will explain this battery level.

Article header jsdoit image 1

Please click here for a copy

k. updateBatteryLevel(function(data){
// Executed when the remaining battery level is acquired console.log("#Battery: " + data + "%");
});

k.ready(function(){
k.batteryLevelRead(); // Battery level acquisition request
});

// find konashi
k.find();


Konashi 2.0 calculates linearly according to the voltage level input to the VDD pin of the module, with 3.2V as 100% and 1.8V as 0%.
When a coin battery (3.0V) is inserted, the voltage is lowered by a diode for preventing backflow, so the battery level at about 2.7V is displayed.

Please use it as a guideline for the operation time of the application implemented by battery drive.


Related products

Related Links

articleMAKERS Article ListNext