Interfacing
Now that we have prepared our drone, M5Stack module, and the gesture model, let's interface everything together in code.
The complete interfacing code is provided here: https://github.com/crisdeodates/Tello_M5Stack_EI_control.
Flash the code into the M5Stack module.
For user interaction:
- We use the TFT screen on M5Stack to show the wifi connection status and the gesture detection status.
- Long-pressing the push-button A on the M5Stack module enables gesture control and Long-pressing push-button B disables it.
- Move the M5Stack module to make various gestures.
Testing
Let us now test the gesture control and see how well it works.
Blog Series:
Gesture Controlled Drone #1 : Introduction
Gesture Controlled Drone #2 : Preperation - Drone
Gesture Controlled Drone #3 : Preperation - M5Stack
Gesture Controlled Drone #4 : Gesture Control
Gesture Controlled Drone #5 : Gesture Recognition using Edge Impulse