Community
OpenEnergyMonitor

Community

Connecting my doorbell to the internet

Hi,

I have a classical doorbell (with transformer) that I would like to connect to the “internet”.

The idea is when someone rings at my door that this sends an MQTT message to my MQTT broker (or alternatively communicates this to my home assistant)

The requirements are:

  1. existing doorbell system should be kept.
  2. low cost
  3. can be installed with a minimum of changes.
  4. safe
  5. reliable

As solution I was thinking of detecting the current using a current sensor.
This current sensor is then connected to an ESP8266 NodeMCU (or other cheap device) that will detect increase in current when doorbell rings and publishes an MQTT message to my MQTT broker.

Here below a picture of my transformer showing the wires that can be used to measure current.

Regarding the current sensor, I have found following sensors:

  1. ACS712 5A AC and DC Current Sensor Module - there are also 20A, 30A versions
  2. TA12-100 Arduino AC Current Sensor
  3. HW-670 5A range single phase AC active output current transformer module current sensor module

Any advice would be very welcome.

I would prefer to install it at low voltage side. I guess as the currents are small, I need to chose one with low A (I guess 5A is sufficient).

Regarding the wiring of the sensor to the nodeMCU. If anything more is needed besides connecting the sensor with 2 wires to the nodeMcu then I would love to hear this.

kr
Jan.

What you’re looking at needs a permanent power supply. Can you not use the voltage across the bell, as switched by the bell push? Use that to power your ESP (with a suitable rectifier and regulator of course, because the voltage across the bell is likely to be “interesting” and certainly not a nice sine wave - much the same as the current would be) and on power-up your ESP would automatically send the message?

It is an interesting alternative solution. Thanks for sharing.

  1. Would the bell push last long enough to boot the ESP or nodeMCU and get it publish the MQTT message ?

  2. It also means that I need to power the ESP from low voltage AC. It is not clear how easy this can be done.

  3. In my case the bell is located high near the ceiling - so it is not that easy location (and well in sight) to do any wiring. The transformer is located in a cabinet also very near a power source.

or you could redirect the door button to the esp and on the esp have it send the mqtt and trigger a relay to ring the doorbell when the button is pressed … say using wemos r2 mini and a relay then you have lots of accessible gpio say if you want to put in reed switch to also know when the door is opened as well

That is another alternative solution - thanks for sharing.

The problem with that is that a big part of the low voltage cabling is unaccessible (behind the wall) - this includes the part going from my doorbell to the transformer. So this option is not that easy in my case.

I told you the second part - with a rectifier and regulated power supply. If you have a suitably large smoothing capacitor after the rectifier, it will store enough charge to run everything for long enough. I don’t have an ESP so I don’t know how long it might take to start up, it should not be long.

You only need access to the wires to the bell, somewhere between the transformer and the bell itself. The doorbell circuit has three components and three wires connecting them. Usually, you have one of these configurations: (1) a twin wire from transformer to bell push, a twin wire from transformer to bell, and one wire from each joined together at the transformer; or (2) a twin wire from transformer to bell, a twin wire from bell to bell push, and the join made at the bell. If it’s (2) that you have and you do not have space in or behind the bell, then it looks as if you do need to measure the current.

1 Like

Just checked it - it is configured like (1).
So indeed I can make the change in the cabinet

That definitely opens up your options.

There are several things to be aware of if you do decide to use the bell transformer to power your EPS.
The transformer regulation - the ratio of voltage full load to no-load, is likely to be quite large.
If you have a “trembler bell” - one where the current energises an electro-magnet that attracts an armature to strike the bell, but also breaks the circuit - then you must be aware that there will be a high voltage spike appear across the coil at the instant the contact part, so those will need to be suppressed.
You will need to take the voltage switched by the bell push, rectify it, and charge a large smoothing capacitor that will store enough energy to power the ESP while it sends the message, and a regulator to give a smooth constant 3.3 V to operate the ESP8266. If you don’t need the full output power, it looks as if it will need about 120 mA for maybe a second or two while it starts up and sends a message - that includes the time the visitor’s finger was on the button. As I’ve said, I don’t have an ESP8266 so I’m guessing it won’t need the stored power to last for more than a few hundred milliseconds while it sends the message.

1 Like

Thanks for the extensive explanation.

I understand that following link describes this solution:

The difficult part for me is identifying a suitable rectifier, capacitor and regulator (I am more a software than a hardware guy).

That’s the general outline. You must measure the transformer voltage - it almost certainly will not be exactly the 3, 5 or 8 V printed on it, then you will work from there. When the bell is not ringing, you might have 12 V or maybe even more on the transformer terminals, that would give a voltage on the capacitor of about 17 V, so you will need a 3.3 V regulator that can give you the required current for the ESP - say 200 mA, and will withstand at least 17 V on the input and has a power rating of about 2.5 W, this is a switched-mode module that looks suitable.

1 Like

Hi,

take the AC put it through a full wave rectifier and a capacitor across its output then feed this into an LM7805 his will give you a stable 5V 1A supply

John

Which will destroy the ESP8266. @jvda: that’s not advice I recommend you follow.

This is what I did using an old fashioned bell push with integrated light that goes out when the button is pushed

. I can also provide the code for the ESP01 if required. As I already had a handy 12v supply outside close to the bell push I just mounted it all in an IP65 weatherproof box next to the front door and have no problems connecting to my WiFi through the door/wall.