Mercury V1 매뉴얼
빠르고 쉽게 비행하는 방법을 알아보세요. 고도계를 Altimeter Cloud 웹사이트에 연결하여 업로드하고 모든 고급 기능을 사용하세요. 막히거나 시작하는 경우 여기가 적합한 장소입니다.

코드 예시: 출력 제어

PDF

Mercury는 외부 장치를 전원하는 데 사용할 수 있는 고전류 출력을 탑재하고 있습니다. 단기적으로는 10-12암페어를 처리할 수 있고 지속적으로는 2-3암페어를 처리할 수 있습니다. 또한 출력에 LED가 연결되어 있으므로 출력을 테스트하고 보드의 LED를 깜박이기 위해 이 예제 코드를 사용할 수 있습니다.

Arduino IDE를 사용하고 있나요? 저희 온라인 프로그래머는 기본적으로 Mercury_Pins.h를 포함하므로 핀 이름이 문제 없이 작동합니다. Arduino IDE 또는 다른 프로그래머를 사용하는 경우, Mercury_Pins.h 탭 내용을 복사하여 프로그램 맨 위에 붙여넣으세요.
/*
 * Mercury V1 (ESP32-C6) Output example 
* 출력 LED를 깜박이고 고전류 출력을 켜고 끕니다. */ #include "Mercury_Pins.h" void setup() { pinMode(OUT1, OUTPUT); // BUTTON 입력을 풀업해야 하며, 누르지 않으면 1이고 누르면 0입니다. digitalWrite(OUT1, LOW); // 시작할 때 항상 출력을 끄는 것이 좋은 습관입니다 } void loop() { digitalWrite(OUT1, HIGH); delay(500); digitalWrite(OUT1, LOW); 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