Comments on: Telegram: ESP32-CAM Take and Send Photo (Arduino IDE) https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 12 Jun 2024 19:02:14 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Sebastian https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-924785 Wed, 12 Jun 2024 19:02:14 +0000 https://randomnerdtutorials.com/?p=98951#comment-924785 I just copy pasted the code but always got error messages:

Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND) (probably the connection of the cam module. After a lot of times reconnecting the cam the error was gone)
and Camera init failed with error 0xffffffff

luckily I found a guy on youtube.
Change the esp32 board version to an older than 3.0. (for me the 2.0.10 works fine) and
go to Tools>PSRAM and enable.

Saves a lot of time!

Switching off the flash after taking a picture would be nice, but I couln’t figure out how to get a working logic.

Cheers!

]]>
By: Paulo AndrĂ© https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-879524 Sun, 24 Dec 2023 00:40:05 +0000 https://randomnerdtutorials.com/?p=98951#comment-879524 This code freeze after about 2 days working, its needed reset to return to work ….

]]>
By: Jim https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-874754 Tue, 28 Nov 2023 18:39:03 +0000 https://randomnerdtutorials.com/?p=98951#comment-874754 Its a good tutorial and I got it to work, and now I can modify it.
However I strugged a bit with finding the chat ID.
I added a println to the esp32 code to print out the chat ID as I couldnt work out how to find it within telegram.

]]>
By: Thalis Mazzarino https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-869245 Tue, 31 Oct 2023 20:59:03 +0000 https://randomnerdtutorials.com/?p=98951#comment-869245 Hello, Sara and Ruy.
I set up the espcam telegram project, it worked perfectly… I used the old Arduino platform. But due to the network prob it stopped working, today I’m trying to reprogram but I’m not getting the error code below. Now I have the Arduino IDE 2.2.1
C:\Users\Thalis Mazzarino\Documents\Arduino\esp32-cam-shield-telegram\esp32-cam-shield-telegram.ino:16:
c:\users\thalis mazzarino\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4. 0\system_error:39:10: fatal error: bits/error_constants.h: No such file or directory
#include <bits/error_constants.h>
compilation terminated.
exit status 1
Compilation error: exit status 1

]]>
By: Sara Santos https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-864760 Mon, 09 Oct 2023 08:13:38 +0000 https://randomnerdtutorials.com/?p=98951#comment-864760 In reply to John.

Hi.
You can take a look at this tutorial and check the section that detects motion and sends a message:
https://randomnerdtutorials.com/esp32-cam-shield-pcb-telegram/
Regards,
Sara

]]>
By: John https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-864705 Mon, 09 Oct 2023 01:18:09 +0000 https://randomnerdtutorials.com/?p=98951#comment-864705 Hi, how do I add a SIR sensor so that when the sensor detects the object it will take a picture and send it to me?

]]>
By: Sara Santos https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-861407 Tue, 19 Sep 2023 10:00:14 +0000 https://randomnerdtutorials.com/?p=98951#comment-861407 In reply to Andrew.

Hi again.
I implemented the suggestions and the project is working much better.
Thank you.
The tutorial is now updated.
Regards,
Sara

]]>
By: NMM https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-861287 Mon, 18 Sep 2023 12:16:43 +0000 https://randomnerdtutorials.com/?p=98951#comment-861287 Bonjour
s’ils vous plait j’aimerais savoir comment adapter ce code pour qu’il envoie une image automatique toutes les 5 secondes par exemple
cordialement

]]>
By: Sara Santos https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-860730 Fri, 15 Sep 2023 12:21:32 +0000 https://randomnerdtutorials.com/?p=98951#comment-860730 In reply to Andrew.

Thanks for those insights.
I’ll try to fix the code.
Regards,
Sara

]]>
By: Andrew https://randomnerdtutorials.com/telegram-esp32-cam-photo-arduino/#comment-860526 Thu, 14 Sep 2023 17:17:42 +0000 https://randomnerdtutorials.com/?p=98951#comment-860526 In reply to Derek.

The example contains some bugs:
1) Function sendPhotoTelegram() haslocal variables which overflow when high resolution was selected:
uint16_t imageLen = fb->len;
uint16_t extraLen = head.length() + tail.length();
uint16_t totalLen = imageLen + extraLen;
Replace their types to size_t:
uint16_t imageLen = fb->len;
uint16_t extraLen = head.length() + tail.length();
uint16_t totalLen = imageLen + extraLen;
2) When the above types are corrected, delete or comment ou last three lines of configInitCamera() function, because those lines actua;lly lowers the captured picture to 400×296 :
// Drop down frame size for higher initial frame rate
sensor_t * s = esp_camera_sensor_get();
s->set_framesize(s, FRAMESIZE_CIF);
Then images appear in high resolution, but lower then captured 1600×1200, because telegram repacks them. To get rid of telegram repacking change api call from “sendPhoto” to “sendDocument” and the posted form name from “photo” to “document”.
3) Do not specify config.fb_count = 2, 1 is enough or some weird image lags may occur. Additionally some cameras produce poor image color and quality on first read due to white balance is not auto-calibrated yet. I suggest drop first framebuffer like this:
fb = esp_camera_fb_get();
esp_camera_fb_return(fb);
fb = NULL;
Insert these lines before line
fb = esp_camera_fb_get();
in the example source code.

]]>