top of page

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

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.

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.

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.

Final Product
Check out the Twitter bot for yourself here!
What I Learned
-
Twitter API
-
Python
-
Breadboard circuits
bottom of page