Skip to main content

A Telegram Bot to control Board Pins for Device Controller Arduino Library

Project description

Device Controller Telegram Bot

A Telegram Bot to control Board Pins for Device Controller Arduino Library

Usage

  • Install Device Controller Arduino Library in Arduino IDE.
  • Use Arduino Uno Controller Example Sketch to test the bot.
  • Upload Sketch on the board
  • Create new Telegram Bot using BotFather
  • Copy API KEY to clipboard
  • Install DeviceControllerTelegramBot Using pip
    pip3 install DeviceControllerTelegramBot
    
  • Use ArduinoUnoController.py from examples to create a Telegram bot
  • Assign copied Key to api_key variable
  • Update Serial Communication configuration
    serial_comms_conf = {
      'PORT': "COM[PORT_NUMBER]",
      'baud_rate': 9600,
      'timeout': 0.0,
      'encoding': 'utf-8'
    }
    

    Update PORT in dictionary

  • Start Bot using
    python3 ArduinoUnoController.py
    
  • Start chat with bot on telegram, it will reply with your telegram chat id, copy chat id and update admin_chat_ids_list
    admin_chat_ids_list = [
      your_chat_id,
      another_chat_ids_if_any,
    ]
    
  • Restart Bot
  • Use /devices command to control connected devices

TODO

  • Add demonstration image/video
  • Add options to control Analog pins

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DeviceControllerTelegramBot-1.0.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page