Has anyone had any issues with their Puck draining the battery super quickly? I have one that has been running for 2 weeks and is still on 100% and another that went flat in about 5 days? Both were running v200 and I have just put a cutting edge build on and noticed it has used 8% in the last hour an a half. The last three batteries have all been brand new from the packet. Same batch as the one in the unit still at 100%
The code running isn't complicated. It's mostly just an IR remote I send commands too but get it to report temperature and battery voltage too. I have also checked D28 and D29 with .getMode() and they report input so I assume the serial port isn't on and keeping it awake?
var tvOn = [1,1,1];
var tvOff = [1,1,1];
var tvToggle = [1,1,1];
function onInit() {
//start up and flash the lights in order...
LED1.set();
setTimeout(function() {
LED1.reset();
LED2.set();
setTimeout(function() {
LED2.reset();
LED3.set();
setTimeout(function() {
LED3.reset();
},300);
},300);
},300);
setInterval(function() {
NRF.setAdvertising({
0x180F : [Puck.getBatteryPercentage()],
0x1809 : [E.getTemperature()]
},{interval:5000});
},15*60*1000);
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi all,
Has anyone had any issues with their Puck draining the battery super quickly? I have one that has been running for 2 weeks and is still on 100% and another that went flat in about 5 days? Both were running v200 and I have just put a cutting edge build on and noticed it has used 8% in the last hour an a half. The last three batteries have all been brand new from the packet. Same batch as the one in the unit still at 100%
The code running isn't complicated. It's mostly just an IR remote I send commands too but get it to report temperature and battery voltage too. I have also checked D28 and D29 with .getMode() and they report input so I assume the serial port isn't on and keeping it awake?
Cheers,
Ryan