Hi
I have a jetbot that works great running the collision_avoidance Jupyter notebook examples from NVIDIA
and an ultrasonic sensor hc-sr04
when a certain distance from an object is detected, was hoping to have the camera take a picture and save it to the blocked_data_collection folder.
I could than re run the program periodically with the new blocked_data pictures and hopefully it learns on its own in new spaces.
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?
Thanks!
I found this article on calculating distance with the ultrasonic sensor as well
https://tutorials-raspberrypi.com/raspberry-pi-ultrasonic-sensor-hc-sr04/
ultrasonic sensor
https://www.sparkfun.com/products/15569