billw2 / pikrellcam

Raspberry Pi motion vector detection program with OSD web interface.
GNU General Public License v3.0
262 stars 70 forks source link

Request: Pi 4 Servo Support #61

Open kbmetz opened 4 years ago

kbmetz commented 4 years ago

I built the Arducam PTZ platform as sold here (https://www.amazon.com/gp/product/B0874CFBX8/). My friend discovered that it is possible to run the servo's without the board that comes with the setup. I've attached the servos directly to GPIO 12 and GPIO 13. Upon starting pikrellcam the servo goes down and to the left. I tried adjusting the servo_pan_min and max and it doesn't help. I'm only able to turn the server about 10 degree's back and forth on the left side only. Same issue with the tilt.

My friend has the exact same servo's, attached them to a Pi 3 and is having no issues and everything is working perfectly.

Last but not least, I used the python code on this page (https://makersportal.com/blog/2020/3/21/raspberry-pi-servo-panning-camera) and the servo pan's perfectly as well as tilt's perfectly and centers itself.

Is there any way to get the servo's working with pikrellcam and a Pi 4?My only guess is there is something different/new with the Pi 4 that is causing the issue. I can test and run anything needed.