• 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

PAN TILT videostreaming – required libraries

Q&A Forum › Category: Home Automation › PAN TILT videostreaming – required libraries
0 Vote Up Vote Down
Peter Dieteren asked 2 years ago

Hello Rui and Sara,
I’m starting to build the example ‘PAN TILT videostreaming’. Where can I find these libraries:

  • #include “esp_timer.h”
  • #include “img_converters.h”
  • #include “fb_gfx.h”
  • #include “soc/soc.h”                     // disable brownout problems
  • #include “soc/rtc_cntl_reg.h”       // disable brownout problems

I can’t find them on your github. Also no reference in the ebook where to find them.
Thanks for your help.
By the way, your site and examples are awesome!
Regards, Peter.

6 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
Those libraries are included by default.
Make sure you have an ESP32-CAM board selected in Tools > Board.
Then, the code should compile just fine.
If not, tell me the error that you get.
Regards,
Sara

0 Vote Up Vote Down
Peter Dieteren answered 2 years ago

Hi,

Despite of the warnings (no errors) it works. Sorry, at first I only compiled it, now I have done an upload to the board and the camera works. The warnings seem to be no problem.

Regards, Peter

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

Hi again.
Great…
Can you share the warning message?
Regards,
Sara

0 Vote Up Vote Down
Peter Dieteren answered 2 years ago

Hi,
See the warnings below. Thanks for your help.

By the way, I commented out the dummy servo entries and used library 0.13 which works flawless (like some suggested in the chat):
//Servo servoN1;
//Servo servoN2;
Servo servo1;
Servo servo2;
//servoN1.attach(2, 1000, 2000);
//servoN2.attach(13, 1000, 2000);
servo1.attach(SERVO_1, 1000, 2000);
servo2.attach(SERVO_2, 1000, 2000);

These are the warnings:
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino: In function ‘void setup()’:
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:427:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_sda’ is deprecated: please use pin_sccb_sda instead [-Wdeprecated-declarations]
config.pin_sscb_sda = SIOD_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:117:87: note: declared here
int pin_sscb_sda __attribute__((deprecated(“please use pin_sccb_sda instead”))); /*!< GPIO pin for camera SDA line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */
^
E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:428:10: warning: ‘camera_config_t::<unnamed union>::pin_sscb_scl’ is deprecated: please use pin_sccb_scl instead [-Wdeprecated-declarations]
config.pin_sscb_scl = SIOC_GPIO_NUM;
^~~~~~~~~~~~
In file included from E:\Documents\Arduino\Pan_and_Tilt_Video_Streaming\Pan_and_Tilt_Video_Streaming.ino:9:
C:\Users\padie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.9/tools/sdk/esp32/include/esp32-camera/driver/include/esp_camera.h:121:87: note: declared here
int pin_sscb_scl __attribute__((deprecated(“please use pin_sccb_scl instead”))); /*!< GPIO pin for camera SCL line (legacy name) */

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

Ok.
Thanks for letting me know.
Basically, it’s just telling that now there are new names for the same declarations. However, the previous declarations still work, so the code will still work.
Regards,
Sara

0 Vote Up Vote Down
Peter Dieteren answered 2 years ago

Oké thanks. 
Regards,
Peter.

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.