Every year before the New Year I make something on arduino with light bulbs and servos. This year I decided to make remote control of garlands through Telegram bot. I did not use public libraries, but wrote a minimal class (in Python) that can only receive and send text messages. In addition to the garlands, I connected a servo to the Arduino, to which I attached a stick and a led on the end. Also I connected a temperature sensor. In the future, I plan to install a camera in front of this installation so that you can see how device works. Sorry for my English. All code available on Github:
UPDATE: Added custom keyboard support! Now you can just click buttons for Arduino control!
UPDATE: Short instruction:
Connect arduino to computer. Take sketch from repository, change it to your needs. Code just reads character from Serial and, depending on it, performs the actions. Further, the repository has library for working with API telegram (api.py) and an example bot (app.py). To run the bot you need to get token to access the API. To create your bot and get token, you must perform the steps described here https://core.telegram.org/bots#6-botfather After that, open app.py and edit it to your needs and run.
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!