| Week
6: Midterm :: "Reflect" :: Materials::
:: Links :: :
http://a.parsons.edu/~rkeller
- dimmer code :: Building the Casing :: I had two days to build the casing and without any prior knowledge to how to carve or bend wood, I decided to use an crafty approach by doing a plaster mold with a wire-mesh under layer.
:: Building the Components ::
I used 110Volts AC that left the dimmer and went into a transformer that brought the voltage down to 12 Volts for my halogen bulb.
#2 Hooking up the velleman kit to the stamp and testing with a POT and my halogen light. I used a 100K POT to interface with the dimmer unit. Their is a 4.7 µf capacitor that runs from the input of the dimmer kit to the input of the stamp I/O pin. CLICK HERE TO SEE DIMMER VIDEO. Thank you Elaine for gettin it working with the POT.
#3 Getting the light to work with my IR sensor was a tough trick. I had to call in Marko for help on this one. The simple 4.7 µf Capasitor to the stamp was not sufficient. We used a 44 µf capacitor; and then added a 1.2k resistor to the ADC chip. By adding a higher number capacitor the light became a more even and smooth transition. We had to message the numbers in the code because the numbers were so jumpy, thus making the light jumpy. We ran a pulse width modulation (PWM) of 50 out of PIN 8 to get it working. See the pictures below.
BASIC STAMP CODE FOR DIMMER, SOUND and IR :: Schematics ::
|
|||||||||||