MOAMIndustries / chatbot_IRL

Chatbot for twitch that controls a robot in real life

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DaRoboto

The literal chat robot

This is a robot that can be controlled via twitch chat. It's going to have a bunch of commands for actions & eventually will be able to provide feedback as well

Twitch -> EC2 -> IoT Core -> Robot Thing

Commands

Command Action
forward Drives the robot forwards 1 second
left turns left on the spot 90 degrees
right tursn right on the spot 90 degrees
back drives the robot backwards for 1 second
pen up raises the pen from the paper
pen down lowers the pen to the paper

Folder structure

/chatbot contains all code and dependancies for the chatbot agent running in ec2.

/frank contains code and platformio environment for the robot defined as frank

Launching bot from cli

pipenv run python bot.py

IoT Payload structure

each type of action has a different set of parameters actions:

  • motion
  • lamp
  • pen

parameters:

  • move
    • left_demand (int_32)
    • right_demand (int_32)
    • period (int_32)
  • lamp
    • state (int_32)
  • pen
    • position (int_8)

warning changing the format can cause kernel panic and watchdog reset in mcu

About

Chatbot for twitch that controls a robot in real life


Languages

Language:C++ 58.8%Language:Python 40.7%Language:C 0.3%Language:Shell 0.2%