Tweety Bouton à l'aide d'Arduino

Welcome to my first Instructable! This is for something I’ve coined the “Tweety” or, Tweety-Button.

The concept is simple,
you’re on your computer and the inspiration to Tweet is welling up inside.
Chrome is being slow today, and you want to get those 140 characters out, fast!
No fear, just click on the Tweety button conveniently placed within arms reach on your desk,
and voila! A magical text interface appears and accepts type until you press ‘Enter’
~Insta-Tweet

btw, why yes, that is Tweety Bird rubber popper.

Disclaimer.
As is often done, this is built with an Arduino and the Processing environment.
The code used in the SimpleTweet instructable was integral for getting OAuth working.
So that is beyond the scope of this instructable.

Arduino Tweety Button

Step 2: Worth it just to feel the click~!

This thing is amazingly tactile! I love the way it feels and recommend anyone try this setup.

It’s very simple, once your breadboard is the right size, and you’ve soldered the button to it with the resistor in the right spot, super glue one of those Poppy toys right on top. You’ll end up with this…

The code on the Arduino sends a serial ‘1’ when the button is pressed. Processing picks this up and opens up the input screen.

Step 3: When pressed…

When you click it, the processing app is running invisible, then pops up on your screen, ready to enter text.

Step 4: Typing

Here’s the basic code for how I do my typing. I’m hoping that over time this project can be developed based on other peoples input. Now honestly I am having trouble implementing the visible/invisible. Actually, it doesn’t work! SO~ I’m hoping by posting this, we can all figure it out together. I’m wishing for this to run in the background and wait for the arduino at all times. Please comment!

import processing.serial.*;

public String tweet;
PFont fnt;
Serial arduino;

void setup() {
size(800, 100);
noStroke();
background(0);
fnt = loadFont("CourierNew36.vlw");
textFont(fnt, 32);
tweet = "";
println(Serial.list());
String arduinoPort = Serial.list()[1];
arduino = new Serial(this, arduinoPort, 9600);
frame.removeNotify();
}
Major Components in Project
Ingredients

1 Arduino
1 Those things you turn inside out, then then flip into the air.
1 momentary push button
1 resistor, I used 100ohm
some wire, and breadbord
Radioshack sells this 5 pack of circular breadboard which worked perfect

Basically, this circuit goes from +5 to ground at all times, until the button is pressed, then pin 10 goes to high.

As to not reiterate some very simple and helpful code, please visit the SimpleTweet Instructable located here.
http://www.instructables.com/id/Simple-Tweet-Arduino-Processing-Twitter

For more detail: Tweety Bouton à l'aide d'Arduino


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut