Air Plane Simulation
Air Plane Simulation - 2023
I had the incredible opportunity to intern at Ikartu Dinamik, a prominent company in the industry. On my very first day, I participated in an online meeting where I had the pleasure of meeting Ercan Bey, the esteemed founder of the company. To kickstart my internship experience, he assigned me a captivating project dedicated to deepening my understanding of ESP boards and Unity.
The project I was assigned involved integrating an MPU6050 gyroscope and accelerometer sensor with the ESP board. My task was to read the sensor data using the ESP board and transmit it to Unity through UDP communication. In Unity, I had to develop a project that would receive the data via UDP and utilize it to simulate the rotation of an airplane. Essentially, it was an airplane simulation project, where the sensor data would be used to control the movement of the virtual aircraft.
Progress of my project
- As a part of the project, I designed a PCB circuit that incorporated the ESP-12F module and MPU6050 sensors. Additionally, the circuit included a 3.3V voltage regulator called AMS1117. The purpose of the voltage regulator was to ensure a stable power supply to the components, enabling reliable operation of the ESP-12F and MPU6050 sensors. The aim of the PCB was to serve as the control board, simulating the behavior of an airplane for the Unity project.
- After completing the PCB design, I proceeded to build a prototype for the ESP-12F board on a breadboard. Since ordering PCBs from China would have taken a month to arrive, I opted for the breadboard implementation. Once the prototype was assembled, I tested the initial program, and I was delighted to find that everything worked flawlessly.
- After ensuring that everything was functioning correctly, my next step was to establish a Wi-Fi connection using the ESP-12F. Once I successfully established the connection, I proceeded to develop a program that would read data from the MPU6050 sensor and transmit it to my computer via UDP communication. To test the program, I set up a UDP test server on my computer and initiated the communication and the program flawlessly transmitted the gyroscope data without any issues.
- Finally, I proceeded to create a Unity project that featured an airplane model. To integrate the sensor data into the simulation, I developed a script that acted as a UDP server, receiving the gyroscope data and dynamically rotating the plane accordingly. After thorough testing, I was thrilled to observe that everything worked seamlessly. With the successful integration of the ESP-12F, MPU6050, and Unity, the project was successfully completed.