ESP32-CAM as doorbell with camera Topic is solved

Moderator: leecollings

Loekie63
Posts: 9
Joined: Thursday 28 January 2021 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Loekie63 »

Hi. I tested and all is working as expected. It seems to be something in the Domoticz camera page that shows the same picture over and over again.
Really love this project. Great to see hoe it evolved and matured. It inspired me and all I need now is a housing for my project with the esp-32 Cam, but I am not using the 160 degree cam. Is it possible for you to publish/share the 3d drawing so I can adapt it to my needs? Thanks jn advance and keep up the good work.
Loekie63
hoeby
Posts: 530
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by hoeby »

@Loekie, what kind of lens are you using?

The v2 housing is for a 120 degree lens.
At this moment, somebody is testing the 160 degree lens housing when this test goes OK, i share it.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Loekie63
Posts: 9
Joined: Thursday 28 January 2021 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Loekie63 »

Hi I am using the standard lens and don't use the hutton in the housing, therefore i wondered if you would possibly be willing to share the V1 3d drawing with alu front design so I can change things where needed. Further I am testing with movement detection but for now it's to slow for live use.
Thanks Loekie63
hoeby
Posts: 530
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by hoeby »

I will look if i can put the V1 drawing on github.
Extension .stl will work?

Where are you doing movement detection?
Did you modify the code, or using third party software for this?
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Loekie63
Posts: 9
Joined: Thursday 28 January 2021 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Loekie63 »

hi,
I took below project as a start for motion detection:
https://eloquentarduino.github.io/2020/ ... #more-1110
Loekie63
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by jvdz »

Loekie63 wrote: Thursday 11 March 2021 14:41 hi,
I took below project as a start for motion detection:
https://eloquentarduino.github.io/2020/ ... #more-1110
Loekie63
That is a known one and I have played with that a bit, got some detecting working, but it wasn't stable when constantly capturing images and processing them when a doorbel was pushed or an Image/Stream was requested via the WebFrontend, So I left it at the time as we wanted to finish the basic functionality.
.... but have a go and let us know how you make out. ;)

Jos
Last edited by jvdz on Saturday 13 March 2021 19:07, edited 1 time in total.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Ivo1986
Posts: 16
Joined: Tuesday 07 January 2020 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Urmond - Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Ivo1986 »

I can't get the Bin created, not through windows and not through a Pi. exit 01 :(
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by jvdz »

We need way more details than that to be able to assist. For starters would have to see the full buildlog generated by vscode. I assume you did follow the wiki steps for building the bin?
We can also take this offline by sending it to my email. ;)
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: ESP32-CAM as doorbell with camera

Post by EddyG »

Loekie63 wrote: Thursday 11 March 2021 14:41 hi,
I took below project as a start for motion detection:
https://eloquentarduino.github.io/2020/ ... #more-1110
Loekie63
Or you could this pir (AM312) for short distances: https://nl.aliexpress.com/item/10050022 ... web201603_
hoeby
Posts: 530
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by hoeby »

There is a V2 housing for a 160 degree lens.
Tested by Eddy. It is a tight fit.

Eddy tested it and has given me some advice.
But i didn't notice the things on my printer, which Eddy noticed.
Try it and please reply your experiance.

https://www.thingiverse.com/thing:4786884
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Frobeltech
Posts: 1
Joined: Sunday 04 April 2021 14:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Frobeltech »

funky wrote: Saturday 16 January 2021 14:07 Thnx a lot have installed the code via the good instructions in the github of hoeby. Did this is on a Mac via visual studio fine! Tommorow trying to connect it with domoticz and the push button. Keep up the good work!
Hi, I tried to install the code to the M5stack, unfortunately it stops it waits for a package.... I checked the unit and I can upload the software from M5stack but not this code from GitHub. I followed the instructions from hoeby..... anyone any ideas?
hoeby
Posts: 530
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by hoeby »

FrobelTech was helped.

The baudrate for the M5stack is different.
This needed to be changed, after that uploading the files works.

To enable the M5stack, the src/setup.htm file needs to be changed.
FrobelTech changed this and uploaded the file. For the start it all works, now it needs testing to see if all works like it is intended.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by akamming »

Hi,

i am a newbie at ESP. But this looks like an interesting project, so I order as ESP32cam, installed VS Studio Code with the proper plugins for ESP (including platformIO)

