Using the TTGO T-Camera module with PIR sensor to display a warning and photograph anyone who opens the fridge
This project uses a PIR movement sensor to wake the on-board ESP32 from deep sleep. Once started the module prints a message to the OLED. If movement continues to be detected a photo is taken and sent to a server on the internet. The server then sends this photograph to an email address.
The TTGO T-Camera is an ESP32 Module with an OV2640 camera and an 0.96 OLED on-board. They have them on AliExpress here. Select the PIR version with the wide-angle lens.
To make it easy to install I’ve zipped up the Sketch and all the needed libraries into one download here. Unzip this folder and copy it to your Arduino folder on your computer. Alternatively copy and paste the script below and install the libaries manually. The SSID, password and server address need to be updated.
#include "src/OV2640.h" #include <WiFi.h> #include "esp_http_client.h" #include "src/U8x8lib.h" const char *ssid = "NSA"; // Put your SSID here const char *password = "orange"; // Put your PASSWORD here const char *post_url = "http://domain.dom//posted.php"; // Location where images are POSTED U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ 22, /* data=*/ 21); #define PIR_PIN 33 OV2640 cam; void setup() { Serial.begin(115200); u8x8.begin(); u8x8.setFont(u8x8_font_amstrad_cpc_extended_r); pinMode(PIR_PIN, INPUT); //pir esp_sleep_enable_ext0_wakeup((gpio_num_t )PIR_PIN, HIGH); cam.init(esp32cam_ttgo_t_config); if (init_wifi()) { // Connected to WiFi Serial.println("Internet connected"); } else { u8x8.setCursor(4, 2); u8x8.print("Lucky!"); u8x8.setCursor(2, 4); u8x8.print("No Internet!"); } } bool init_wifi() { int connAttempts = 0; Serial.println("\r\nConnecting to: " + String(ssid)); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED ) { delay(500); Serial.print("."); if (connAttempts > 10) return false; connAttempts++; } return true; } esp_err_t _http_event_handler(esp_http_client_event_t *evt) { switch (evt->event_id) { case HTTP_EVENT_ERROR: Serial.println("HTTP_EVENT_ERROR"); break; case HTTP_EVENT_ON_CONNECTED: Serial.println("HTTP_EVENT_ON_CONNECTED"); break; case HTTP_EVENT_HEADER_SENT: Serial.println("HTTP_EVENT_HEADER_SENT"); break; case HTTP_EVENT_ON_HEADER: Serial.println(); Serial.printf("HTTP_EVENT_ON_HEADER, key=%s, value=%s", evt->header_key, evt->header_value); break; case HTTP_EVENT_ON_DATA: Serial.println(); Serial.printf("HTTP_EVENT_ON_DATA, len=%d", evt->data_len); if (!esp_http_client_is_chunked_response(evt->client)) { // Write out data // printf("%.*s", evt->data_len, (char*)evt->data); } break; case HTTP_EVENT_ON_FINISH: Serial.println(""); Serial.println("HTTP_EVENT_ON_FINISH"); break; case HTTP_EVENT_DISCONNECTED: Serial.println("HTTP_EVENT_DISCONNECTED"); break; } return ESP_OK; } void warning_screen() { u8x8.fillDisplay(); u8x8.clear(); u8x8.fillDisplay(); u8x8.clear(); u8x8.fillDisplay(); u8x8.clear(); u8x8.fillDisplay(); u8x8.clear(); u8x8.setCursor(6, 0); u8x8.print("STEP"); delay(600); u8x8.setCursor(6, 2); u8x8.print("AWAY"); delay(800); u8x8.setCursor(4, 4); u8x8.print("FROM"); delay(500); u8x8.setCursor(9, 4); u8x8.print("THE"); delay(500); u8x8.setCursor(5, 6); u8x8.print("FRIDGE"); delay(1000); u8x8.clear(); u8x8.setCursor(4, 1); u8x8.print("PHOTO IN"); u8x8.setCursor(5, 7); u8x8.print("SECONDS"); delay(500); u8x8.setFont(u8x8_font_courB18_2x3_n); for (int s = 5; s > 0; s--) { u8x8.setCursor(7, 3); u8x8.print(s); delay(1000); } } static esp_err_t take_send_photo() { Serial.println("Taking picture..."); esp_err_t res = ESP_OK; cam.run(); esp_http_client_handle_t http_client; esp_http_client_config_t config_client = {0}; config_client.url = post_url; config_client.event_handler = _http_event_handler; config_client.method = HTTP_METHOD_POST; http_client = esp_http_client_init(&config_client); esp_http_client_set_post_field(http_client, (char *)cam.getfb(), cam.getSize()); esp_http_client_set_header(http_client, "Content-Type", "image/jpg"); esp_err_t err = esp_http_client_perform(http_client); if (err == ESP_OK) { Serial.print("esp_http_client_get_status_code: "); Serial.println(esp_http_client_get_status_code(http_client)); } esp_http_client_cleanup(http_client); back_to_sleep(); } void back_to_sleep() { Serial.println("Device Sleeping..."); delay(1000); u8x8.setPowerSave(true); WiFi.mode(WIFI_OFF); btStop(); esp_deep_sleep_start(); } void loop() { Serial.println("Device Woken"); warning_screen(); long timer_millis = millis(); while (millis() - timer_millis < 3000) { //Test for movement for 3 seconds after warning screen if (digitalRead(PIR_PIN)) { // If still movement - Take photo take_send_photo(); } } back_to_sleep(); }
Assuming you are using PHP on your server, the code to accept the image and email it looks like this:
This is great little project to check on your friends and family’s fridge habits but the fridge probably isn’t the best place to leave electronics and a power-bank for a long time without some protection.
References
Digital Ocean Droplet: https://m.do.co/c/801f9f581abd Cheapest way to get a PHP server. Supposedly this link gives a $100 in credit over 60 days
PHP Email code: https://stackoverflow.com/questions/30295587/sending-email-with-inline-image
Buy Me A Coffee
If you found something useful above please say thanks by buying me a coffee here...
Hello,
I tried your example with my board. Download your zip-file, open the .ino file in my Arduino IDE and start to compile.
I receive an error message:
###
/Users/cc13/Documents/Arduino/FridgeGuard/FridgeGuard.ino: In function ‘void setup()’:
FridgeGuard:32:5: error: ‘internet_connected’ was not declared in this scope
internet_connected = true;
^
Mehrere Bibliotheken wurden für “WiFi.h” gefunden
Benutzt: /Users/cc13/Library/Arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi
Nicht benutzt: /Applications/Arduino.app/Contents/Java/libraries/WiFi
exit status 1
‘internet_connected’ was not declared in this scope
/Users/cc13/Library/Arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi/examples/WiFiClient/WiFiClient.ino
###
That means Arduino found more then one Wifi library and the used one will not work with “internet_connected”.
When I open the “WiFiClient”-Example from the folder “/Users/cc13/Library/Arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/WiFi/examples/WiFiClient” I could compile without errors.
Could you help me please to solve that?
Thanks,
Carsten
Ah sorry.. That line shouldn’t have been in the code. I don’t know how it got there but I’ve removed it now and the code is working.
Thanks for letting me know.
Hi,
great, now I could compile and transfer the sketch to my board. Next test is if the .php-file is working and sending the mail with the photo.
Thanks,
Carsten
How did you power the device? I’m looking to use it as doorbell, but new to this sort of thing. I have the code like I want it, but want to somehow power the device from the wires going to the current doorbell. Is that possible?
Do you know how the current doorbell is powered? It’s often from a transformer from the normal house power. You need 5v DC to power the ESP32. Might be a job for a qualified electrician if you’re not sure.
Can i make Email to receive the information about who is Come ?
You want the name of the person to be sent in the email? It’s much more complicated. See the first two tutorials here: https://robotzero.one/category/face-recognition/ for some code you could use.
Could you please guide me as to which board you selected in the arduino IDE to program this board? Thank you.
I think it was this: https://robotzero.one/wp-content/uploads/2019/01/ide-camera-settings.jpg
Hello, I don’t understand why when the countdown is over everything goes off without any message
Hi. Do you have this running on the T-Camera? If you move again when the warning has finished it should then send a picture.
I’ve updated the code to make it easier to follow. If there is movement during the three seconds after the countdown it will take a picture. If not it will sleep. It also sleeps after taking a picture.
I chose esp32 wrover but compilation error
what should I do
What error do you see? I don’t remember which board I chose.
can you check and send the code again? Please
I need a lot of codes
bonjour,
Bien que j’ai configuré la carte comme montré dans un message précedent ,quand je compile moi aussi j’arrive à la fin à:
Erreur de compilation pour la carte ESP32 Wrover Module
Merci pour votre aide
Hi.. Is there not more information to tell you what the problem is?
Changements à venir concernant l’historique
L’historique de traduction ne sera bientôt disponible que lorsque vous serez connecté. Vous pourrez le gérer dans Mon activité. Votre historique existant sera effacé lors de cette mise à jour. Nous vous invitons à enregistrer les traductions que vous voulez conserver.
OK
bonjour,
merci de me répondre.
Pour ouvrir un croquis qui fonctionne sur arduino j’ai recopié tous les dossiers SRC dans le même niveau de document que l’ino. (sinon j’ai : src/OV2640.h: No such file or directory.
Maintenant quand je lance la compilation au bout d’un temps certain elle se bloque .
j’ai copié les dernières lignes de la complilation:
Plusieurs bibliothèque trouvées pour “WiFi.h”
Utilisé : C:\Users\chambre\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Non utilisé : C:\Program Files (x86)\Arduino\libraries\WiFi
U8x8lib.cpp:(.text._Z18u8x8_SetPin_KS0108P11u8x8_structhhhhhhhhhhhhhh+0x0): multiple definition of `u8x8_SetPin_KS0108(u8x8_struct*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)’
C:\Users\chambre\AppData\Local\Temp\arduino_build_555784\sketch\U8x8lib.cpp.o:U8x8lib.cpp:(.text._Z18u8x8_SetPin_KS0108P11u8x8_structhhhhhhhhhhhhhh+0x0): first defined here
C:\Users\chambre\AppData\Local\Temp\arduino_build_555784\sketch\src\U8x8lib.cpp.o: In function `u8x8_SetPin_SED1520(u8x8_struct*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)’:
U8x8lib.cpp:(.text._Z19u8x8_SetPin_SED1520P11u8x8_structhhhhhhhhhhhh+0x0): multiple definition of `u8x8_SetPin_SED1520(u8x8_struct*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)’
C:\Users\chambre\AppData\Local\Temp\arduino_build_555784\sketch\U8x8lib.cpp.o:U8x8lib.cpp:(.text._Z19u8x8_SetPin_SED1520P11u8x8_structhhhhhhhhhhhh+0x0): first defined here
C:\Users\chambre\AppData\Local\Temp\arduino_build_555784\sketch\src\U8x8lib.cpp.o: In function `u8x8_byte_arduino_hw_i2c’:
U8x8lib.cpp:(.text.u8x8_byte_arduino_hw_i2c+0x0): multiple definition of `u8x8_byte_arduino_hw_i2c’
C:\Users\chambre\AppData\Local\Temp\arduino_build_555784\sketch\U8x8lib.cpp.o:U8x8lib.cpp:(.text.u8x8_byte_arduino_hw_i2c+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Utilisation de la bibliothèque WiFi version 1.0 dans le dossier: C:\Users\chambre\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Utilisation de la bibliothèque SPI version 1.0 dans le dossier: C:\Users\chambre\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SPI
Utilisation de la bibliothèque Wire version 1.0.1 dans le dossier: C:\Users\chambre\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\Wire
exit status 1
Erreur de compilation pour la carte ESP32 Wrover Module
2845/5000
Hello,
Thank you for answering me.
To open a sketch that works on arduino I copied all the SRC files in the same document level as the ino. (otherwise I have: src / OV2640.h: No such file or directory.
Now when I start the compilation after a certain time it freezes.
I copied the last lines of the compilation:
Several libraries found for “WiFi.h”
Used: C: \ Users \ room \ AppData \ Local \ Arduino15 \ packages \ esp32 \ hardware \ esp32 \ 1.0.4 \ libraries \ WiFi
Not used: C: \ Program Files (x86) \ Arduino \ libraries \ WiFi
U8x8lib.cpp :(. Text._Z18u8x8_SetPin_KS0108P11u8x8_structhhhhhhhhhhhhhh + 0x0): multiple definition of `u8x8_SetPin_KS0108 (u8x8_struct *, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char. char, unsigned char, unsigned char, unsigned char, unsigned char) ‘
C: \ Users \ room \ AppData \ Local \ Temp \ arduino_build_555784 \ sketch \ U8x8lib.cpp.o: U8x8lib.cpp :(. Text._Z18u8x8_SetPin_KS0108P11u8x8_structhhhhhhhhhhhhhhh + 0x0): first here
C: \ Users \ chambre \ AppData \ Local \ Temp \ arduino_build_555784 \ sketch \ src \ U8x8lib.cpp.o: In function `u8x8_SetPin_SED1520 (u8x8_struct *, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char , unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char) ‘:
U8x8lib.cpp :(. Text._Z19u8x8_SetPin_SED1520P11u8x8_structhhhhhhhhhhhh + 0x0): multiple definition of `u8x8_SetPin_SED1520 (u8x8_struct *, unsigned char, unsigned char, unsigned char, charigned, charigned, chartered, char, unsigned char, unsigned char) ‘
C: \ Users \ room \ AppData \ Local \ Temp \ arduino_build_555784 \ sketch \ U8x8lib.cpp.o: U8x8lib.cpp :(. Text._Z19u8x8_SetPin_SED1520P11u8x8_structhhhhhhhhhhhh + 0x0): first defined here
C: \ Users \ room \ AppData \ Local \ Temp \ arduino_build_555784 \ sketch \ src \ U8x8lib.cpp.o: In function `u8x8_byte_arduino_hw_i2c ‘:
U8x8lib.cpp :(. Text.u8x8_byte_arduino_hw_i2c + 0x0): multiple definition of `u8x8_byte_arduino_hw_i2c ‘
C: \ Users \ room \ AppData \ Local \ Temp \ arduino_build_555784 \ sketch \ U8x8lib.cpp.o: U8x8lib.cpp :(. Text.u8x8_byte_arduino_hw_i2c + 0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Use of the WiFi version 1.0 library in the folder: C: \ Users \ room \ AppData \ Local \ Arduino15 \ packages \ esp32 \ hardware \ esp32 \ 1.0.4 \ libraries \ WiFi
Use of the SPI version 1.0 library in the folder: C: \ Users \ room \ AppData \ Local \ Arduino15 \ packages \ esp32 \ hardware \ esp32 \ 1.0.4 \ libraries \ SPI
Use of the Wire version 1.0.1 library in the folder: C: \ Users \ room \ AppData \ Local \ Arduino15 \ packages \ esp32 \ hardware \ esp32 \ 1.0.4 \ libraries \ Wire
exit status 1
Compilation error for the ESP32 Wrover Module card
Can you try commenting out the U8x8 library include.
968/5000
good evening,
as you told me i commented on all the lines with u8x8.
compilation works.
but when I load the program at the end he says to me:
esptool.py v2.6
COM21 serial port
Connecting …….._____….._____….._____….._____….._____….._____…..____ An error occurred of the sketch transfer
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Invalid library found in C: \ Users \ room \ Documents \ Arduino \ libraries \ FridgeGuard: no header file (.h) found in C: \ Users \ room \ Documents \ Arduino \ libraries \ FridgeGuard
Invalid library found in C: \ Users \ room \ Documents \ Arduino \ libraries \ FridgeGuard: no header file (.h) found in C: \ Users \ room \ Documents \ Arduino \ libraries \ FridgeGuard
I tested with the esp32 wrover card module all partitions
and also with esp 32 dev module
as well as TTGO T1
always the error message.
hopeless
Do you have the FridgeGuard sketch in the /libraries folder? Shouldn’t be there. Do other example sketches upload OK?
Hello
I installed arduino ide on another pc then I didn’t have that sketch and everything worked the first time.
Thanks for your help.
Hello, I have tried the code with an interrupt triggering PIN33 to send a picture and it does not work with the ov640.h camera config. The interrupt does not detect the motion and reboot the board instead. I am also surprise that Lilygo does not have an example for this board. Having a PIR which cannot send a picture on motion detection is useless if there is no reliable example. Best regards. Guy
Hi,
Are you saying that attaching an interrupt to pin33 crashes the board when the board starts up? How about just looping until pin33 goes high as in my sketch above? The only code I found from Lilygo is here: https://github.com/Xinyuan-LilyGO/LilyGo-Camera-Series/blob/master/sketch/sketch.ino I can’t find where I originally found the code I used.
Hello,
Thanks for your prompt answer, I have tried again your code and finally it works fine. The issue with LilyGo is that they are not really good in documenting their firmware usage. It seems a common drawback with Chinese products then you need to dig in multiple solutions.
I just need now to send captured pictures to Telegram or GDrive. Best regards, Guy.
Hello,
While trying to compile your code I cannot find a board to select in the Arduino IDE that will work. Any suggestions? Anything labeled esp32 or TTGO does not compile. Please suggest a board to use.
Thank you,
Cris Lepage
Hi,
Try the ESP32 Dev Module. I use this for most projects because you can change the other settings if needed.
If it doesn’t work, paste the compile error.
Thanks,
Andrew
Hello,
I have this errors and not send the photo
[E][camera.c:1113] camera_probe(): Detected camera not supported.
[E][camera.c:1379] esp_camera_init(): Camera probe failed with error 0x20004
Hi, Is this the TTGO Tutorial you are trying? It’s for the T-Camera only although you could modify it to work with a ESP32-CAM and motion sensor.
Having the same problem as above, tried editing the pins in OV2640.cpp but it made no difference. Although I find it strange cause I have the same board as you are using. My log is as follows:
ets Jun 8 2016 00:22:57
rst:0x5 (DEEPSLEEP_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6360
entry 0x400806b4
[D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled
[E][camera.c:1113] camera_probe(): Detected camera not supported.
[E][camera.c:1379] esp_camera_init(): Camera probe failed with error 0x20004
[D][OV2640.cpp:158] init(): Camera probe failed with error 0x20004
Connecting to: Wi-Fi
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 0 – WIFI_READY
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 2 – STA_START
….[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 4 – STA_CONNECTED
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 7 – STA_GOT_IP
[D][WiFiGeneric.cpp:419] _eventCallback(): STA IP: 10.255.255.142, MASK: 255.255.255.0, GW: 10.255.255.254
.Internet connected
Device Woken
Device Sleeping…
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 3 – STA_STOP
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 3 – STA_STOP
Looks like there are different versions with different pins now: https://es.aliexpress.com/item/32968683765.html Mine has the BME280 on it and is dated 2019/01/07. In OV2640.cpp I have the pins set as
camera_config_t esp32cam_ttgo_t_config {
.pin_pwdn = 26,
.pin_reset = -1,
.pin_xclk = 32,
.pin_sscb_sda = 13,
.pin_sscb_scl = 12,
.pin_d7 = 39,
.pin_d6 = 36,
.pin_d5 = 23,
.pin_d4 = 18,
.pin_d3 = 15,
.pin_d2 = 4,
.pin_d1 = 14,
.pin_d0 = 5,
.pin_vsync = 27,
.pin_href = 25,
.pin_pclk = 19,
.xclk_freq_hz = 20000000,
.ledc_timer = LEDC_TIMER_0,
.ledc_channel = LEDC_CHANNEL_0,
.pixel_format = PIXFORMAT_JPEG,
.frame_size = FRAMESIZE_SVGA,
.jpeg_quality = 12, //0-63 lower numbers are higher quality
.fb_count = 2 // if more than one i2s runs in continous mode. Use only with jpeg
};
So maybe try pins from one of the other boards in the page linked above?
Hi,
the same bug as with Carsten 5.7.19
Mehrere Bibliotheken wurden für “WiFi.h” gefunden
Benutzt: C:\Users\Uwe Dolata\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Nicht benutzt: C:\Users\Uwe Dolata\Downloads\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi
Bibliothek WiFi in Version 1.0 im Ordner: C:\Users\Uwe Dolata\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi wird verwendet
Bibliothek SPI in Version 1.0 im Ordner: C:\Users\Uwe Dolata\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SPI wird verwendet
exit status 1
‘internet_connected’ was not declared in this scope
Could you help me please to solve that?
Thanks,
Hi, that was an error in a previous version of the script. Did you paste it from the page above?
unzipped the Download and installed it.
Was that wrong ?
Oh.. I don’t believe it.. I never updated the download with the new code. It should work now if you want to try again.
Hi WordBot,
I have another question:
What does this excerpt from the serial monitor mean, because the note “Image taken” is not missing.
I would like to send the picture to telegram, can you help?
thanks
15:11:35.513 -> Connecting to: FRITZ!Box 7590 DZ
15:11:36.014 -> .Internet connected
15:11:36.014 -> Device Woken
15:11:49.072 -> Device Sleeping…
15:12:59.527 -> ets Jun 8 2016 00:22:57
15:12:59.527 ->
15:12:59.527 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:12:59.527 -> configsip: 0, SPIWP:0xee
15:12:59.527 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:12:59.527 -> mode:DIO, clock div:1
15:12:59.527 -> load:0x3fff0018,len:4
15:12:59.527 -> load:0x3fff001c,len:1216
15:12:59.527 -> ho 0 tail 12 room 4
15:12:59.527 -> load:0x40078000,len:9720
15:12:59.527 -> ho 0 tail 12 room 4
15:12:59.527 -> load:0x40080400,len:6352
15:12:59.527 -> entry 0x400806b8
15:13:00.530 ->
15:13:00.530 -> Connecting to: FRITZ!Box 7590 DZ
15:13:01.078 -> .Internet connected
15:13:01.078 -> Device Woken
15:13:14.115 -> Device Sleeping…
sometimes too
15:21:49.998 -> Connecting to: FRITZ!Box 7590 DZ
15:21:50.500 -> .Internet connected
15:21:50.500 -> Device Woken
15:22:00.568 -> Taking picture…
15:22:00.722 -> E (12273) HTTP_CLIENT: Connection failed, sock HTTP_EVENT_DISCONNECTED
15:22:00.722 -> Device Sleeping…
Hi WordBot,
I still have 2 questions:
Sketch compiled without errors.
See the extract from the serial monitor.
15:29:44.808 -> Connecting to: FRITZ!Box 7590 DZ
15:29:45.362 -> .Internet connected
15:29:45.362 -> Device Woken
15:29:58.399 -> Device Sleeping…
15:29:59.448 -> ets Jun 8 2016 00:22:57
15:29:59.448 ->
15:29:59.448 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:29:59.448 -> configsip: 0, SPIWP:0xee
15:29:59.448 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:29:59.448 -> mode:DIO, clock div:1
15:29:59.448 -> load:0x3fff0018,len:4
15:29:59.448 -> load:0x3fff001c,len:1216
15:29:59.448 -> ho 0 tail 12 room 4
15:29:59.448 -> load:0x40078000,len:9720
15:29:59.448 -> ho 0 tail 12 room 4
15:29:59.448 -> load:0x40080400,len:6352
15:29:59.448 -> entry 0x400806b8
15:30:00.450 ->
15:30:00.450 -> Connecting to: FRITZ!Box 7590 DZ
15:30:00.951 -> .Internet connected
15:30:00.951 -> Device Woken
15:30:14.027 -> Device Sleeping…
sometimes too
15:30:31.473 -> Connecting to: FRITZ!Box 7590 DZ
15:30:32.021 -> .Internet connected
15:30:32.021 -> Device Woken
15:30:42.069 -> Taking picture…
15:30:42.169 -> E (12266) HTTP_CLIENT: Connection failed, sock HTTP_EVENT_DISCONNECTED
15:30:42.169 -> Device Sleeping…
15:30:43.219 -> ets Jun 8 2016 00:22:57
15:30:43.219 ->
15:30:43.219 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:30:43.219 -> configsip: 0, SPIWP:0xee
15:30:43.219 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:30:43.219 -> mode:DIO, clock div:1
15:30:43.219 -> load:0x3fff0018,len:4
15:30:43.219 -> load:0x3fff001c,len:1216
15:30:43.219 -> ho 0 tail 12 room 4
15:30:43.219 -> load:0x40078000,len:9720
15:30:43.219 -> ho 0 tail 12 room 4
15:30:43.219 -> load:0x40080400,len:6352
15:30:43.219 -> entry 0x400806b8
15:30:44.222 ->
15:30:44.222 -> Connecting to: FRITZ!Box 7590 DZ
15:30:44.778 -> …Internet connected
15:30:45.780 -> Device Woken
15:30:58.817 -> Device Sleeping…
One more request, I would like to send the recognized images to my smartphone by telegram, you can help.
Thank you in advance