- This topic has 34 replies, 2 voices, and was last updated 2 years, 9 months ago by
rodyeo.
-
AuthorPosts
-
-
27 July 2022 at 12:12 #21991
Hi! I have been following this blog page link example for a few days now trying to get the generic Example of ESP32 CameraWebServer with Flash from ESP32 Framework 1.0.6 to be ported into current latest ESP32 Framework 2.0.4 to work but failed.
Blog page link example …
I came to understand the ESP32 Framework 2.0.4 has changed a lot compare to the old Framework 1.0.6 and it will not work even though there is no compilation errors.
Attached are two sets of files I dedicated for this ESP32 CameraWebServer Flash Light project for your analysis and troubleshooting on ESP32 Framework 2.0.4 Board Manager Library under Arduino IDE version 1.8.19 software on Windows 10.
Please take note to use this latest bugs fix repo… from https://github.com/espressif/arduino-esp32/pull/6993
https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServerThis is the old existing bugs not fix yet repo…
https://github.com/espressif/arduino-esp32/tree/2.0.4/libraries/ESP32/examples/Camera/CameraWebServerAttachments:
You must be logged in to view attached files. -
27 July 2022 at 12:16 #21993
-
27 July 2022 at 12:24 #21996
Hi Rodyeo,
I check the 2.0.4 version of CameraWebServer, and I put on working with these changes.
In the main CameraWebServer.ino I add these lines.const int pwmfreq = 50000; // 50K pwm frequency const int pwmresolution = 9; // duty cycle bit range ledcSetup(config.ledc_channel, pwmfreq, pwmresolution); // configure LED PWM channel ledcAttachPin(4, config.ledc_channel); // attach the GPIO pin to the channel
after the setting of camera_config_t config; structure
And in the file app_attpd.cpp after the include I add these lines:
// // LED Illuminator // #define CONFIG_LED_ILLUMINATOR_ENABLED #define CONFIG_LED_LEDC_PIN 4 #define CONFIG_LED_MAX_INTENSITY 255 //#define CONFIG_LED_LEDC_LOW_SPEED_MODE // CONFIG_LED_LEDC_HIGH_SPEED_MODE is not set #define CONFIG_LED_LEDC_TIMER LEDC_TIMER_0 #define CONFIG_LED_LEDC_CHANNEL LEDC_CHANNEL_0 // end of LED Illuminator
I have also attached the modified files.
Bye Renzo
Attachments:
You must be logged in to view attached files.-
27 July 2022 at 14:39 #22001
I still get compilation error using your two files attached. I believe you are still using the older copy of 2.0.4 with bugs issue 6996 as highlighted a few weeks ago…
I believe you must used this fixed code version … https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer
Submitted a bug report to Espressif System version 2.0.4 with sample code at … Examples \ ESP32 \ Camera \ WebCamServer compile error … https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer
Problem posted at GitHub …
https://github.com/espressif/arduino-esp32/issues/6996Solution response at GitHub …
https://github.com/espressif/arduino-esp32/pull/6993 -
27 July 2022 at 14:39 #22006
Please take note to use this latest bugs fix repo… from https://github.com/espressif/arduino-esp32/pull/6993
https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServerThis is the old existing bugs not fix yet repo…
https://github.com/espressif/arduino-esp32/tree/2.0.4/libraries/ESP32/examples/Camera/CameraWebServer
-
-
27 July 2022 at 12:53 #21999
I copied the two files you gave and override the sample file I attached earlier in my previous post and this are the compilation error I got…
This errors looks similar to my previous bug report to Espressif github … Error Compiling… Arduino IDE version 1.8.19 … Board Manager … ESP32 Espressif System version 2.0.4 INSTALLED #6996 https://github.com/espressif/arduino-esp32/issues/6996
Solution response at GitHub …
https://github.com/espressif/arduino-esp32/pull/6993C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp: In function ‘esp_err_t stream_handler(httpd_req_t*)’:
app_httpd.cpp:782:35: error: ‘ra_filter_run’ was not declared in this scope
uint32_t avg_frame_time = ra_filter_run(&ra_filter, frame_time);
^~~~~~~~~~~~~
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:782:35: note: suggested alternative: ‘ra_filter_t’
uint32_t avg_frame_time = ra_filter_run(&ra_filter, frame_time);
^~~~~~~~~~~~~
ra_filter_t
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp: In function ‘void startCameraServer()’:
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1225:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1225:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1225:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1231:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1231:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1231:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1237:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1237:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1237:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1243:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1243:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1243:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1249:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1249:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1249:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1255:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1255:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1255:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1261:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1261:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1261:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1267:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1267:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1267:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1273:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1273:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1273:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1279:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1279:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1279:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1285:25: warning: missing initializer for member ‘httpd_uri::is_websocket’ [-Wmissing-field-initializers]
.user_ctx = NULL};
^
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1285:25: warning: missing initializer for member ‘httpd_uri::handle_ws_control_frames’ [-Wmissing-field-initializers]
C:\Users\god\Downloads\esp32_new_camera_web_server\app_httpd.cpp:1285:25: warning: missing initializer for member ‘httpd_uri::supported_subprotocol’ [-Wmissing-field-initializers]
Multiple libraries were found for “WiFi.h”
Used: C:\Users\god\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Using library WiFi at version 2.0.0 in folder: C:\Users\god\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\WiFi
exit status 1
‘ra_filter_run’ was not declared in this scope-
This reply was modified 1 year, 9 months ago by
Renzo Mischianti.
-
This reply was modified 1 year, 9 months ago by
Renzo Mischianti.
-
This reply was modified 1 year, 9 months ago by
-
27 July 2022 at 13:14 #22002
Here are the error compilation I encountered with the two files you shared. Please advise? Thanks.
Submitted a bug report to Espressif System version 2.0.4 with sample code at … Examples \ ESP32 \ Camera \ WebCamServer compile error … https://github.com/…/ESP32/examples/Camera/CameraWebServer
Problem posted at GitHub …
https://github.com/espressif/arduino-esp32/issues/6996Solution response at GitHub …
https://github.com/espressif/arduino-esp32/pull/6993-
This reply was modified 1 year, 9 months ago by
Renzo Mischianti.
Attachments:
You must be logged in to view attached files. -
This reply was modified 1 year, 9 months ago by
-
27 July 2022 at 14:40 #22008
Hi! I used your inserted your code modification into my CameraWebServer204FlashFailed.zip version I send you earlier with no compilation errors cause I used the latest fix copy from the Espressif Developer … https://github.com/…/ESP32/examples/Camera/CameraWebServer
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 14:40 #22013
-
27 July 2022 at 14:46 #22021
Yes! Great! Thanks alot! Your new code is working now with the LED Illuminator slider function. It will be nice to also have the Flash toggle switch On / OFF to as a flash light features too if possible similar to Framework version 1.0.6 style?
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 15:01 #22024
Hi! Renzo your work have help the ESP32 Community closed pending request …
ESP32-CAM web ui LED Flash light switch option #7009
https://github.com/espressif/arduino-esp32/issues/7009A big thank you my friend Renzo 😉
Rodney
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 15:08 #22026
Hello! Renzo,
Your creations also address in another long awaited thread months back…
https://github.com/espressif/arduino-esp32/issues/6790
A big thank you buddy 🙂
You are indeed the GOD of ESP32 programming guru!
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 15:13 #22028
Bonjour Renzo 😉
Finally I hope to see your version 3 of the ESP32 CameraWebServer Flash Light LED Illuminator works publish soon at your blog site … 🙂
Rodney
-
27 July 2022 at 15:19 #22029
-
27 July 2022 at 15:21 #22032
Thanks to you for helping to find the solution.
Bye Renzo-
27 July 2022 at 15:24 #22034
I shall help you promote your great works to all my IoT group members globally 😉 Thank you again sir Renzo. I am so happy to have bump into your blog and your great dedication to Open SOurce Community projects. Bravo!
-
-
27 July 2022 at 15:39 #22035
Another thread which was pending solution too…
https://github.com/espressif/arduino-esp32/pull/6791
Thanks to you. Sir Renzo their headache is over 😉
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 16:37 #22037
-
27 July 2022 at 16:39 #22039
-
27 July 2022 at 16:40 #22041
-
27 July 2022 at 16:40 #22043
-
27 July 2022 at 16:41 #22045
-
27 July 2022 at 17:35 #22049
-
27 July 2022 at 17:37 #22051
-
27 July 2022 at 18:03 #22054
-
27 July 2022 at 19:13 #22059
I decide not to be over demand in request porting version 1.0.6 flash codes into this 2.0.4 LED illuminator source code in respect of the author Renzo creations, therefore this new LED illuminator intensity control slider features is much better than previous LED Flash toggle switch method at older source code implementation. Many thanks to Sir Renzo for all his hard work and effort. Bravo! … CeraWebServer204LEDilluminator.zip
Attachments:
You must be logged in to view attached files. -
27 July 2022 at 19:15 #22061
Signing off… this is Rodney * Ham Radio Operator @ 9W2YJ signing off for now 73 de …
Hi There! IoT @ https://my.cytron.io/referral?referral_id=b3f22146431542
-
28 July 2022 at 13:57 #22074
A little contribution to the author Renzo @ https://github.com/espressif/arduino-esp32/issues/7009
Attachments:
You must be logged in to view attached files. -
28 July 2022 at 14:02 #22076
-
28 July 2022 at 14:30 #22081
Good work Rodyeo!
Bye Renzo -
31 July 2022 at 19:20 #22113
*** Note the default is set to 50K PWM frequency for the LED Flash Light to sync with certain country AC electric supply at 50Hz. I experiences horizontal running lines on the web ui video output screen. My country AC is 60Hz therefore my PWM frequency is supposed to be 60K instead. Correct me if I am wrong?
-
31 July 2022 at 22:35 #22115
Hi,
I think the frequencies is only for the pin PWM and you can use 50K.
Bye Renzo -
1 August 2022 at 08:16 #22116
A shortcut link to the original blog post for visitors …
-
-
AuthorPosts
- You must be logged in to reply to this topic.