Skip to the content
2 layers90.6 × 51 mmDrone hacking PCB, the printed circuit board in 3D

firmware/MINEVESPER.ino内で以下のパラメータを調整できます。 cpp // ジョイスティックの感度 #define JOYSTICKEMAALPHA 1.0 // 1.0 = ピーキー, 0.3 = スムーズ

Size
90.6 × 51 mm
Copper layers
2
Thickness
1.6 mm
Parts
16
Nets
56
Pads
106
Tracks, vias
130, 5
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Nov 2025
Updated
9 Nov 2025

Overview

Drone hacking PCB is an open-source printed circuit board by BB-KING777, from the BB-KING777/Aliexpress_Drone_controller repository on GitHub. It is a 2-layer board of 90.6 × 51 mm with 16 parts on 56 nets, routed with 130 tracks and 5 vias.

It is built around the RKJXV122400R. Its parts include 7 switches, 5 resistors, 1 IC and 1 connector. It belongs with the robots and motor control boards of this library.

Main components

1

README

README.md

Aliexpress_Drone_controller

MINE VESPER - Custom Drone Controller

License: MIT

中国製激安ドローン(GT3)の通信プロトコルをリバースエンジニアリングし、ESP32ベースのカスタムコントローラーを開発したプロジェクトです。

📖 概要

このプロジェクトは、Aliexpressで約3000円で販売されている2.4GHz帯ドローンの通信プロトコルを解析し、専用のハードウェアコントローラーを自作したものです。約3ヶ月にわたる試行錯誤の末、WiFi(802.11)上のUDP通信で123バイトのパケットを送信する独自プロトコルを解明しました。

主な特徴

  • 完全なプロトコル実装: リバースエンジニアリングにより解明した123バイトパケットを完全再現
  • リアルタイム制御: 80Hz(約13ms間隔)での高速パケット送信
  • 直感的な操作: ALPS製2軸アナログジョイスティックによる滑らかな制御
  • 視認性の高いUI: SSD1306 OLEDディスプレイでリアルタイム表示
  • 低コスト: 総製作コスト約2000円(基板製造費込み)

🎥 デモ

詳細な解析プロセスとデモ動画は、ブログ記事をご覧ください。

🛠️ ハードウェア

必要な部品

部品型番/仕様数量参考価格
マイコンモジュールESP32-WROOM-32D1約1,500円
アナログジョイスティックALPS RKJXV12240051約800円
OLEDディスプレイSSD1306 (128×64, I2C)1約500円
タクトスイッチ6mm 4ピン5約50円
抵抗10kΩ4約20円
PCB-1約500円

合計: 約2,000円(基板製造費込み)

基板設計

PCB設計ファイルは/hardwareディレクトリに格納されています。

  • 設計ツール: KiCad
  • 基板サイズ: コンパクト設計(ポケットサイズ)
  • 実装方式: スルーホール実装(はんだ付け難易度: 低)
  • 推奨製造業者: JLCPCB, PCBWay, Elecrow など

💻 ファームウェア

環境構築

  1. Arduino IDEのインストール
    • Arduino IDEをダウンロード
    • ESP32ボードマネージャーをインストール
      • ファイル → 環境設定 → 追加のボードマネージャのURL:
text
     https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
  1. 必要なライブラリのインストール
    • Adafruit GFX Library
    • Adafruit SSD1306
    • WiFi (ESP32標準)
    • WiFiUdp (ESP32標準)

ファームウェアの書き込み

  1. リポジトリをクローン
bash
   git clone https://github.com/yourusername/MINE-VESPER.git
   cd MINE-VESPER
  1. Arduino IDEでfirmware/MINE_VESPER.inoを開く

  2. ボード設定

    • ボード: "ESP32 Dev Module"
    • Upload Speed: "115200"
    • Flash Frequency: "80MHz"
  3. シリアルポートを選択して書き込み

主な機能

  • WiFiスキャン: 起動時に周辺のアクセスポイントを自動スキャン
  • AP接続: ボタン操作でドローンのAPを選択・接続
  • 制御モード:
    • ロール/ピッチ/スロットル/ヨーの連続制御
    • 離陸/着陸コマンド
    • ジャイロキャリブレーション
    • ヘッドレスモード切替
  • リアルタイム表示: 制御値、ADC値、接続状態を表示

