Meshtastic device firmware
Go to file
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
.github Added RP2040-LoRA target (#3195) 2024-02-10 20:09:51 -06:00
.trunk Remove truffle-hog tool for now since it's breaking CI 2023-12-07 07:14:41 -06:00
.vscode Update extensions.json 2023-08-03 10:05:38 +02:00
arch Adds i2c device configuration to native (#3143) 2024-01-28 20:15:29 -06:00
bin LilyGo T-Echo Bootloader UF2 and ZIP packages (#3210) 2024-02-11 14:10:08 -06:00
boards [BOARD]: CanaryOne (#3150) 2024-02-10 17:55:32 -06:00
data/static Bundle WebUI (#878) 2021-10-09 17:15:12 +11:00
images remove hard to maintain system-info bootloader 2022-10-01 09:50:16 +02:00
monitor add rudimentary exception decoder for RISC-V CPU 2023-03-05 14:55:12 +01:00
protobufs@4432d3bfc1 Update protos 2024-02-14 07:23:55 -06:00
release don't keep uf2 files in source control 2020-08-21 09:37:41 -07:00
src Battery level with proportional filter and lookup table (#3216) 2024-02-16 06:09:57 -06:00
variants Battery level with proportional filter and lookup table (#3216) 2024-02-16 06:09:57 -06:00
.gitattributes trunk roundhouse kick 2023-01-21 21:23:24 +01:00
.gitignore tryfix cppcheck errors 2023-05-24 02:44:30 +02:00
.gitmodules revert protobuf change to develop 2022-11-26 16:03:17 +01:00
.semgrepignore Ignore upstream defect 2022-11-20 16:14:32 +01:00
docker-compose.yml trunk roundhouse kick 2023-01-21 21:23:24 +01:00
Dockerfile Update Linux binaries to use arch names (#3093) 2024-01-13 19:11:59 -06:00
LICENSE move my bt experiment into its own repo (about to remove ttn) 2020-02-01 08:30:53 -08:00
partition-table.csv - new Bootloader for ESP-IDF 4.2 2022-09-26 22:42:58 +02:00
platformio.ini [BOARD]: CanaryOne (#3150) 2024-02-10 17:55:32 -06:00
README.md Update README.md 2023-10-09 22:30:02 +10:00
suppressions.txt Cpp-check warnings cleanup (#3014) 2023-12-14 07:35:46 -06:00
version.properties [create-pull-request] automated change (#3200) 2024-02-10 17:56:04 -06: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