element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Telegram Controlled Drone #3 : Preparation - Telegram Bot
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Attack of the Drones requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: jissdeodates
Date Created: 25 May 2021 4:04 PM
Views: 127
Likes: 3
Comments: 0
  • m5stack
  • telegram
  • drone
  • telegram control
  • attackofdronesch
  • dji tello
  • attackofthedronesch
Related
Recommended

Telegram Controlled Drone #3 : Preparation - Telegram Bot

jissdeodates
jissdeodates
25 May 2021


Telegram
is a freeware, cross-platform, cloud-based instant messaging (IM) software. Telegram accounts are tied to telephone numbers and are verified by SMS. Users can add multiple devices to their accounts and receive messages on all of them. Connected devices can be removed individually or all at once. The associated number can be changed at any time and when doing so, the user's contacts will receive the new number automatically. In addition, a user can set up a username as an alias that allows them to send and receive messages without exposing their phone number.

For our drone control, we will be using a custom Telegram Bot.

 

Telegram Bots

 

Bots are simply Telegram accounts operated by software – not people – and they'll often have AI features. They can do anything – teach, play, search, broadcast, remind, connect, integrate with other services, or even pass commands to the Internet of Things. They can respond to messages or mentions, can be invited into groups, and can be integrated into other programs. There are also inline bots, which can be used from any chat screen. In order to activate an inline bot, the user needs to type in the message field a bot's username and query. People can use Internet Of Things (IoT) services with two-ways interaction for IFTTT implemented within Telegram.

 

Telegram bot API

 

It is easy to set up Telegram Bots. There are a lot of tutorials available.

https://core.telegram.org/bots - BotFather

https://core.telegram.org/bots/api - General API

We used BotFather and the Telegram API to develop our custom Telegram bot named @DroneTellobot.

Custom developed bot: @DroneTellobot
Custom-developed bot: @DroneTellobot

Our custom bot is developed in such a way that it can be accessed directly using its unique name @DroneTellobot or by adding the bot into a group.

If added to a group, all the members of the group can simultaneously use the bot to control the drone. This is very useful in a case for eg. testing the drone as a team.

 

Telegram Commands

 

At the time of this writing, the following commands are programmed into the custom telegram bot.

  • /takeoff - drone takeoff
  • /land - drone land
  • /forward - drone forward
  • /back - drone back
  • /up - drone up
  • /down - drone down
  • /left - drone left
  • /right - drone right
  • /battery - drone battery
  • /shutdown- close comm
  • /status - bot info

 

There is the possibility to add more commands which are available with the help of DJI Tello SDK, which will be incorporated soon.

 

References:

https://www.wikipedia.org

https://core.telegram.org/bots

https://core.telegram.org/bots/api

 

 

Blog Series:

 

Telegram Controlled Drone #1 : Introduction

Telegram Controlled Drone #2 : Preparation - Drone and M5Stack module

Telegram Controlled Drone #3 : Preparation - Telegram Bot

Telegram Controlled Drone #4 : Integration and Testing

Telegram Controlled Drone #5 : Conclusion and Future Scope

Anonymous
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube