I have an ultrasonic sensor, a raspberry pi, and a rpi camera on a robot car.
was hoping to have the camera take a picture and save it to a folder when a certain distance is calculated.
My question is how can I trigger the camera to take a picture and save it to a folder, after the ultrasonic sensor detects an obstacle?
I found this article on calculating distance with the ultrasonic sensor as well
https://tutorials-raspberrypi.com/raspb ... r-hc-sr04/