Linux Format

Monitor the mood of Twitter tweets

The Internet of Things (IoT) is a weird and wonderful place, and in this tutorial we will make it a little weirder by creating a tool that reads the sentiment of our tweets and rates them according to a list of positive and negative words. If the tweet is positive, a green LED will light up; if it’s negative a red LED will light. Neutral will see a yellow LED light. This is a fun introduction to learning how we can measure the mood of a tweet and create novel outputs.

We’ve kept components for this project simple. We have three LEDs (red, yellow and green) connected to pins GPIO17, 27 and 22 via their long leg, and connected to GND via their short leg and a 330 ohm resistor.

Software setup

On the

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related