• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32-CAM Pan and Tilt Video Streaming Web Server

Q&A Forum › ESP32-CAM Pan and Tilt Video Streaming Web Server
0 Vote Up Vote Down
Michael Lustig asked 3 years ago

Hello
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 help

10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Since you tested each component individually, and they are working, I think it must be a power issue.
You may need to power the motors using a separate power source.
Regards,
Sara

0 Vote Up Vote Down
Michael Lustig answered 3 years ago

Hello,
Seems to be 2 different issues,
Pressing the Up and sometimes the Down
Gives the error message  ‘camera capture failed ‘
and from that moment on, there is no video.
Gave the servo a separate power source,
connected the grounds of course,
They still refuse to move.
very strange…..

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

I’m sorry but I don’t know what might be wrong.
We tested the project multiple times and it worked fine. Additionally, other readers have also tried the project successfully.
What motors do you have?
Regards,
Sara

0 Vote Up Vote Down
Michael Lustig answered 3 years ago

Yes, I understand,
Actually it  did work for me once,
and I can’t understand what has changed….,
Thank you for trying.
Regards
Mohir

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Meanwhile, if you find something, let us know.
Regards,
Sara

0 Vote Up Vote Down
Michael Lustig answered 3 years ago

Still struggling here,
But I will update if I have success 🙂

0 Vote Up Vote Down
Michael Lustig answered 3 years ago

Hello again,
So, I know when servos stop reacting,
it is after running esp_camera_init(&config)
in the setup().
Before this command servo works, after it doesn’t.
Maybe you could help from here
Regards
Mohir

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

What ESP32-CAM are you using?
The ESP32 uses some PWM to configure the camera.
We wrote the code so that it doesn’t interfere with the PWM on the motors.
Did you change anything on the code? Does your ESP32-CAM have a different pinout?
Regards,
Sara

0 Vote Up Vote Down
Michael Lustig answered 3 years ago

Hello Sara,
That’s it, Problem solved 🙂
I opened my old laptop and uploaded the program from there,
and it works like a charm 🙂
I suspect the problem had to do with the version of ESP32_SERVO,
here I used the older version 0.7
On the first computer, I updated the library to 0.11,
But even after returning it to 0,7 the problem continued,
so maybe somewhere something stuck…..
Thank you very much for your support.
Regards
Mohir

1 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Weird. Maybe you have two different (but very similar) libraries installed?
That’s very difficult to find out what might be causing that issue.
At least, now we know that the project is working.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.