This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// === 4-Channel Transmitter for nRF24L01 (INV Yaw + Roll) — ROBUST LINK === | |
// A0: throttle (L-Y), A1: yaw (L-X), A2: pitch (R-Y), A3: roll (R-X) | |
// D4: throttle cut (ต่อ GND = 1000us) | |
#include <Arduino.h> | |
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
const uint8_t CE_PIN = 7, CSN_PIN = 8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// === RX (nRF24L01) — ESC@D9 + Elevon Mix (Left=D3, Right=D6) — FAST RESPONSE + ROBUST LINK === | |
#include <Arduino.h> | |
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
#include <Servo.h> | |
const uint8_t CE_PIN=7, CSN_PIN=8; | |
RF24 radio(CE_PIN, CSN_PIN); |