ESP32-CAM as doorbell with camera Topic is solved

Moderator: leecollings

EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: ESP32-CAM as doorbell with camera

Post by EddyG »

For those who don't have a FTDI interface or want to use it.
This is the easyway: https://www.aliexpress.com/item/1005001 ... oD8lO&mp=1
Unfortunately only with standard cam, but look at the price. It's for easy programming ;)
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: ESP32-CAM as doorbell with camera

Post by MikeF »

I've recently come across this ESP32 camera: M5Stack Timer Camera X: https://docs.m5stack.com/#/en/unit/time ... r-camera-x.

It measures 48*24*15mm, and uses an OV3660 camera module, which has a higher resolution than the OV2640, is fully enclosed in a small plastic case, and has USB C and Grove sockets. The former is used for programming - like the Wemos D1 Mini (no need for FTDI or reset button / jumper) - and for powering (5V). The latter is a 4-pin connector as used in the Seeed Studio devices, and exposes 5V, GND, GPIO4 and GPIO13. These enable a button with single LED to be connected.

I've successfully used this in @hoeby's v1 sketch (sorry, I haven't tried the v2 code), by changing the board #define lines and the GPIO pin definitions:

Code: Select all

const int buttonPin1 = 4;
const int ledPin1 =  13;

Code: Select all

//#define CAMERA_MODEL_AI_THINKER
#define CAMERA_MODEL_M5STACK_PSRAM
Last edited by MikeF on Monday 18 January 2021 9:29, edited 1 time in total.
funky
Posts: 75
Joined: Saturday 06 May 2017 22:38
Target OS: Raspberry Pi / ODroid
Domoticz version: newest
Location: Zeist, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by funky »

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!
funky
Posts: 75
Joined: Saturday 06 May 2017 22:38
Target OS: Raspberry Pi / ODroid
Domoticz version: newest
Location: Zeist, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by funky »

Got the doorbell working

Temporary housing for prototyping
Image
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: ESP32-CAM as doorbell with camera

Post by EddyG »

Nice. :) It looks to me that you have a bigger (19mm?) switch, is that so?
@hoeby Did you ever made a 19 mm or 22 mm switch version of you 3-D housing, or tested if its fits in the current housing.
I received my 16 mm switch but I find it a little bit too small. It looks to me that the 19mm would fit in the current housing.
At Ali I see 2 types of switches, complete flat and with elevated push button.
I currently have the flat one. Did any one ordered the elevated one? Any experiance?
hoeby
Posts: 531
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 »

The 19 and 22mm don't fit in the 3d printed housing. The nut is the problem, no space to rotate it.
Or you must have the nut fixed and rotate the button to get it in, never tried.

Have ideas how to modify the housing, that bigger buttons will fit. Need to make the drawing and test.
But first need the finish the manuals on github. But time is going fast because of some house building projects.

I have the raised head 16mm button. Works great.
When pushed, the raised head is flush with the button housing. This prevents that an adult has problems pushing the 16mm button

Image
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
User avatar
jvdz
Posts: 2328
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 »

Why aren't you using the described process via VS CODE?
...but I am pretty sure that that address is used for the boot partition so shouldn't be used for the ap0 bin.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2328
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 »

That isn't all the output you get right? What is the whole console info when you build the project?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
hoeby
Posts: 531
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 »

@miki8989,

This looks like a problem on your own pc.
It is not the code which causes this problem.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
funky
Posts: 75
Joined: Saturday 06 May 2017 22:38
Target OS: Raspberry Pi / ODroid
Domoticz version: newest
Location: Zeist, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by funky »

EddyG wrote: Sunday 24 January 2021 16:23 Nice. :) It looks to me that you have a bigger (19mm?) switch, is that so?
@hoeby Did you ever made a 19 mm or 22 mm switch version of you 3-D housing, or tested if its fits in the current housing.
I received my 16 mm switch but I find it a little bit too small. It looks to me that the 19mm would fit in the current housing.
At Ali I see 2 types of switches, complete flat and with elevated push button.
I currently have the flat one. Did any one ordered the elevated one? Any experiance?
Its indeed the 19mm switch momentary It fits inside the plastic housing 82x58x33 But I had to bend the pins on the back a bit to make it fit good but that's no problem. So the minimal height must be 33 mm

for people who wants to know how to connect the switch to the esp cam 32 board:
Attachments
19mm_switch.png
19mm_switch.png (252.85 KiB) Viewed 2464 times
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: ESP32-CAM as doorbell with camera

Post by EddyG »

The housing of @hoeby is 70x36x20. Like you wrote yours is a temporary housing. Did you try that 19 mm switch in the hoeby housing?
funky
Posts: 75
Joined: Saturday 06 May 2017 22:38
Target OS: Raspberry Pi / ODroid
Domoticz version: newest
Location: Zeist, Netherlands
Contact:

Re: ESP32-CAM as doorbell with camera

Post by funky »

EddyG wrote: Friday 29 January 2021 16:25 The housing of @hoeby is 70x36x20. Like you wrote yours is a temporary housing. Did you try that 19 mm switch in the hoeby housing?
No I didn’t try it in hoebys housing but if it’s 20mm height it’s to small for the 19mm see picture height
hoeby
Posts: 531
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 »

In the housing i made, only the 16mm fits.
Others don't fit without modification. There is no place for the nut.

I ordered a 19mm and 22mm low profile button.
When i receive those, i will try to make them fit in the housing.

