This design is rework of my monitor, published already in 2017. I decreased the size of sensor through creating a special PCB with all the components. In this way, I achieved approximately the same dimensions, but with just one PCB populated, i.e. hight of sensor is less.
Both designs signalize voltages of three cells in LiPol / LiIon / LiFePo battery by displaying them on JETIBOX LCD and beeping through JETI Tx module as well display vario and altitude data on screen.
I am using cheap pressure sensor BMP280 and internal analog digital convertor inside the processor for measuring voltages of LiXXX cells.
You can see the pictures of the whole design and download appropriate files:
Schematics:
PCB Layout (note: R13 is not populated):
The PCB design files in Gerber format and BOM were exported from KiCad. They are downloable here:
JETI_LiXXX_Vario_BMP280_Gerber.zip
JETI LiXXX Vario with BMP280 Bill of Materials
And finally hex files (with or without Arduino bootloader) for ATmega328P, it's fuses should be set for RC oscillator 8MHz (EXTENDED 0xFD, HIGH 0xDA, LOW 0xE2):
JETI_LiXXX_Vario_BMP280_hex.zip
The design is also compatible with openXsensor project - an independent platform for various sensors and telemetry protocols. There is just need to set output pin 2 and solder join between legs 31 and 32 of ATmega328P processor.
In this way, the JETI EX protocol can be reached.
For such usage, you can use the following config files:
JETI_LiXXX_Vario_BMP280_oXsConfig.zip
It is optimal to tune RC oscillator frequency by changing OSCCAL value ... just:
1) programm CKOUT in fuses mentioned above to enable CLKO pin (PB0, pin 12) - you can measure the oscillator frequency here after that (EXTENDED 0xFD, HIGH 0xDA, LOW 0xA2)
2) uncomment "#define OSCCAL_CHANGE" in file "oXs_config_basic.h"
3) change the OSCCAL_VALUE on next line appropriately
4) add the following code to setup() routine in file "openXsensor.ino":
#ifdef OSCCAL_CHANGE
OSCCAL = OSCCAL_VALUE;
#endif
or hex files for ATmega328P are again available here (without OSCCAL modification, with or without Arduino bootloader). Processor's fuses should be set again for RC oscillator 8MHz (EXTENDED 0xFD, HIGH 0xDA, LOW 0xE2):