Hello Sara, great project. I recreated it and it works fine so far.
I have only one problem:
The left<>right servo can only be moved within a range of approx. 90 degrees. But I want 180 degrees.
How can I implement this?
Can you try to modify your servo to act like this? https://www.youtube.com/watch?v=ymW0Lwmw14Y
I solved this problem:
servo1.attach(SERVO_1, 600, 2000); // up – down
servo2.attach(SERVO_2, 400, 3000); // left – right
Thanks for sharing the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
I am trying to make this work,
But there are some problems.
I am getting a picture. but once pressing any of the keys to move the servo
I am getting an error message ‘camera capture failed ‘
also the servos does not move,
i know my connections are right, checked them in a separate program,
Please follow question here: https://rntlab.com/question/esp32-cam-pan-and-tilt-video-streaming-web-server-2/