This system allows users to control smart home through telegram bot. Users can open door, turn on/off light, turn on/off secure mode, get temperature data, and receive important notifications (e.g. robbery is happening in the house) anywhere with only telegram application.
The aim of this project is to show the interaction between smart home and telegram bot which is designed to send requests for certain functions of the home and get the status of the functions being performed. The Telegram bot will allow the user to use the following features in the home: control of all light in the room (on/off), request statistics on the air temperature in the room, house entrance gate control (opening/closing), and the most important feature is the notification system, which will send a message in a telegram that there are strangers inside and sound a siren in the house if the secure mode is on.
- Arduino Mega 2560 and breadboard.
- Wemos D1 mini (WiFi development board based on the ESP8266).
- Wires.
- Human Body Infrared Sensor (PIR).
- 1 servo motor for automatic door opening and closing.
- LEDs.
- Active Buzzer.
- Resistors.
- Temperature Sensor DS18B20.
- 2 x 7 Segment LED Displays.
- 2 x BCD to 7 Segment Decoders.
- Cardboard for the house and door.
- Setup and run backend service
cd microcontrollers && make build
make run
- Run telegram bot
cd tg-home-bot
go run cmd/main.go
- Disconnect tx0 and rx0 from arduino mega upload mega firmware program
- While tx0 and rx0 ports are disconnected upload esp firmware to wemos d1 mini
- Push reset button on arduino mega