Monitor the mood of Twitter tweets
Nov 19, 2019
5 minutes
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.
Start your free 30 days