I was happy to see compiling and uploading the code to the ESP32Cam was easy. When starting up the ESP doorbell, i got an Access point "ESP Doorbell" as expected, configured my WIFI according to the docs and using network explorer i indeed can now see a device with the name "ESP Doorbell".

When i click on it, an browser opens, but gives an error:

Code: Select all

ESP Doorbell
File missing in SPIFFS:/www/index.htm.

Please upload the correct version of spiffs.bin or this file.

with some buttons on how to upload a file.

Since i am new to ESP, i have no clue to fix, can someone give me a hint on where to start?
Ivo1986
Posts: 16
Joined: Tuesday 07 January 2020 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Urmond - Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Ivo1986 »

I have a new problem...

I have 2 esp32 cams with the software, dit noting change about the camera settings (exept the framesize)
the view is nice and clear.

now after a few weeks of turn off I powered one up and the camera fives a black screen, it is on, when I turn on the flash led on my phone the light is visible but rest is really dark...
The 2nd esp32-cam (turn on the first time after flasing) has the same problem. :shock:

whats possible the problem? i changed the camera with an other one and is the same black screen...
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by jvdz »

akamming wrote: Saturday 10 April 2021 17:18 When i click on it, an browser opens, but gives an error:

Code: Select all

ESP Doorbell
File missing in SPIFFS:/www/index.htm.

Please upload the correct version of spiffs.bin or this file.

with some buttons on how to upload a file.

Since i am new to ESP, i have no clue to fix, can someone give me a hint on where to start?
Guess you missed the part where the Wiki explains to upload:
6). After a SUCCESS upload, click on "Upload Filesystem Image"
This can also be done OTA by selecting the SPIFFS.BIN file which you can find in the ".pio\build\ESP_4096" subdirectory of your project, where you also can find the FIRMWARE.BIN to upload new version OTA.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by jvdz »

Ivo1986 wrote: Saturday 10 April 2021 17:47 whats possible the problem? i changed the camera with an other one and is the same black screen...
Did you check the Cam settings for on the WebPage of the ESPCAM for any "strange" values?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Ivo1986
Posts: 16
Joined: Tuesday 07 January 2020 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Urmond - Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by Ivo1986 »

jvdz wrote: Saturday 10 April 2021 18:18
Ivo1986 wrote: Saturday 10 April 2021 17:47 whats possible the problem? i changed the camera with an other one and is the same black screen...
Did you check the Cam settings for on the WebPage of the ESPCAM for any "strange" values?
yes, i see nothing strange?
Image
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by akamming »

jvdz wrote: Saturday 10 April 2021 18:16 Guess you missed the part where the Wiki explains to upload:
6). After a SUCCESS upload, click on "Upload Filesystem Image"
This can also be done OTA by selecting the SPIFFS.BIN file which you can find in the ".pio\build\ESP_4096" subdirectory of your project, where you also can find the FIRMWARE.BIN to upload new version OTA.
Ah...tx! That's probably it. Will try again tomorrow!
akamming
Posts: 343
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by akamming »

Ivo1986 wrote: Saturday 10 April 2021 17:47 I have a new problem...

I have 2 esp32 cams with the software, dit noting change about the camera settings (exept the framesize)
the view is nice and clear.

now after a few weeks of turn off I powered one up and the camera fives a black screen, it is on, when I turn on the flash led on my phone the light is visible but rest is really dark...
The 2nd esp32-cam (turn on the first time after flasing) has the same problem. :shock:

whats possible the problem? i changed the camera with an other one and is the same black screen...
I seem to have the exact same issue. I just got the espdoorcam working with the instructions of @jvdz only to find out i had a black picture. I could adjust the settings a bit and indeed where the light is very bright i see it vaguely visible:
espcamtoodark.jpg
espcamtoodark.jpg (56.22 KiB) Viewed 3332 times
these are my current settings (some changed from default, with everything at 0, all is even darker ):
espcamsettings.jpg
espcamsettings.jpg (106.65 KiB) Viewed 3332 times
hoeby
Posts: 530
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by hoeby »

Tested it on my ESP32
When i set it up like your settings, then i also have a black image.

These settings work for me.
The quality setting is from the development code, it is not in de master code.
Depends which version you use, it could be that you can't see this line.
esp-settings.JPG
esp-settings.JPG (53.54 KiB) Viewed 3313 times
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests