Gabriele Russo 7c9d1b0abf Battery level with proportional filter and lookup table (#3216)
* Add battery level with lookup table

now uses a lookup table to better calculate battery level of different cells

* LifePo4 and PB battery table - added voltage filter

removed delay from adc reading, added a software filter to smooth out voltage readings. In those applications battery would last hours to days, no sudden change should be expected so a less frequent voltage reading or a more aggressive filtering could be done.
Note: to speed up convergence i initiliazied the last value to the minimum voltage, there are other and better ways to init the filter.

Added LiFePO4 and PB  open circuit volta battery tables,

* Fixed ADC_CTRL , Checks for valid ADC readings

line 230/386 For heltec v3 and heltec tracker a different approach was used with the ADC_CTRL pin, now is more uniform using the same code for the 3 boards.

line 236 Check if the raw reading we are getting is Valid or not, count only the valid readings. This could lead to a division by 0 (improbable) so that's why at line 258 there is a check for that.

* updated OCV values

updated value to not OCV but to very low current, almost the same anyway

* Added Alkaline/Nimh voltage curve

Added Alkaline/Nimh voltage curve for AA/AAA and similar cells

* updates variants for new capacity measurement

* trunk reformatting

* trunk fmt

* Add LTO chemistry

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: code8buster <20384924+code8buster@users.noreply.github.com>
2024-02-16 06:09:57 -06:00
2024-02-10 20:09:51 -06:00
2023-08-03 10:05:38 +02:00
2024-02-10 17:55:32 -06:00
2021-10-09 17:15:12 +11:00
2024-02-14 07:23:55 -06:00
2023-01-21 21:23:24 +01:00
2023-05-24 02:44:30 +02:00
2022-11-26 16:03:17 +01:00
2022-11-20 16:14:32 +01:00
2023-01-21 21:23:24 +01:00
2024-02-10 17:55:32 -06:00
2023-10-09 22:30:02 +10:00

Meshtastic Firmware

GitHub release downloads CI CLA assistant Fiscal Contributors Vercel

Overview

This repository contains the device firmware for the Meshtastic project.

Stats

Alt

Description
This repository contains the official firmware for Meshtastic, an open-source, off-grid mesh communication system.
Readme 53 MiB
Languages
C++ 67.3%
C 30.6%
Python 1%
Batchfile 0.4%
Shell 0.4%
Other 0.2%