Tweet for Bubbles

Introduction: Tweet for Bubbles

About: Engineer, economist maker... Trying to get most out of available resources...

This project was recently deployed at an IOT conference in Pune, India. The bubble machine that we brought from here, was modified to make bubbles if someone tweets with #PuneIOT. After people came to know about this we got a lot of tweets and a lot of bubbles too.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Gathering the Required Parts

1. Bubble maker machine + soap water

2. Raspberry Pi + wifi-Dongle

3. Tah + Relays and Sensors Shield (we can make do without it, but since I had one handy saved me the trouble of making the circuit)

Now lets get started.

Step 2: Create a Twitter App and Setup Raspberry PI

First visit the Twitter Developers’ Site. This link guide you on how to create an app on twitter. Once you have created an app please copy the following details





Clone this repository in your home folder of the Raspberry Pi.

cd ~ 
git clone <a href="" rel="nofollow"></a>

In the file insert the above secret-key values that you just copied from you twitter app.

Next lets make the file run on when the Raspberry Pi reboots. To do that lets change the permissions on the

 chmod 755 

Now test it, by typing in:


This should run your Python code.

Add logs directory

mkdir logs
sudo crontab -e

add the following line to the end of the file

@reboot sh /home/pi/bubblemaker/ >/home/pi/logs/cronlog 2>&1<br>

Then restart the Rabpberry Pi

sudo reboot

Step 3: Setup the Tah Board.

Let us take the Tah board and attach it to the sensor + relay shield. Then cut the wire that connects to the bubble maker and insert the relay connected on pin 2 in series.

The sketch for the Tah board can be found here. It is simply reading the serial port for a string and as soon as it receives the string turns the relay on for 1 second. Upload the sketch on the Tah and plug it into the Raspberry Pi.

Step 4: Tweet for Bubbles

Be the First to Share


    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020