Mercury V1 manual
आसानी से जल्दी उड़ान भरना सीखें, अपने altimeter को Altimeter Cloud वेबसाइट पर अपलोड करने के लिए कनेक्ट करें और सभी उन्नत फीचर भी प्राप्त करें। यदि आप फंसे हुए हैं या बस शुरुआत कर रहे हैं, तो यह वही जगह है।
कहां खरीदें

कोड उदाहरण: BMP390 और BMP581 pressure सेंसर स्वचालित पहचान के साथ

PDF

Mercury के पास Bosch BMP390 या Bosch BMP581 pressure sensor में से कोई एक है।
यह script आपको दिखाता है कि आपके पास कौन सा है इसका पता कैसे लगाएं और इसका temperature और pressure पढ़ें और इसे altitude में convert करें।

इस प्रोग्राम में उपयोग किया गया standard conversion 1013.25 Hpa (average) pressure और 15 degrees celcius ambient temperature मानता है। 

यदि आप अपने स्थान और समय के लिए अपना local weather forecast ढूंढते हैं और उस जगह का pressure दर्ज करते हैं तो आपको इस script से sea level के ऊपर लगभग अपनी height दिखाई देनी चाहिए।
यदि हमारे online compiler और uploader का उपयोग कर रहे हैं तो Mercury को reset (power button press) करने के बाद Serial monitor को connect करना न भूलें आने वाली जानकारी को देखने के लिए। 

Arduino IDE का उपयोग कर रहे हैं? हमारे online programmer में Mercury_Pins.h default रूप से शामिल है इसलिए pin names बिना किसी समस्या के काम करते हैं। यदि आप Arduino IDE या किसी अन्य programmer का उपयोग कर रहे हैं, तो Mercury_Pins.h tab content की नकल करें और इसे अपने प्रोग्राम के शीर्ष पर paste करें।
// Pressure sensor test example for Mercury altimeters (altimetercloud.com)
#include "Wire.h"
#include "Mercury_Pins.h"

// There are quite a few options for libraries we've chosen these for our example
#include "Adafruit_BMP3XX.h"
#include "Adafruit_BMP5xx.h"

Adafruit_BMP3XX bmp3;
Adafruit_BMP5xx bmp5;

bool hasBMP581 = false;
bool hasBMP390 = false;

float seaLevelHpa = 1013.25;   // The forecast sea level weather pressure for your location. 
float ambientTemp = 15.0;      // The ambient temperature in degrees celcius

void setup() {
    Serial.begin(115200);

    // Turn on the power to the sensors on the Mercury altimeter
    pinMode(VACC, OUTPUT);
    digitalWrite(VACC, HIGH);
    delay(100);

    // Start I2C on the Mercurys SDA and SCL pins
    Wire.begin(SDA, SCL);

    // Detect which pressure sensor is present on your Mercury, earlier revisions had a Bosch BMP390 and later revisions (3+) have the Bosch BMP581
    if (bmp5.begin(0x47, &Wire)) {
        hasBMP581 = true;
        Serial.println("BMP581 found");
    } else if (bmp3.begin_I2C(0x77, &Wire)) {
        hasBMP390 = true;
        Serial.println("BMP390 found");
    } else {
        Serial.println("No sensor found!");
    }
}

void loop() {
    float temp = 0, pressure = 0, alt = 0;

    // Read the detected sensor for it's pressure and temperature
    if (hasBMP581 && bmp5.performReading()) {
        temp = bmp5.temperature;
        pressure = bmp5.pressure;
    } else if (hasBMP390 && bmp3.performReading()) {
        temp = bmp3.temperature;
        pressure = bmp3.pressure / 100.0;
    } else {
        delay(500);
        return;
    }

    // Convert the pressure to altitude using the standard international standard using sea level forecast pressure and ambient temperature.
    alt = ((ambientTemp + 273.15) / 0.0065) * (1.0 - pow(pressure / seaLevelHpa, 0.190266669));
    Serial.printf("Temp: %.1fC  Pressure: %.2f hPa  Alt: %.1f m\n", temp, pressure, alt);
    delay(500);
}

#pragma once
/*
 * Mercury (ESP32-C6) Pin Definitions
 * Board-specific GPIO assignments
 */

// ── Status LED (NeoPixel) ──
#define LEDPOWER      3    // NeoPixel power (drive HIGH to enable)
#define LED           2    // NeoPixel data signal

// ── I2C Bus ──
#define SDA           21   // I2C data
#define SCL           22   // I2C clock

// ── Sensor Power ──
#define VACC          20   // Sensor power rail (drive HIGH to enable)

// ── General Purpose Ports ──
#define GP06          6    // GP06 port
#define GP07          7    // GP07 port

// ── High Current Output ──
#define OUT1          5    // High current output (e.g. pyro / relay)

// ── Battery Bar LEDs ──
#define BL1           4    // Battery LED 1 (lowest)
#define BL2           14   // Battery LED 2
#define BL3           15   // Battery LED 3
#define BL4           18   // Battery LED 4
#define BL5           19   // Battery LED 5 (highest)

// ── Indicators ──
#define DISK          8    // Disk activity LED

// ── Analogue / Detection ──
#define BATIN         0    // Battery voltage (1:1 divider)
#define USBDETECT     1    // USB power detect (HIGH = USB present)
#define BUTTON        9    // BUTTON on the board, boot button but can be used

परिचयविशिष्टताएंसुरक्षा और निपटान
त्वरित प्रारंभ गाइड
उड़ान मोडAltimeter Cloud WiFiएक्सेस पॉइंट WiFiसेंसर को कैलिब्रेट करना
सामान्य
altimeter स्थापित करनाaltimeter को कॉन्फ़िगर करनाAltimeter Cloud के माध्यम सेडिवाइस पर कॉन्फ़िगर करेंनियम कॉन्फ़िगर करनाservos का उपयोग करनाair brakes का उपयोग करनाaltimeter को उड़ानासेंसर को कैलिब्रेट करनाउड़ान डेटा देखनाAltimeter Cloudडिवाइस AP WiFiUSB के माध्यम से सारांशस्नैपशॉट स्क्रीनऊंचाई सटीकताWiFi मोड को बल देंआउटपुटवेंट होल कैलकुलेटरफर्मवेयर अपडेट कर रहे हैं
डेव बोर्ड के रूप में उपयोग करना
प्रोग्राम करने के लिए सेट अप कर रहे हैंयोजनाबद्धकोड: पावर नियंत्रणकोड: बटनकोड: आउटपुटकोड: USB डिटेक्टकोड: स्थिति LEDकोड: I2C पोर्टकोड: दबाव सेंसरकोड: त्वरणमापी और जाइरोकोड: प्राथमिकताएंकोड: Deep sleepमूल कोड को पुनः स्थापित करना
अन्य पृष्ठ
वारंटीसमस्या निवारण और अक्सर पूछे जाने वाले प्रश्नसंसाधन और डाउनलोडतकनीकी और अनुपालन