WiFi Airplante Remote Control App (Android)
Controls a self built airplane over wifi socket server
📝
Table of contents: - Project information/explanation
- Screenshots
- How to use
- Programmatic implementation
Project information/explanation
🖼️
Screenshots
❓
How to use - Start the plane by connecting a power source
- Wait about 30 seconds until the NodeMCU is fully up and running
- Connect to the WiFi called
Arduino_Airplane
- Start/Restart the application
- On the left hand side is the speed controller
- By tilting the device verticaly, you can adust the height
- By tilting the device horizontaly, you can adust the direction
💻
Programmatic implementation The entire app is programmed in Android Studio using the Java programming language and the build automation tool gradle. It consists of two different app activities that can be switched by tilting the device.
The aircraft has an Arduino NodeMCU programmed in C++. It builds its own open Wifi Access Point and opens port 1337. All packets that arrive at the Arduino via this TCP socket are passed on to the engine control to tilt the wings and determine the engine speed.
This is what a single package looks like in plain text: 95,120,30\n
When starting the app, the Android app determines the standard WiFi gateway and sends a packet with all the movement data every 100 milliseconds after the connection is established.