You’re over half way through your training programme – congratulations robotics engineers! This means it’s time to discover how to program the ultrasonic sensor to stop your RV from crashing into things! The ultrasonic sensor is attached to the front of your RV and it measures the distance of objects in front of it
The ultrasonic sensor works like the eyes of the RV! It’s so useful as it will stop the RV before it hits objects! Let’s find out how…
On the next slide there is an image of an example program that will allow your RV to STOP when it senses an object using the ultrasonic senor. Write this program on the SPIKE Prime App and run it. Did your RV respond as you expected?
What would you change in your program to make the RV STOP 12cm from a wall?
Can you program your RV’s ultrasonic sensor to get as close to a wall as possible? No crashing!