Air Plane Simulation

Air Plane Simulation - 2023
Metehan Demirtola Esp Esp32 Esp8266 Plane

I had the great opportunity to intern at Ikartu Dinamik, a leading company in the industry. On my first day, I joined an online meeting where I met Ercan Bey, the company's founder. To start my internship, he assigned me an interesting project focused on ESP boards and Unity.

The project involved integrating an MPU6050 gyroscope and accelerometer sensor with the ESP board. My job was to read the sensor data using the ESP board and send it to Unity through UDP communication. In Unity, I needed to create a project that would receive the data and use it to simulate the rotation of an airplane.

Progress of my project

  • PCB Design: I designed a PCB circuit that included the ESP-12F module and MPU6050 sensors, along with a 3.3V voltage regulator (AMS1117) to ensure a stable power supply. This PCB served as the control board for the airplane simulation in Unity.
  • Prototype Assembly: After finishing the PCB design, I built a prototype on a breadboard because ordering PCBs from China would have taken a month. Once assembled, I tested the initial program and was pleased to see it worked perfectly.
  • Wi-Fi Connection and UDP Communication: I established a Wi-Fi connection with the ESP-12F and developed a program to read data from the MPU6050 sensor and send it to my computer via UDP. I set up a UDP test server on my computer, and the program successfully transmitted the gyroscope data.
  • Unity Integration: I created a Unity project with an airplane model and developed a script to act as a UDP server, receiving the gyroscope data and rotating the plane accordingly. After thorough testing, everything worked smoothly, and the project was successfully completed with the ESP-12F, MPU6050, and Unity fully integrated.