Day 4 - Project EVE
Today I continued working on Project EVE by developing the scanning system. I programmed the servo to scan from 30° to 150° in 10° increments while the ultrasonic sensor measures the distance at each angle, and I added a system that remembers the closest distance and the angle where it was detected. I also improved the OLED interface so it displays the current angle, distance, closest distance, and object status, along with a Scan complete screen that shows the final result. During testing, I found a timing issue where the servo angle would update before the distance measurement, which caused the scanning to be delayed. I added a timeout to the distance measurement, which fixed the delay and made the angle and distance updates stay synchronized. Now the ultrasonic sensor, OLED, and code are working together as one scanning system. in 10° increments while the ultrasonic sensor measures the distance at each angle, and I added a system that remembers the closest distance and the angle where it was detected. I also improved the OLED interface so it displays the current angle, distance, closest distance, and object status, along with a Scan complete screen that shows the final result. During testing, I found a timing issue where the servo angle would update before the distance measurement, which caused the scanning to be delayed. I added a timeout to the distance measurement, which fixed the delay and made the angle and distance updates stay synchronized. Now the ultrasonic sensor, OLED, and code are working together as one scanning system.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.