Now that we are able to isolate and track objects using the Jetson Nano and OpenCV, now we can create a pan tilt platform for the camera, so the camera can actually track and follow the object of interest in the scene. We will do this be using two servos and then some mounting brackets. Below, I show the gear you will need to order to continue.
First we will need to be able to mount our camera on the pan/tilt bracket. If you have the Logitech WEB cam, then it can be affixed to the bracket in any number of different ways. I you are using the Raspberry Pi camera, you will need to either pick up the Logitech WEB cam, or you will need a longer cable for the Raspberry Pi Camera. For this project, I prefer the logitech WEB cam. But if price is a barrier, the simplest solution is to order the set of longer cables. You can get this gear from these links:
Now you will need a couple of good servos to drive the pan tilt brackets. I found this set works well, and the price is good, and you will end up with a couple of spares, which is always useful.
You will also need a pan/tilt bracket for the servos and cameras, and the one below is the set I am using in this project.
And Finally you will need an PCA9685 I2C Servo Control Board. You can pick up what you need here:
The link above is for a pair of the boards, and you only need one. I suggest getting the pair so you have a spare if needed, or it can be used for other projects. And that is all you will need!