3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Give Your Cat Twitter Powers

Step 3Connect your cat sensor to Arduino, and Arduino to your PC

Connect your cat sensor to Arduino, and Arduino to your PC
We'll use an Arduino board to sense the state of your cat sensor. Instead of writing code for the Arduino board directly, we'll keep all of our logic on the PC in Processing. One easy way to make that possible is to load the Firmata firmware onto the Arduino board, since there is a nice Firmata-based library in Processing. You'll find StandardFirmata under Sketchbook->Examples->Library-Firmata->StandardFirmata on Arduino0015.

Once you've uploaded the firmware, it's time to put the circuit together. There really isn't much to it - we'll use an internall pull-up resistor in the chip, so all you need to do is plug the ends of the two wires you soldered onto your switch into your Arduino board: one goes to ground, another to a digital input (I'll assume #2 in the rest of the tutorial).

Alternatives:
Since all we need is a single bit of discrete input, we could also achieve this with any other USB I/O interface such as a USB Bit Whacker or even a Keyboard breakout board.
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Aug 30, 2010. 2:32 PMCatch_22_ says:
just letting other people know, the second image was made with Fritzing it's a great editor and has a lot of different uses

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
6
Followers
2
Author:bpunkt