M5STACK FIRE + Orientation sensor MPU9250
Nice impressive demo for a 3D aircraft model in the browser window, which is controlled by the 3-axis orientation of the M5-device itself.
I adapted that for the use with an ESP32 based M5Stack FIRE. This device has a built-in orientation sensor MPU9250 and works independently and really wireless on the basis of its LiPol battery.
By combining and modifying the code snippets of the ANNEX32 help file it was only a short work until a nice impressive demo for a 3D aircraft model could be seen in the browser window, which is controlled by the 3-axis orientation of the M5. .
A short Video of the result is HERE.
ATTENTION: The BASIC-code and the additional files for the 3D-Model and JS-scripts must be located in the root directory of the M5-filesystem and not in a subdirectory.
The necessary additional files come from the full-size-datafile of ANNEX for ESP8266.
I hope this little application might be as much fun for someone else as it was for me.
The BASIC code for ANNEX32-RDS is attached:
Build This Project
Bring this design to life with the Elektor PCB Service, powered by Eurocircuits. Upload the project files and order professionally manufactured PCBs or assembled boards through a proven European production platform.
Supporting KiCad, Eagle, Gerber, and ODB++ formats, the service is suitable for everything from prototypes and validation builds to series production and volume manufacturing.
Made in Europe. Fast. Reliable. Professional.

Discussion (0 comments)