Skip to content

Spencillian/TwitchBotRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Bot Robot

The code for this bot is home cooked specifically for this use case

Find the robot at https://www.twitch.tv/spncllian

Summary

This repo combines the RaspberryPi's Gpio library with with Twitch's tmi.js library to make a robot that moves based on bot commands.

How it Works

Twitch Bot - index.js

Defined in this file is a twitch bot that controls the robot with imported functions.

  • Forward: !f {millis}
  • Back: !b {millis}
  • Left: !l {millis}
  • Right: !r {millis}
  • Stop: !stop
  • Help: !help

This code is run on a RaspberryPi 3B (I think) located on the robot and powered by an onboard battery.

Motor Control - motorControl.js

Inside this file is where all of the hardware controls lie. This takes in the various bot commands and turns them into GPIO pin outputs. It also manages the Gpio resources and implements a cleanup function. The outputs are then piped to a L298N motor controller board which controls the direction of the motors.

About

A twitch bot that controls a real robot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published