I only could find bigger buttons with 0,5mm button push travel.
Buttons with a bigger button push travel are longer than 20mm. I would like to keep the 20mm heighted as maximum.
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
wvries
Posts: 31
Joined: Sunday 05 March 2017 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Lo Santiago, Murcia, Spain
Contact:

Re: ESP32-CAM as doorbell with camera

Post by wvries »

Hi guys,

First of all, great project. Looking forward to see more enhancements (like the motion detection and secretly the face recognition.....).

I flashed the ESP32 and all is working.
I did however found a small item in the json port settings.

When opening the settings page, you always will get the port 8080 displayed, even-though you changed that to another port.
In the info page, the correct port is displayed.
Screenshot  Settings page.png
Screenshot Settings page.png (10.61 KiB) Viewed 2424 times
Screenshot Info page.png
Screenshot Info page.png (22.58 KiB) Viewed 2424 times
Does not interfere with operations, works with the correct port.

Probably my OCD that kicked in :-)
User avatar
jvdz
Posts: 2328
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 »

Will have a look but you can report the BUGs on GitHub in issues so we can track them. ;)

https://github.com/Hoeby/ESP32-Doorbell/issues/20
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
hoeby
Posts: 531
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 »

Today i started on a new housing.
Main-reasons, wanted to modify it for a bigger push button.
The original 16mm button works, but only when you us a raised head button. Otherwise it is to small.

The new housing is based on a 22mm low profile button
I have chosen the low profile for 2 reasons:
- Couldn't find a 22mm button with a maximum length of 20mm
- Keeps the housing length shorter.

some links about the button, which i use:
https://www.rjselectronics.com/products ... p-25m-f-r/
https://www.aliexpress.com/item/1005001 ... web201603_

Housing is not finished. But could somebody think with me, how to mount the housing?
I can make 2 screw sockets, like to other housings. But it also possible to make a small frame and then 2 small screws (from top and bottom).
But are there better ways to mount it?

Red lines = ESP32cam
Blue lines = Nut
Blue Circle = The push button
Cyan line = Nut, but 90 degrees rotate against the blue line
Image
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
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 »

hoeby wrote: Monday 15 February 2021 0:18 Today i started on a new housing.
Main-reasons, wanted to modify it for a bigger push button.
The original 16mm button works, but only when you us a raised head button. Otherwise it is to small.

The new housing is based on a 22mm low profile button
I have chosen the low profile for 2 reasons:
- Couldn't find a 22mm button with a maximum length of 20mm
- Keeps the housing length shorter.

some links about the button, which i use:
https://www.rjselectronics.com/products ... p-25m-f-r/
https://www.aliexpress.com/item/1005001 ... web201603_

Housing is not finished. But could somebody think with me, how to mount the housing?
I can make 2 screw sockets, like to other housings. But it also possible to make a small frame and then 2 small screws (from top and bottom).
But are there better ways to mount it?

Red lines = ESP32cam
Blue lines = Nut
Blue Circle = The push button
Cyan line = Nut, but 90 degrees rotate against the blue line
Image
I would like an option such as battery cover holder for children's toys, 1 screw in the bottom
hoeby
Posts: 531
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 »

Ivo1986 wrote: Monday 15 February 2021 15:13 I would like an option such as battery cover holder for children's toys, 1 screw in the bottom
I know what you mean.
For now i made the drawing with 1 screw at the top and 1 at the bottom.
Reason for this, a 3-axel mill can't drill on an angle. But for 3d printer it shouldn't be a problem.
Will make a modification. So that there is a 1 screw and a 2 screw version.

First protoype came of the printer.
The backplate has an opening. I use this to see how things fit inside.
There will be a backplate, which is completly closed.

Front side. The length is almost the same as the old version. But it looks smaller.
Maybe the rounded top and bottom will make it look smaller
Image

Button size, outside 25mm
The hole in the housing is 22mm.
Only made for low-profile buttons
Image

Inside
120 degree camera and button
Image

Here you see, why only low-profile buttons.
The esp will be mounted over the button
Image

Bottom in place
Image
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
julienda
Posts: 1
Joined: Tuesday 16 February 2021 0:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ESP32-CAM as doorbell with camera

Post by julienda »

hoeby wrote: Monday 15 February 2021 16:54
Ivo1986 wrote: Monday 15 February 2021 15:13 I would like an option such as battery cover holder for children's toys, 1 screw in the bottom
I know what you mean.
For now i made the drawing with 1 screw at the top and 1 at the bottom.
Reason for this, a 3-axel mill can't drill on an angle. But for 3d printer it shouldn't be a problem.
Will make a modification. So that there is a 1 screw and a 2 screw version.

First protoype came of the printer.
The backplate has an opening. I use this to see how things fit inside.
There will be a backplate, which is completly closed.

Front side. The length is almost the same as the old version. But it looks smaller.
Maybe the rounded top and bottom will make it look smaller
Image

Button size, outside 25mm
The hole in the housing is 22mm.
Only made for low-profile buttons
Image

Inside
120 degree camera and button
Image

Here you see, why only low-profile buttons.
The esp will be mounted over the button
Image

Bottom in place
Image
Nice job
I like the last design

I'm thinking about some improvements for the size. The camera can be integrated into the button? And so create a small doorbell with 3 layers : button - camera module - esp

Is it possible to add a little speak for presaved response?
hoeby
Posts: 531
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 »

Could you explain how you would make the camera in the button?
There also would be a problem. People push on the button, than the camera only can see the finger of that person.

The speaker will not be added.
The esp32 has no amplifier onboard. Only adding a speaker will not work. You need more hardware, to get a speaker to work
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 1 guest