Telegram + Nodemcu + HC-SR501
by 19nikolay98 in Circuits > Arduino
1596 Views, 5 Favorites, 0 Comments
Telegram + Nodemcu + HC-SR501
In this article I will present IoT project that allows to sense presence of people in the room. System have remote communication via Telegram.
Components
Nodemcu
HC-SR501
Motherboard
Wires
Software:
Arduino IDE + libraries: TelegramBot, esp8266( v2.6.3)
Step 1: Connection
Connect components all together as shown on picture.
Step 2: Create Telegram Bot
Create telegram bot and get bot-token.
Instruction how to create bot:
https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-telegram?view=azure-bot-service-4.0
Step 3: Programming
You can use my code for realization.
If you want to use it, you need to create commands "/on" and "/off/ for your bot.
You can update commands to make it more usable for you. You also can add some extra sensors and do extra features