Arduino

PRODUCED BY

YEAR

Zechen Huang

2024

TOOLS

Arduino | Unreal Engine 5


Real-Time Interaction Between Arduino and Unreal Engine 5 Using Ultrasonic Sensors

This project explores the integration of physical sensors with digital environments to create an interactive and dynamic experience. Using an ultrasonic distance sensor (HC-SR04) connected to an Arduino device, the system measures the real-time distance between the user's mouse and the sensor. This distance data is then transmitted to Unreal Engine 5 via serial communication.

In UE5, the incoming data drives the rotation speed of a level obstacle using Blueprints. As the measured distance changes, the obstacle's rotation dynamically adjusts—shorter distances result in higher rotation speeds, creating a responsive and engaging interaction.

The project bridges the gap between physical inputs and virtual outputs, demonstrating how real-world actions can influence virtual environments in real time. This approach is ideal for applications in game development, interactive exhibitions, and VR/AR prototypes, showcasing the potential of blending hardware sensors with advanced digital platforms like Unreal Engine 5.