First, Thank you for four hard and good work that you are doing for all projects. It is a lot interesting and useful.
Related to Pan Tilt project with ESP32-Cam , the video work with no problem , however the servo don’t move at all.
When I select button , left , right , down , nothing happen and then when I hit the UP button , then I lost the streaming image.
I tested my two servo with another sketch called slider , servo was moving with no problem.
I was using ESP32Servo library version 11, I changed for version 7.0 like your tutorial , no change , servo don’t move.
Hi.
When you run the code, do you get any errors on the Serial Monitor?
Can you provide more details?
Regards,
Sara
Hello Sara,
Thanks for the prompt reply and for your help.
I’m using
- ESP-32 Cam AI Thinker
- CPU Freq : 240 MHZ
- Flash Freq : 40 Mhz
- Flash mode : QIO
- Using ESP32-CAM-MB micro USB programmer for upload sketch
After loading, I am doing a reset and see what I got on the Serial monitor.
I don’t got error, but message are from a mix of symbols, not readable, execpt last two lines and going to the web page, everything is there , video stream , buttons , but servo not working.
Below : Text from the Serial monitor: Same with 2 differents ESP32-CAM
22:36:07.281 -> etsչ ⸮⸮⸮6⸮0’&⸮⸮7C!HH⸮⸮:⸮Š ⸮⸮ER⸮}⸮ESQ⸮I⸮⸮t⸮⸮⸮3 ⸮*⸮⸮F⸮*⸮e1SH%==T)C⸮⸮n⸮Z⸮⸮p⸮⸮b⸮S⸮R⸮⸮⸮5
22:36:07.281 -> c⸮⸮E⸮⸮⸮0x⸮,\E⸮v:⸮⸮0,dE⸮⸮:0⸮0i⸮A_⸮.⸮⸮x⸮bB⸮}⸮rv’⸮A0⸮}dr⸮’⸮⸮0C!⸮⸮iD⸮⸮⸮⸮⸮c⸮”⸮⸮:⸮C!⸮+⸮i0⸮&⸮⸮⸮⸮0⸮+⸮i1⸮&SH⸮⸮A0⸮W⸮⸮ ⸮&⸮⸮o⸮⸮j
22:36:07.281 -> l⸮X⸮⸮x⸮⸮⸮⸮0⸮,⸮⸮⸮13⸮j
22:36:07.328 -> h⸮taZ⸮2 ⸮⸮⸮j
22:36:07.328 -> l⸮X⸮⸮x⸮⸮⸮⸮4⸮,⸮⸮i3⸮⸮j
22:36:07.328 -> e⸮⸮A0⸮⸮⸮0Mj
22:36:09.428 -> ……..
22:36:12.921 -> WiFi connected
22:36:12.921 -> Camera Stream Ready! Go to: http://192.168.2.122
Then when I start selecting buttons , see below what I got on the Serial Monitor
22:55:32.124 -> 0
22:55:32.124 -> Down
22:55:33.703 -> 0
22:55:33.703 -> Down
22:55:47.928 -> 0
22:55:47.928 -> Down
22:55:50.709 -> 0
22:55:50.709 -> Down
22:55:51.959 -> 0
22:55:51.959 -> Right
22:55:52.827 -> 0
22:55:52.827 -> Right
22:55:54.474 -> 10
22:55:54.474 -> Left
22:55:55.155 -> 20
22:55:55.155 -> Left
22:55:56.038 -> 30
22:55:56.038 -> Left
22:56:04.663 -> 40
22:56:04.663 -> Left
22:56:05.177 -> 50
22:56:05.177 -> Left
22:56:10.097 -> 40
22:56:10.097 -> Right
22:56:10.675 -> 30
22:56:10.675 -> Right
22:56:11.374 -> 20
22:56:11.374 -> Right
22:56:13.844 -> 0
22:56:13.844 -> Down
22:56:14.412 -> 0
22:56:14.412 -> Down
22:56:16.050 -> 10
22:56:16.050 -> Up
22:56:18.803 -> 20
22:56:18.803 -> Up
22:56:20.146 -> Camera capture failed
Hello again Sara,
It’s working now! Wonderful. Now I will look why.
I imported the sketch in the Arduino Web Editor , load the board and it’s working, video streaming + servo pan and tilt.
10:29:26.739 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
10:29:26.739 -> configsip: 0, SPIWP:0xee
10:29:26.739 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
10:29:26.739 -> mode:DIO, clock div:1
10:29:26.739 -> load:0x3fff0018,len:4
10:29:26.739 -> load:0x3fff001c,len:1216
10:29:26.739 -> ho 0 tail 12 room 4
10:29:26.739 -> load:0x40078000,len:10944
10:29:26.739 -> load:0x40080400,len:6388
10:29:26.739 -> entry 0x400806b4
10:29:28.848 -> ……….
10:29:33.325 -> WiFi connected
10:29:33.325 -> Camera Stream Ready! Go to: http://192.168.2.124
10:29:56.488 -> E (30714) httpd_txrx: httpd_resp_send_err: error calling setsockopt : 22
See what I got this morning from the
Hi.
Is it working?
What’s the issue you’re getting at the moment? It seems your message is not complete.
Regards,
Sara
Hello,
Yes , it’s working now perfectly.
Sorry about that , that I posted and update with missing the last part.
Like I said, if I load the board with my Arduino IDE , I got unreadable message from serial monitor and Servo are not working.
Then I load the board with the Arduino WEB editor and everything is working find , video streaming and Servo control. From the serial monitor , I got message correctly.
I am suspecting that I have a wrong version of a library in my Arduino IDE on my computer.
Best regards,
Paul