Raspberry PI HQ Camera + Zero PTZ Camera

Raspberry PI HQ Camera + Zero PTZ Camera

thingiverse

This is an extended version of my Raspberry Pi HQ Webcam https://www.thingiverse.com/thing:4854656 What you need in addition the the 3D printed parts: 2 stepper motors 28BYJ-48 1 motorized zoom lens (see pictures) 2 bearing 688 1 bearing 6001 1 bearing 608 2 mini ULN2003 modules for the 28BYJ-28 motors 2 mini dual H-bridge motor drivers for the lens motors (focus and zoom) small timing belt for up/down movement All motor drivers are connected to GPIOs of the raspberry pi zero (16 in sum) The OS image for the raspberry is based on the showmewebcam project: https://github.com/showmewebcam/showmewebcam I added WIFI support and python an started an python webserver to integrate the movement signals in OBS Studio hotkeys. I added the python script for the raspberry pi and for OBS to give an idea, how this can work. my_drehcam.py: OBS python script webserver.py: python script for the raspberry make_PTZ.sh: create buildroot image from scratch wpa_supplicant.conf: WLAN config, put yout SSID and PW here uvc-drehcam.service, wpa_supplicant.conf, start-drehcam.sh, piwebcam.mk, interfaces: used by make_PTZ.sh - has to be in the same folder make_PTZ.sh downloads the buildroot and the showmewebcam build, makes some magic changes and build the necessary image from scratch. After make_PTZ.sh is finished, a sdcard.img is created. put this image on an SD card (dd, balenaEtcher). mount the boot partition of the sdcard and copy the webserver.py to the root folder. If all worked and your PI booted, goto PI_IP_address:8000 and you will see a web page where you can access all functions. (some german word, I know, you can edit the werberver.py and change the texts) The wiring of the stepper motors can derived from the webserver.py file: IN1, IN2, IN3, IN4 = 4, 17, 27, 22 ID1, ID2, ID3, ID4 = 5, 6, 13, 19 IF1, IF2, IF3, IF4 = 26, 16,20,21 IZ1, IZ2, IZ3, IZ4 = 12, 25, 24, 23 Numbers are the GPIO numbers of the pi zero W IN1-4: pan motor ID1-4: tilt motor IF1-4: focus motor IZ1-4: zoom motor Have fun!

Download Model from thingiverse

With this file you will be able to print Raspberry PI HQ Camera + Zero PTZ Camera with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Raspberry PI HQ Camera + Zero PTZ Camera.