The following are supplements to the report.
Have a good break everyone,
For this project, I decided to play with the nunchuck that comes with the Wii. The Wiichuck uses the I2C protocol, which is a common method of transmitting information. The Wiichuck provides many inputs with a built-in 3-axis accelerometer, 2-axis joystick, and two buttons.
I found the following site, which provided instructions on how to connect the nunchuck to the Arduino. I bought the connector shown on the site. The site also provides a small library for communicating with the Wiichuck.
This machine has 4 states:
[FSM diagram to come]
Arduino Sketch: FSM_WiichuckWithLED
For the mechanical automaton, I bought some 20 gauge aluminum wire to make the parts, somewhat inspired by the ones shown in class (Arthur Ganson’s machines). I really like the fragile yet intimate feel of the machines.
As someone who works in code, this was more or less a failed experiment because I realized how hard it was to create gears using wire that work with each other. It was fine creating each part by itself but the alignment is very hard to achieve by just bending the wires. Nonetheless, I have a collection of parts that do interact and transform mechanical movement. I also spent a little time trying to create parts out of foam core.
I don’t have access to a camera right now but once I do, I’ll upload pictures of the little gadgets I created.
A bug that only crawls when in the shadows.
I used a photo resistor as input and a combination of a TIP-120 transistor, diode, and 9V battery to power the motor.
Arduino Sketch: photo_transistor
My Google spreadsheet with links and prices
For assignment 4, I used a potentiometer to control the strength of the green LED while using a digital switch to increase the strength of the red LED.
Potentiometers, or pots, provide variable resistance based on the rotation of the dial. Potentiometers usually have three spots to connect wires. From left to right, the first goes to power, second goes to analog pin, the last goes to ground. The amount of voltage to the analog pin depends on the rotation of the dial, from 0 to 5V. http://en.wikipedia.org/wiki/Potentiometer
Arduino Sketch: mti_analog_led
Code also has segment for blinking color mixer