Code Monkey home page Code Monkey logo

battery-mah's Introduction

Battery Percentage and mAh Used

Widget to display the levels of Lipo/HV-Lipo battery with mAh Used based on battery voltage from 'Cels' sensor (FLVSS)

If you've ever wondered what % of your battery was left and how much mAh you've used
This widget will display them based on the lowest cell from the telemetry obtained from the (FLVSS).

  • This is not an "Actual" reading of the mAh. It is a calculation based on the remaining volts of the battery.
  • "Actual" mAh consumed can only be obtained from a consumption sensor.

The mAh is based on the Lipo discharge rate of commercially available sensors.
The % listed is based on full 4.20 or 4.35 volts/cell represented as 100% and 3.0 volts as 0%

The live readings are taken from the lowest cell of your pack while connected.
The % and mAh numbers typically rise after a flight since the load is reduced and the battery settles.

Setup

Download the release BattmAh.zip

Extract the folder to the WIDGETS folder on the SD card
Select the Widget from the screen

Options available

  • Setting the sensor Choose 'Cels' or the calculations will be off
  • Setting the Capacity of the battery
  • Setting the number of cells (this is for a visual indication of the battery you’re flying and has no effect on the calculations)
  • Setting the voltage of the cells in the pack. There is a different chart for 4.2 Lipo’s & 4.35 HV-Lipo’s Edit Settings

Streamlined Version

If you prefer to use a calculted sensor as I do, it eliminates alot in internal lookups and makes it easier to install into existing scripts
Download this version here BattmAh_v1.1.zip
Extract the files to the Widgets folder
Create a calculated sensor
Here is what is hard coded (instructions are included for using the sensor widget option with this version within the main.lua file
Calculated sensor

Download this version here BattmAh_v1.1.zip

Assets

Initial Version BattmAh.zip
Streamlined Version BattmAh_v1.1.zip

battery-mah's People

Contributors

jrwieland avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.