Implement Ultrasonic Sensor Support for Sumo Bot
KayTwenty opened this issue · comments
Summary:
The current code for the sumo bot lacks support for an ultrasonic sensor, which limits its ability to detect and track obstacles. This issue aims to add ultrasonic sensor support to the existing codebase.
Proposed Changes:
- Connect the ultrasonic sensor to appropriate pins on the Arduino board.
- Implement functions to trigger the sensor, measure the echo response, and calculate the distance.
- Modify the code to detect obstacles based on the measured distance.
- Implement obstacle tracking functionality to follow the target using the sensor data.
- Add debugging functionality to print the distance measured by the sensor.
Additional Considerations:
- The code should account for the specific pins used for the ultrasonic sensor and adjust accordingly.
- The desired distance from the obstacle should be configurable.