top of page
harrison-broadbent-c3YpscwJb04-unsplash.

Raspberry Pi
Twitter Bot

Top Of APKB

Overview

This Raspberry Pi Twitter Bot (@RasPiTweet1) incorporated the Twitter API, a Raspberry Pi 3B, a small breadboard circuit, and a few lines of Python code to tweet the Raspberry Pi's CPU temperature as well as a funny combination of words.
Role

- Designer

- Programmer

- Builder

Team

Individual

Course

Personal Project

Date

Apr. 2018

vishnu-mohanan-rZKdS0wI8Ks-unsplash.jpg

Problem

I wanted to create a Twitter bot that would tweet out the CPU temperature at the press of a button.

Build

Using a few online tutorials, I first learned how to use the Twitter API and Python code to create a Twitter bot, starting by successfully tweeting "Hello World!". I then incorporated a short Python script to read in the CPU temperature and output it through a tweet.
Screenshot 2021-02-19 155011.jpg
I then learned how to build a simple breadboard circuit involving a button and a LED light. Connecting the breadboard circuit to the Raspberry Pi and adding a few lines of code, I was able to send a tweet whenever the button was pressed.
IMG-0208.jpg
I also created two arrays of words. The program randomly selected a word from each array and concatenated them into a single string to be outputted as a tweet upon the press of the button.
Screenshot 2021-02-19 161835.jpg

Final Product

Check out the Twitter bot for yourself here!

What I Learned

  • Twitter API
  • Python
  • Breadboard circuits

© 2023 by Daman Yang

  • GitHub
  • Email
  • White LinkedIn Icon
bottom of page