The bumps of building collision prevention

Background

In the adventurous world of rover construction, preventing collisions is crucial. Our rovers need to skillfully navigate their surroundings, deftly avoiding patio chairs, cars, and walls. The solution lies in object detection, specifically measuring the distance between the rover and any obstacles. Enter the Ultrasonic sensor, a staple in consumer electronics, which provides a simple yet effective means of collision prevention.


Solution

Our approach involves a Raspberry Pi that sends out a sound wave at regular intervals—say, every two seconds. This wave travels until it hits an object, like a patio chair, and then bounces back. The Raspberry Pi measures the time taken for the echo to return after the initial trigger. Using the fundamental physics equation, Distance = Rate * Time, we calculate the distance between the rover and the object. With the speed of sound at 343 meters per second, even slight time variations can indicate proximity to an obstacle, prompting the rover to pause and avoid a crash.


Bumps

Yet, as with any technological implementation, there are hurdles to overcome. One significant challenge is the voltage discrepancy between the ultrasonic sensor and the Raspberry Pi. The Echo pin of the sensor outputs 5V, but the Raspberry Pi can only handle 3.3V. To resolve this, we employ a voltage divider using two resistors. A breadboard facilitates this setup, allowing us to adjust circuits without soldering and safely integrate the resistors to reduce the voltage. While these technical bumps can be daunting, they are essential steps in crafting a collision-free rover. Embracing these challenges not only enhances our engineering prowess but also ensures our rovers can navigate their environments smoothly and safely.

Previous
Previous

Empowering Women Entrepreneurs: The Amber Grant by WomensNet

Next
Next

ChatGPT Crash Course