Things used in this project

Hardware components:
A000066 iso both
Arduino Arduino UNO & Genuino UNO
Omron b3f 1000 image 75px
SparkFun Pushbutton switch 12mm
11026 02
Jumper wires (generic)
09590 01
LED (generic)
Mfr 25frf52 10k sml
Resistor 10k ohm
Mfr 25fbf52 221r sml
Resistor 221 ohm
Software apps and online services:
Ide web
Arduino Arduino IDE
Enthought Canopy Python IDE
Hand tools and fabrication machines:
3D Printer (generic)
09507 01
Soldering iron (generic)

Custom parts and enclosures

Button Housing
Button Top


Just connect. The 220 ohm resistor can go between the LED and GND.
Schematic twitter to wear jqdaa2t76k


Python CodePython
from twython import Twython
import os
import random
import serial

pathToImages = "images/"
app_key = "secret"
app_secret = "secret"
oauth_token = "secret"
oauth_token_secret = "secret"
twitter = Twython(app_key,app_secret,oauth_token,oauth_token_secret)
ser = serial.Serial("COM8",baudrate=9600)

def getImage():
        #Takes the folder where your images are as the input
    images = os.listdir(pathToImages)
    image_open = open(pathToImages + str(images[random.randint(1,(len(images)) -1)]), 'rb')
    print "I chose: " + str(image_open)
    image_ids = twitter.upload_media(media=image_open)
    twitter.update_status(status='You should wear this today: ',media_ids=image_ids['media_id'])

while 1:
    if == "h":
Arduino CodeC/C++
const int buttonPin = 5;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT);
  // initialize the pushbutton pin as an input:
  pinMode(buttonPin, INPUT);

void loop() {
  // read the state of the pushbutton value:
  buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {
    //tell Python it went high
    // turn LED on:
    digitalWrite(ledPin, HIGH);
    //5 min delay
  } else {
    // turn LED off:
    digitalWrite(ledPin, LOW);


Arduino “having11” Guy

I love creating cloud solutions that can interact with hardware along with using Arduino boards and Raspberry Pis to create new projects.



Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Water Softener
  • 176
  • 5

Full instructions

Sweeping frequency magnetic hard water conditioner

Mask with Blinking Eye
  • 58
  • 3


Makes a great mask more eye-catching when one eye is blinking. Has an on-off switch, is powered by a cell , and driven by an ATtiny85.

Simple Obstacle Senor With Arduino
  • 61
  • 2

Full instructions

I am Gonna show you how to make a Simple obstacle sensing system with cheap parts like IR led and Photo diode.

Know the Temp of Your Home From Anywhere with Arduino Cloud!
  • 1,027
  • 9

Full instructions

Ever wanted to know the temperature of your home from somewhere? Here's an easy way to do it with Arduino Cloud and the Yun Shield!

PHPoC - Detect Someone Taking Your Stuff
  • 586
  • 14

When your stuff is being taken away by a thief, PHPoC makes an alert and sends a notification to you via Gmail.

Connect Your Thinxtra Xkit Using Sigfox
  • 117
  • 2


Learn how to build an IoT application over Sigfox integrated with Ubidots - send temp readings based on motion sensors.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog