diff --git a/README.md b/README.md index 227a97c..a228406 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Voici à titre indicatif le matériel utilisé et leur prix d'achat sur eBay int - DC-DC Converter Step Up 1-5V 500mA | 1,15€ - 3,7V 600mAh LiPo Battery | 3,25€ - RTC Module for Arduino | 1,55€ -- 3x 10k Ohm resistor + 1x 100k Ohm resistor + 1x 110 Ohm resistor | 0,10€ +- 3x 10k Ohm resistor + 1x 100k Ohm resistor + 1x 120 Ohm resistor | 0,10€ - Right Angle Mini Slide Switch | 0,10€ - Cables | 3€ - Plastic Electronics Project Box Enclosure DIY 27x60x100mm | 2,40€ diff --git a/Variometer.png b/Variometer.png index 7896481..98810e3 100644 Binary files a/Variometer.png and b/Variometer.png differ diff --git a/Variometer/Variometer.ino b/Variometer/Variometer.ino index 1c67880..529cf0d 100644 --- a/Variometer/Variometer.ino +++ b/Variometer/Variometer.ino @@ -799,7 +799,7 @@ void menuChangeEvent(MenuChangeEvent changed) int readVccPercent() { //unsigned int raw_bat = analogRead(A0); - float real_bat = ((analogRead(A0) * (3.7 / 1024)) * 2); + float real_bat = 5 *analogRead(A0) / 1023; average_vcc = average_vcc * 0.94 + real_bat * 0.06; return round((average_vcc - 1.5) * 100 / (3.7 - 1.5)); } @@ -881,6 +881,7 @@ void loop() = (D2 * alt) - (D2 * Altitude) / (tim - tempo)² = D2 * (alt - Altitude) / (tim - tempo)² = ((tim - tempo) * (alt - Altitude)) / (tim - tempo)² + = (alt - Altitude) / (tim - tempo) */