カスタマイズ可能なパラメータ

firmware/MINE_VESPER.ino内で以下のパラメータを調整できます。

cpp
// ジョイスティックの感度
#define JOYSTICK_EMA_ALPHA 1.0        // 1.0 = ピーキー, 0.3 = スムーズ

// 制御の平滑化
#define CONTROL_SMOOTH_ALPHA 1.0      // 1.0 = 即応性高, 0.5 = 安定性高

// デッドゾーン
#define STICK_DEADZONE 100            // 中央付近の不感帯

// Expoカーブ
#define STICK_EXPO 0.0                // 0.0 = リニア, 0.5 = 中央付近が敏感

// 送信レート
#define CONTROL_INTERVAL 13           // ms (約80Hz)

📡 通信プロトコル

概要

  • プロトコル: UDP over WiFi (802.11)
  • ポート番号: 8800
  • IPアドレス: 192.168.169.1(ドローン固定IP)
  • 送信方式: Fire-and-Forget(一方向送信)
  • 送信レート: 80Hz(約13ms間隔)

パケット構造(123バイト)

パケットは6つのブロックで構成されています。

text
[ヘッダー 12B] [カウンター1 8B] [制御データ 16B] [チェックサム 51B] [カウンター2 20B] [カウンター3 16B]
ブロック3: 制御データ(最重要)
オフセット名前範囲説明
0Roll40-220ロール(左右傾き)、中央値: 128
1Pitch40-220ピッチ(前後傾き)、中央値: 128
2Throttle40-220スロットル(上昇/下降)、中央値: 128
3Yaw40-220ヨー(回転)、中央値: 128
4Command0x00-0x04コマンドバイト(下表参照)
5Headless0x02/0x03ヘッドレスモード (OFF: 0x02, ON: 0x03)
コマンド一覧
値コマンド説明
0x00NEUTRAL待機状態(常時送信)
0x01TAKEOFF離陸
0x02LAND着陸/緊急停止
0x04CALIBRATEジャイロキャリブレーション

詳細なパケット構造はプロトコルドキュメントを参照してください。

🔧 組み立て手順

  1. PCB発注

    • /hardware/gerberをZIP圧縮してJLCPCBなどに発注
    • 推奨オプション: 紫色、1.6mm厚
  2. 部品実装

    • スルーホール部品を順番にはんだ付け
    • 重要: SSD1306の裏面に帯電防止テープを貼る
  3. ファームウェア書き込み

    • ESP32にUSB接続してファームウェアを書き込み
  4. 動作確認

    • 電源投入 → WiFiスキャン → ドローンAP接続 → 制御テスト

詳細な組み立てガイドはこちら。

📝 使い方

  1. 起動

    • コントローラーに電源を投入
    • 自動的にWiFiスキャンが開始されます
  2. 接続

    • 上下ボタンでドローンのAPを選択
    • 決定ボタン(中央)で接続
  3. 操縦

    • 左スティック: スロットル(上下)、ヨー(左右)
    • 右スティック: ピッチ(上下)、ロール(左右)
    • 上ボタン: 離陸
    • 下ボタン: 着陸
    • 左ボタン: ヘッドレスモード切替
    • 中央ボタン: ジャイロキャリブレーション

🚀 今後の拡張案

  • リチウムバッテリー内蔵でポータブル化
  • 録画機能の実装
  • FPV(First Person View)対応
  • 3Dプリントケースの設計
  • Bluetoothゲームパッド対応
  • テレメトリーデータ受信機能

⚠️ 免責事項

  • このプロジェクトは教育・研究目的です
  • ドローンの飛行は各国の法規制に従ってください
  • リバースエンジニアリングは個人使用の範囲で行ってください
  • プロジェクトの使用により生じた損害について、作者は一切の責任を負いません
  • 安全な場所でテストを行い、事故には十分注意してください

📄 ライセンス

このプロジェクトはMITライセンスの下で公開されています。詳細はLICENSEファイルを参照してください。

🙏 謝辞

  • cifertech氏 - nRF24L01スキャナーのガイド
  • atomic14氏 - ESP32-S3基板設計の参考
  • Adafruit - 優れたライブラリ群
  • KiCad - 素晴らしいEDAツール

📚 参考資料

🤝 コントリビューション

プルリクエストを歓迎します!大きな変更の場合は、まずissueを開いて変更内容を議論してください。

📧 コンタクト

質問や提案がある場合は、Issueを開くか、ブログのコメント欄でお知らせください。


MINE VESPER - Made with ❤️ by Waka

Parts

16
QtyValueFootprintReferences
5RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5
5SW_PushButton_Switch_THT:SW_PUSH_6mm_H5mmSW1, SW2, SW3, SW4, SW5
2RKJXV122400Rjoysticks:RKJXV122400RS1, S2
1Conn_01x02_PinSSD1306:4xAA batteryJ1
1LOGOLOGOG***
1SSD1306SSD1306:128x64OLEDBrd1
1~ESP32_Footprints:ESP32_38pin_amazonU1

Similar boards

  • 2 layers316 × 119 mmTeensy Grovebox, the printed circuit board in 3D

    Teensy Grovebox

    jerry20091103/Teensy_Grovebox

    A portable synth and music multi-tool made with Teensy 4.1

    142 parts150MIT
  • 2 layers321.8 × 129.3 mmPico keyboard v1, the printed circuit board in 3D

    Pico keyboard v1

    zli117/Pico-Keyboard

    Hardware design for a mechanical keyboard based on RP2040

    160 parts104CC-BY-SA-4.0
  • 2 layers245.3 × 78.6 mmSg48key2, the printed circuit board in 3D

    Sg48key2

    sago35/keyboards

    This repository was created to manage the circuitry and firmware for the keyboards I designed. The firmware is created using sago35/tinygo-keyboard.

    158 parts22MIT
  • 2 layers25.8 × 20 mmTM Warthog Open Analog Slew, the printed circuit board in 3D

    TM Warthog Open Analog Slew

    ServError/Thrustmaster_Warthog_Throttle_Alps_Slew_Mod

    An open source replacement for the terrible TM Warthog Throttle slew stick

    10 parts12
  • 2 layers70 × 128.5 mmJoystick v3.0, the printed circuit board in 3D

    Joystick v3.0

    StudioKAT/Joystick

    この作品は Creative Commons 表示 - 継承 4.0 国際 (CC BY-SA 4.0) の下でライセンスされています。 This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

    110 parts9
  • 2 layers98 × 98 mmTinygo conf-2026, the printed circuit board in 3D

    Tinygo conf-2026

    tinygo-keeb/tinygo-conf-2026-badge

    TinyGo Conference 2026 向け開発ボード (devkit) の KiCad プロジェクトです。 ESP32-S3-DevKit を中心に、ディスプレイ・オーディオ・入力デバイスなどを 1 枚の基板にまとめています。

    26 parts2
  • 2 layers141 × 68.5 mmZRaiderViper, the printed circuit board in 3D

    ZRaiderViper

    radioation/ZRaiderStick

    Z Raider - Analog Joystick for Atari 800/XL/XE Computers

    37 parts1GPL-3.0
  • 2 layers108.5 × 61 mmVGAutumn, the printed circuit board in 3D

    VGAutumn

    Alan-GIRAUDON/VGAutumn

    VGAutumn is a RP2040 VGA joystick PCB. This board allows to play different game using its VGA output and its inputs (joystick, buttons).

    72 partsMIT

Questions

How big is the Drone hacking PCB PCB?

It measures 90.6 × 51 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Drone hacking PCB use?

16 parts, built around the RKJXV122400R. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Drone hacking PCB KiCad files?

From the BB-KING777/Aliexpress_Drone_controller repository on GitHub, at the commit this page was made from: the board is Drone_hacking_PCB/Drone_hacking_PCB.kicad_pcb and its schematic Drone_hacking_PCB/Drone_hacking_PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Drone hacking PCB design in my own project?

Its repository states no licence, so its author keeps all rights: ask BB-KING777 before reusing the design.