dniklaus / battery Goto Github PK
View Code? Open in Web Editor NEWLiPo Battery Voltage Surveillance component
License: MIT License
LiPo Battery Voltage Surveillance component
License: MIT License
Different MCU types provide different ADC implementations (Analog Digital Converter).
In particular the following parameters differ between the implementations:
The following table shows the to be supported MCU types and the corresponding ADC parameters.
MCU | V_ADC_FULLRANGE [V] | N_ADC_FULLRANGE [1] |
---|---|---|
ESP 8266 | 1 | 1023 |
Adafruit Feather M0 | 3.3 | 1023 |
Arduino DUE | 3.3 | 1023 |
Atmel AVR | 5 | 1023 |
Tasks
In order to make object creation much easier the BatteryAdapter
class shall be enhanced by the following:
Battery* m_battery
attachBattery(Battery* battery)
setting the m_battery
attributeExtract all debug related code out of the sketch and encapsulate it in a new product component prod-dbg
. See also in wiring-iot-skeleton, adapt to it accordingly.
%d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
sprintf(buf, "evaluateStatus(), stat: %s, rawVal: %d, factor: %d thds, VFull: %dmV, NFull: %d, Voltage: %dmV",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.