Lab ActivitiesThis week's lab covered quite a few subjects:
The first exercise was to wire up two LEDs with a switch and program them to alternate when the switch is on and off (left image above). In effort to understand the code, I changed the LED output to both turn on when the switch is pressed (right image above). Question: Why does the digital input wire have to go on the ground side of the switch and not the power input side of the switch? If the circuit is effectively a loop, wouldn't the placement of the wire affect the timing of reading rather than the overall functionality of the switch? There was an optional exercise in the lab to wire a speaker for audible output experience, so I gave that a try. At first I simply removed the yellow LED and plugged in the speakers to their respective positive and ground connection points and altered the code, but that did not work. A couple of us got together to troubleshoot by using an example built into the Arduino IDE, during which we established that the speaker works properly and the wiring was not the issue. Next, we turned to troubleshoot the code without removing the LED to have a visual indicator of switch reaction. First we tried turning the speakers on and off with the "noTone()" function when the switch was open and the "tone()" function when the switch was closed. This did not yield any results. We also tried removing "pinMode(8, OUTPUT)" from the setup function, which also did not play the speaker. It was Nasif who suggested adding a "delay()" function after the "tone()" function, which worked (see video on right when program includes "delay(100);" after the "tone()" functions. This was confusing because another tablemate, Chloe, was able to run the program without the "delay()" function. Our thinking is that perhaps because she is using a 5V Arduino Uno, there is more processing power in the microcontroller, whereas the Ardiuno Nano 33 IoT might need a moment to process the different functions being requested?
Another exercise that I really enjoyed was mapping the force sensitive resistor input readings to the LED's brightness output. There are a lot of interesting things that could be done by manipulating the input value range in relation to the output. This exercise also reminded me a lot of Devan's switch from last week. Beyond pressure and distance based variables, this could extend to the time spent engaging with an interaction (ie, if someone spends more time standing in front of a projection, it becomes clearer, or perhaps output becomes more complex. Further Developing the SwitchAfter Yeseul mentioned last week that my switch was essentially an exposed potentiometer, I decided to leverage this element of my design and make the most out of it. Beyond the LED output, I hoped that the varying input could also produce a ranged audible output. There were a couple steps that were involved:
Self reflection from this week's labs:
It seems that I find inspiration and possibility for a project in the technical information I know, whereas some folks in our cohort start with a potential interaction in mind and seek out the necessary information. I don't think one or the other is necessarily better, but I can't help but wonder if I am limited to the technical knowledge I have? What can I do to think more unconventionally and beyond the scope that I am already within? Comments are closed.
|
Blog posts and other documentation from NYU ITP classes
Categories
All
|