Just as we first thought, we want this project to be an interactive experience for users. By measuring the distance between the user and the sensor, they can access the related information.
While working with sensors, we experimented with two different types:
Initially, we aimed to use an ultrasonic sensor to detect the user's distance. However, during our experiments, we noticed that the ultrasonic sensor lacked stability and couldn't provide accurate distance readings. Unfortunately, it didn't align with our project's interactive goals as it couldn't deliver the desired interaction experience.
During the testing phase, we utilized LEDs to simulate the response process to various animations at different distances. This approach helped us efficiently assess whether the sensor could meet the stability requirements we initially anticipated.
Viola suggested using an IR sensor, which proved to be a more stable alternative compared to the ultrasonic sensor. The IR sensor reliably identifies whether the user's distance falls within the program's specified range, ensuring accurate interaction within that distance.
Given that coding involves three distinct components—Arduino, Java sketch, and serial communication—we have broken down the process into separate links, each addressing a specific part.