How to Transform Any Electronic Device Into a Smart Electronic Device for 10$?
by Smirk0514 in Circuits > Electronics
3438 Views, 49 Favorites, 0 Comments
How to Transform Any Electronic Device Into a Smart Electronic Device for 10$?
![00083D7A-23A3-44B3-8743-F7C715EBB4AE_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/FY7/T911/L8FXA2A5/FY7T911L8FXA2A5.jpg&filename=00083D7A-23A3-44B3-8743-F7C715EBB4AE_1_105_c.jpeg)
In this tutorial, I will show you how to transform a regular door bell into a smart door bell that:
- push notifications on my wife's phone and mine
- integrates my Home Assistant setup for any other automation (text-to-speech annoucement, camera screenshot...)
Supplies
The pre-requirements for this project are:
- Operational Home Assistant setup
- Operational ESPHome setup
- A RF door bell (or any not-so-smart electronic device you want to connect make smart with Home Assistant)
The following hardware is required:
- Wemos D1 Mini (10$ approx.)
- A few wires (2$ approx.)
Note: You can choose any ESP board you have on hand as long as it is compatible with ESPHome
The following tools is required:
- Soldering station
- Pliers
- Screwdrivers
Open the Enclosure
![9C3E38AE-5048-442F-9F9E-00135812A403_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/F3U/2T2I/L8FX9VU7/F3U2T2IL8FX9VU7.jpg&filename=9C3E38AE-5048-442F-9F9E-00135812A403_1_105_c.jpeg)
![5F8B87C7-F9D8-4D94-B608-D59B725878CB_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/F2K/WLIX/L8FX9VU8/F2KWLIXL8FX9VU8.jpg&filename=5F8B87C7-F9D8-4D94-B608-D59B725878CB_1_105_c.jpeg)
![6257158C-FCF1-4763-AD86-1EABA0CCFBA3_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/FM2/ZGIS/L8FX9VU9/FM2ZGISL8FX9VU9.jpg&filename=6257158C-FCF1-4763-AD86-1EABA0CCFBA3_1_105_c.jpeg)
![44BF45C8-99C9-42EF-A697-0AECD4862464_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/FMX/9TB6/L8FX9VUA/FMX9TB6L8FX9VUA.jpg&filename=44BF45C8-99C9-42EF-A697-0AECD4862464_1_105_c.jpeg)
Unplug the unit from the wall
Unscrew the two main screws on the back of the unit
Pull the top cover from the bottom
Unscrew the two other screws on the electronic board
Analyze the Electronic Board and Identify Power Connection Points
![6257158C-FCF1-4763-AD86-1EABA0CCFBA3_1_201_a.jpeg](/proxy/?url=https://content.instructables.com/F65/LAUW/L8FX9W1C/F65LAUWL8FX9W1C.jpg&filename=6257158C-FCF1-4763-AD86-1EABA0CCFBA3_1_201_a.jpeg)
On the top of the electronic board, I immediately identify two test points labelled "5V" and "GND". I will be able to power my micro-controller through them.
Analyze the Electronic Board and Identify Signal Connection Points
![44BF45C8-99C9-42EF-A697-0AECD4862464_1_201_a.jpeg](/proxy/?url=https://content.instructables.com/FJS/TKV2/L8FX9X0V/FJSTKV2L8FX9X0V.jpg&filename=44BF45C8-99C9-42EF-A697-0AECD4862464_1_201_a.jpeg)
I noticed that my door bell activates a blue light when someone rings the door. The idea is to identify the control signal of this light. If I find it, I will be able to monitor it to know when someone rings.
On the electronic board, the blue light matches with the component labelled LED14. An LED circuit requires a resistor to work properly. Let's find this resistor.
I followed the trace (in red). At some point, I found a tiny hole on the electronic board. This is called a via and this is used to continue the trace on another layer. So, I continued following the trace on both side of the electronic board until I found the resistor (yellow).
I will be able to connect input of my micro-controller on this resistor.
Solder the ESP Board to the Door Chime
![EDBB3796-473C-471E-842F-4D281747B99E_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/FIU/KFSY/L8FX9XJL/FIUKFSYL8FX9XJL.jpg&filename=EDBB3796-473C-471E-842F-4D281747B99E_1_105_c.jpeg)
![IMG_2889.JPEG](/proxy/?url=https://content.instructables.com/F8H/I9E4/L8IS8UBG/F8HI9E4L8IS8UBG.jpg&filename=IMG_2889.JPEG)
Now you can connect the 5V, GND and signal wire from the door bell to the 5V, GND and D5 pins of the micro-controller board.
You can add insulation layer where necessary to prevent shorts to happen.
Configure the New Device With ESP Home
![Capture d’écran, le 2022-09-24 à 20.52.50.png](/proxy/?url=https://content.instructables.com/F99/O0JD/L8FX9Y7S/F99O0JDL8FX9Y7S.png&filename=Capture d’écran, le 2022-09-24 à 20.52.50.png)
![Capture d’écran, le 2022-09-24 à 20.53.07.png](/proxy/?url=https://content.instructables.com/FR0/8KF1/L8FX9Y8F/FR08KF1L8FX9Y8F.png&filename=Capture d’écran, le 2022-09-24 à 20.53.07.png)
![Capture d’écran, le 2022-09-24 à 20.53.16.png](/proxy/?url=https://content.instructables.com/F80/MHL9/L8FX9YGX/F80MHL9L8FX9YGX.png&filename=Capture d’écran, le 2022-09-24 à 20.53.16.png)
- Open Home Assistant
- Open ESP Home module web interface
- Click on New Deice green button
- Enter a new for your device
- Follow instructions to download initial firmware to your micro-controller
- Once setup, go back to ESP Home module, find your device and click on Edit
- Add the following section at the end of the yaml file:
binary_sensor: - platform: gpio pin: D5 name: "Door Ring" id: "door_ring" filters: - delayed_off: 2s
- Click on Save
- Click on Install (at this point, you should be able to install it wirelessly)
Note: The configuration file should look like that:
esphome: name: d1-mini esp8266: board: d1_mini # Enable logging logger: # Enable Home Assistant API api: encryption: key: "8rj9fdswKTvsOE4O3UwDOyNIiofgsdzq7YOaj7E4dho=" ota: password: "8422267116cb103bdc779de1a1335af4" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "D1-Mini-4 Fallback Hotspot" password: "uJPVhjvkchopK" captive_portal: binary_sensor: - platform: gpio pin: D5 name: "Door Ring" id: "door_ring" filters: - delayed_off: 2s
Close Your Device and Plug It to the Wall
![00083D7A-23A3-44B3-8743-F7C715EBB4AE_1_105_c.jpeg](/proxy/?url=https://content.instructables.com/F14/AVVT/L8FXA1LN/F14AVVTL8FXA1LN.jpg&filename=00083D7A-23A3-44B3-8743-F7C715EBB4AE_1_105_c.jpeg)
Be careful with short circuits and not pinching any wires.
Wait 30 seconds after power up before going to the next step.
Add Your New Device to Home Assistant
![Capture d’écran, le 2022-09-24 à 21.12.48.png](/proxy/?url=https://content.instructables.com/FJL/W19V/L8FXA036/FJLW19VL8FXA036.png&filename=Capture d’écran, le 2022-09-24 à 21.12.48.png)
If you followed the last step and you successfully setup the custom ESP Home firmware to your micro-controller, Home Assistant should automatically detect a new device and add a notification on the left panel.
- Select the room and add the device to Home Assistant
- Go to Settings > Devices & Services
- Select Devices tab
- Click on the name of your device
- You should be able to test you door bell
Configure Mobile App Notification
![Capture d’écran, le 2022-09-24 à 21.16.09.png](/proxy/?url=https://content.instructables.com/FLW/SYC7/L8FXA186/FLWSYC7L8FXA186.png&filename=Capture d’écran, le 2022-09-24 à 21.16.09.png)
![Capture d’écran, le 2022-09-24 à 21.16.46.png](/proxy/?url=https://content.instructables.com/FHJ/3NBZ/L8FXA190/FHJ3NBZL8FXA190.png&filename=Capture d’écran, le 2022-09-24 à 21.16.46.png)
![Capture d’écran, le 2022-09-24 à 21.19.18.png](/proxy/?url=https://content.instructables.com/FZU/1ZBF/L8FXA19V/FZU1ZBFL8FXA19V.png&filename=Capture d’écran, le 2022-09-24 à 21.19.18.png)
- Go to Settings > Automation & Scenes
- Click on Create Automation
- Click on Start with and empty automation
- Add a trigger
- Device
- Ring turn on
- Add an action
- Service
- notify: Send a notification with notify
- Type a message and title
- Click on Save
- Add a name to this automation
Enjoy Your New Smarter Device
![2DC38612-A868-4BC0-8E3A-523BBF27EAAE_1_201_a.jpeg](/proxy/?url=https://content.instructables.com/FQN/MVBX/L8FXA1ZL/FQNMVBXL8FXA1ZL.jpg&filename=2DC38612-A868-4BC0-8E3A-523BBF27EAAE_1_201_a.jpeg)
When someone press you door bell button, a notification should appear on your phone.