Giter Site home page Giter Site logo

tworsekey's Introduction

This is an update of the original project by Martin Kaltenbrunner.

Tworse Key is an Arduino-powered Telegraph that transmits its messages to Twitter. Inspired by Martin Kaltenbrunner's original 2012 project, students, faculty, and staff at Swarthmore College have updated the code to work with the newer Twitter API and added the ability to work with Wifi or Ethernet connections.

Students in Professor Rachel Buurma's Victorian Novel Research Seminar at Swarthmore College built a bunch of Twitter telegraphs.

image of wifi Twitter telegraph

image of Twitter telegraph

Hardware

Part Notes
Arduino Uno Or Equivalent. We purchased an equivalent model from Sparkfun.
Arduino Ethernet shield or Wifi shield We purchased Sparkfun: Ethernet or Wifi
Morse Key Model AM-K1 Telegraph Key sourced from Morse Technologies
Piezo buzzer We purchased a 12mm model from Sparkfun and Amazon
RGB LED (common anode) We purchased this part from Sparkfun
330Ω resistor for red portions of the RGB LED
Two 160Ω resistors for green and blue portions of the RGB LED
50Ω resistor For the buzzer
Breadboard To plug in the electrical components. A small one works fine
Hookup wire To connect the parts
Box or Wooden board To mount the components

Hardware setup

Hook up the parts as in the diagram below circuit diagram

Software setup

  • Open the Arduino program: https://www.arduino.cc/en/Main/Software
  • If you are using Ethernet, download the Ethenet2 Arduino library from https://github.com/adafruit/Ethernet2/archive/master.zip
    • The regular Ethernet library only works with older Ethernet shields. The Ethernet 2 library is required for newer shields.
    • Unzip the master.zip file, Find the "src" folder, and copy it into the Documents → Arduino → libraries folder.
  • In the Arudino app, under the "Tools → Board" menu, select "Arduino / Genuino Uno"
  • Connect your Arduino to your computer with the USB cable
  • Under the "Tools → Port" menu select something like "dev/cu.usbmodem"
  • Download TworseKey program from GitHub: (https://github.com/Swarthmore/TworseKey) by clicking on the "Download Zip" option.
  • Unzip the file, open the folder, and double click on the "TworseKey.ino" to open up the code.

Twitter connection

The Arduino is not sophisticated enough to authenticate to Twitter and send a Tweet. We are using IFTTT.com to send the tweets for us.

  • Go to IFTTT.com, create an account, and then make a new recipe.
  • The Recipe is: If Maker Event "tweet", then post a tweet to
    • You will need to add the Maker and Twitter channels and do whatever authentication is required.

Configuration

  • Open the config_dist.h file (should be a tab in the Arduino program)
  • Open a new tab (arrow on far right) and create a config.h file. Copy and paste the content from config_hist.h to config.h
  • Modify config.h with the MAC address from your Ethernet or Wifi board. Include "0x" in front of each set of two characters
  • Edit the code for Wifi or Ethernet
  • Enter your Maker Key set up from IFTTT.com
  • Modify hashtag(s) as you see fit
  • Save config.h
  • Click the check button on the top left of the window to verify everything is ok.
  • If so, click the right arrow button to upload your code to the Arduino

Operation

After the Arduino is first powered up, it will look for a network connection. The LED will be yellow. The wifi can take a while to connect. Once a network connection is established, the LED will turn green and tone will sound.

Press the Morse key down for a short time for a dot and longer time for a dash. The defaults are 150mS or shorter is a dot and 150mS to 600mS is a dash. These can be modified in the main program. Pauses for more than a 1.5 seconds will automatically add a space.

Press the key down for more than 3 seconds to send the message to twitter. The LED will turn blue while the message is sent. A tone will indicate success or failure.

Type 8 dots to reset your message.

You can use the Arduino serial monitor to see what you are typing.

If you want to test out the system without sending lots of crazy tweets, you can update your IFTTT.com recipe to record your messages to a Google spreadsheet instead of sending to Twitter.

Original README

Tworse Key http://modin.yuri.at/tworsekey (c) 2012 by Martin Kaltenbrunner

The Tworse Key is an open design exercise in interface archaeology, that decodes the input from a classic Morse key to send twitter messages. This standalone device connects through a standard LAN cable, the Morse signals are decoded by the built-in Arduino Ethernet board, which delivers the final message though the Twitter API.

This project is fully documented in order to illustrate the Open Design process for beginners, the source code and building instructions are therefore available under the according free licenses.

This project is using NeoCat's Twitter library: http://arduino-tweet.appspot.com/

All source code is available under the GPL 3.0 and the hardware schematics are available under a Creative Commons 3.0 BY-SA license. You can find all documentation and building instructions on the project page.

tworsekey's People

Contributors

aruethe2 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.