spasutto / SimpleBTVario

Simple Bluetooth Vario (Arduino + MS5611 barometric pressure sensor) with LK8000/LXNAV bluetooth sentences
GNU General Public License v3.0
8 stars 0 forks source link

SimpleBTVario

Simple Bluetooth Vario (Arduino + MS5611 barometric pressure sensor) with LK8000/LXNAV bluetooth sentences

Forked from Vario by D.Felix (https://codebender.cc/sketch:34645#Vario.ino)

Differences from original:

Schematic / BOM

Programming/assembly instructions

Prerequisite : you must download and install MS5611 library here : https://github.com/jarzebski/Arduino-MS5611

First, use a 3.3V Arduino Pro Mini, because the 3.7V battery is connected directly to the VCC and the atmega328p is not designed to run @16MHz with Vcc around 3.3V. The battery (or battery charger output) must be connected to VCC and not RAW or the battery level will be wrong.

To measure properly the battery voltage, you must determine the real voltage of the 1.1V internal reference voltage (ref Nick Gammon site). So first upload this simple code to the arduino :

void setup ()
{
  ADMUX = bit (REFS0) | bit (REFS1);  // Internal 1.1V reference
}
void loop () { }

And then, with the help of a multimeter, measure the voltage at Aref pin (18 on pro mini), it should be ~1.1V. Finally, update the value of the constant variable named "InternalReferenceVoltage" in the sketch SimpleBTVario.ino and upload it, you're done with the programming part!!!

Low power enhancement

You can remove the regulator and the led because they use power, and also the built-in led. Similarly you can remove the leds on the HC-05/6 and MS5611.