Check out this tutorial from Scrap to Power on how to build your own pan tilt mount using a Raspberry Pi for your camera module:
This aims to show the reader how to build a simple Pan tilt mount using readily available stepper motors and other parts. This device automatically moves the camera to pre set angles and at pre set intervals.
What you will need:
- 2 x 28BY-J 5V stepper motors with ULN2003A driver board.
- 6 way ribbon cable, approx 45 cm long (Can be split from a bigger cable)
- Dupont cable female to female, usually these are supplied in 40Way strips.
- 10 x M3 x 16 mm bolts
- 2 x 1K resistors.
- 20 x M3 nuts
- 8 x M2.5 x 16 mm bolts
- 26 x M2.5 Nuts
- 2mm heat-shrink tubing, approx 40 cm long
- Plywood approx 30 x 40 cm should be plenty.
- 75 cm camera ribbon cable for the Pi Camera
- Micro roller switch switches 3A size approx (13 x 6 x 6)
- Glue for gluing the wood parts together, I used hot melt glue.
- Large > 15A terminal blocks for connecting to the stepper motors
- Pi – Cobbler (Recommended, but not essential)
- Solder, soldering iron, wire strippers cutters etc.
- Approx 10cm of thin steel wire, approx 0.5 – 1mm. You could probably use a paper clip.
- Raspberry Pi + PSU + camera module + Mini WI-FI dongle + Memory card with latest Raspbian