Monthly Archives: February 2011

Arduino: Ethershield TwitterButton

I combined the push button example and the tweet library example to create a “twitterbutton” which will tweet a message and alert my iphone when a button is pressed. I needed to get a Auth code from Twitter to allow the Arduino to send a tweet. The instructions are straight forward and are on the Tweet Library page. The alerts are sent to the iphone because I “follow” the twitter account front another account and have it set for mobile alerts. All the testing are under Twitter account settings.
Note: Use a 10k resistor as a pull down for the push button (brown, black, orange, gold).

You will need to get the Twitter Library 1.2.2 and put them in the ~/Documents/Arduino/libraries (Mac) or My Documents\Arduino\libraries\ (Windows). Also, you will need EthernetDNS library and put them in the same folder. Arduino Playground Reference TwitterLibrary.

Library-Twitter-1.2.2

ArduinoEthernet

SimplePost

TwitterButton


Arduino: Ethershield

Just got a Arduino Ethernet Shield from ebay. It uses a Wiznet W51000 chip. Its pretty easy to assemble to the Arduino Uno board, you just line up the pins and snap it into place. I also used the Webserver example to test it. The webserver example display the value of the analog pins A0 to A5 on a webpage.


Arduino: WiiChuck Servo

I used the code from this website to control a 3 wire servo. The todbot blog seems to have lot of projects. The wiring is done pretty much the same way as the WiiChuck before. The Servo pin is connected to D7.

Wii NunChuck
Red – 3.3V
White – Ground
Green – Analog In 4 (A4)
Yellow – Analog In 5 (A5)

Servo
Red – 5V
Black – Ground
White – Digital 7 (D7)

wii_nunchuck_servo.pde


Arduino: WiiChuck

I used the WiiChuck.h library and the WiiChuck example from the same page to get the data from the Wii nun chuck.

white – ground
red – 3.3+v
green – data
yellow – clock

Instead of cutting the wires of the nun-chuck, I used a Wiichuck Adapter from FunGizmos. It makes it easy to connect the nun-chuck to the breadboard. The data collected can be seen in the serial monitor for the Arduino software or can be displayed using a Processing software example of a RGB cube. All of this can be found on the WiiChuckClass section in Arduino Playground.

WiiChuck.h, WiiChuck.pde, WiiChuck-RGBCube