DIY Twitter Flagpole

Introduction: DIY Twitter Flagpole

below are the items I used for it:

  • Intel Edison
  • ULN2803a
  • Stepper Motor
  • Timing Belt 3D printer
  • Stand for camera
  • Broomstick
  • Cables Tie

Step 1: Assemble the Flagpole

Followed by attaching the camera stand and stepper motor on the broomstick using a cable tie. Making sure the timing belt is not too tight

Step 2: Assemble ULN, Stepper Motor, and Intel Edison

Follow the scheme. Next we will turn the pulley. Here is the code I wrote in Python. countFlagSteps.py

Just download the code and execute it in terminal just simply "python countFlagSteps.py"

When the flag has reached the top, press ‘Ctrl + C’ to interrupt the program, then the program will output how many rounds it takes to reach the top. When all the steps is considered a success, now we will connect to twitter.

Step 3: Connect to Twitter

Before starting it we better make the twitter application first. We will utilise the API Streaming to get the number of tweets in real-time. Here is the code. countTweets.py and also we have to prepare token_key.txt from twitter

Now lets test the code we made is working or not

Run the code "python countTweets.py -oauth token_key.txt [word_tracking]". In picture I wanna flag will go up triggered by word "garudaku" from public twitter timeline. So I just type "python countTweets.py -oauth token_key.txt garudaku"

if somebody tweet "garudaku" it will print how much tweet and the flag will go up.

Step 4: Testing

Above is the video that has been fast forwarded because originally it took 2 hours to make this work.

Source

First Time Author Contest

Participated in the
First Time Author Contest

Intel® IoT Invitational

Participated in the
Intel® IoT Invitational

Be the First to Share

    Recommendations

    • Pi Day Speed Challenge

      Pi Day Speed Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Microcontroller Contest

      Microcontroller Contest

    18 Comments

    0
    lsahidin
    lsahidin

    4 years ago

    Mantap sekali coy, good!! Merah Putih.

    0
    sofianhw
    sofianhw

    Reply 4 years ago

    Terima kasih coy :)

    0
    FvadS
    FvadS

    4 years ago

    Pasti dicari activation agency ni yang kaya gini....

    0
    sofianhw
    sofianhw

    Reply 4 years ago

    Belum ada yang nyariin nih
    hehehe

    0
    dionha
    dionha

    5 years ago

    Up Up - endonesa raya

    0
    sofianhw
    sofianhw

    Reply 4 years ago

    hiduplah Indonesia raya

    0
    srahmadi
    srahmadi

    5 years ago

    wiihh kereeen

    0
    sofianhw
    sofianhw

    Reply 4 years ago

    Thanks

    0
    ir_One
    ir_One

    5 years ago

    mantap kang, jadi pengen ke hardware lagi, dulunya arduino, harganya intel edison brapa kang..?

    0
    sofianhw
    sofianhw

    Reply 4 years ago

    intel edison lumayan 1jtaan kalo ga salah, tapi itu bisa dipake selain intel edison :)

    0
    chalei
    chalei

    5 years ago on Introduction

    iya tuh mas sofyan trigger dari twitternya blm dijelasin.

    Already vote for this project By the way :)

    0
    sofianhw
    sofianhw

    Reply 5 years ago on Introduction

    Eh iya, belum terbiasa dengan instructables.

    Thanks btw,

    ikutan juga ga?

    0
    chalei
    chalei

    Reply 5 years ago on Introduction

    hehe, nda dulu yang ini mah. Mau ikut yang raspberry aja nanti. semoga masihh sempet

    0
    chalei
    chalei

    Reply 5 years ago on Introduction

    bro vote balik project ane

    https://www.instructables.com/id/Raspberry-Pi-Roboat/

    0
    Ghild.Zero
    Ghild.Zero

    5 years ago

    Mantabsssss, good luck

    0
    tomatoskins
    tomatoskins

    5 years ago on Introduction

    From your instructable I can't figure out what on twiter is the trigger to raise the flag.

    0
    sofianhw
    sofianhw

    Reply 5 years ago on Introduction

    hi @tomatoskins

    I just update part of twitter triggered.

    Thanks for the input

    Its my first post in instrucable