# Xiaomi Drone Remote Controller
![0f0802fd512523410ba4fe818646edc.jpg]

![0502950249eda084f3563ec03bcba0d.jpg]

## Introduction
### Remote Control Part
* **Before Modification**
![183991f50803be105cab8c2a49a8e45.jpg]

* **After Modification**
![1e25b8acc55335a909d1ce3824a509e.jpg]

**The appearance of this remote control is basically unchanged, mainly the internal motherboard has been replaced, and the original place where the phone was clamped has been changed to an ink screen. At present, this ink screen can only display channel values, and no other functions are used, so the menu has not been written yet. **
![99970d07b8df1548490444661f2560d.jpg]

**Ink screen driver board**
![f9f992988389ad3526f7e0f3f1a49af.jpg]

**The charging port has been replaced with an extremely advanced type C port. **
`This remote control can only be said to be usable at present, and I have not tested its specific performance. I am not a model airplane player and I am not familiar with the relevant protocols, so the code is not perfect enough. Interested students can further improve it.
` ### Receiving part
* **The wireless module selected is the commonly used 2.4G module nRF24L01, which provides 6-way PWM interface and serial port. **
![55811dd050ee27122e81e9e6c87e363.jpg]

**Open source materials include:**
* Remote control, receiver, ink screen driver board PCB files
* Remote control, receiver firmware source code
* Ink screen fixed 3D printing file
**Introduction video:**
[Hovercraft_Modified Xiaomi Remote Control_Bilibili_bilibili](https://www.bilibili.com/video/BV1VP4y1e7JJ/?share_source=copy_web&vd_source=05a706bbfb8a2b3090007f78f1cede0c&t=95)
## Device selection
* The main control chip of the remote control end is STM32F103C8T6, which uses 7-channel ADC, 6 of which are rocker potentiometers and 1 measures battery voltage. Two SPIs are connected to the 2.4G module and the ink screen respectively. Add a few buttons and LEDs, and the IO is basically enough.
![微信快照_20230209163600.png]

* The main control chip of the receiving end is STM32G030F6P6, and the IO is just enough.
![微信快照_20230209163637.png]

* The charging chip is `IP5306_CK`, which integrates a boost converter, lithium battery charging management, and battery power indication multi-function power management. It was used by power banks before. This remote control of Xiaomi just has a power button and four power indicator LEDs, which is very suitable.
![检查端充值管理快照.png]

* The nRF24L01 module can choose the module of `泽耀科技` or `亿比特`, and these two modules can be replaced with each other.
![微信快照_20230213152505.png]

![微信快照_20230213144408.png]

## 3.Project code
**Open source link: [XiaoMi_Remote_Control_Github](https://github.com/DaqoLee/XiaoMiRemoteControl.git)**