Controlling light from Bot

An IOT project,using Telegram Bot which conrols light. we require Telegram app,Adafruit.io Google Colaboratory to do project.

Steps to create Telegram Bot

  1. Open Telegram app and search @BotFather.Now send him a “/start” message
  2. Send another “/newbot” message,then follow the instruction to setup a name and a user name.
  3. Your bot is now ready,be secure to save a backup of API token To create a telegram bot

Getting your Adafruit API Key:

  1. Create an Adafruit Account and login.
  2. Go to Dashboard and create one.
  3. Once you have done that you will find Adafruit IO Key on the top right corner of your screen
  4. Copy the username and Active Key and save it for further use in the programming.

Github Link of my project:

https://github.com/SaiRakesh2001/MajorProject

Working:

  1. Once you have done with the program ,run all the cells.
  2. Open the Telegram App on your mobile and enter the chat with your bot and type ‘/on or ‘/off’ depending on your requirement.
  3. The bot must be able to respond you back and you could see your output on Adafruit Dashboard you created .(Make sure you’ve added your required blocks)

If we add a a status indicator in adafruit.io dashboard.We can observe green light when light is turned ON,Red light when light is turned off.

I used python language (Google Colaboratory) to code the entire project. The last and the most important step, to deploy the app on Heroku.com. I used Heroku cloud platform, connected it with Github and deployed the app.

This is how we create a light controlling bot with Telegram.

Thank you!!

--

--