Recitation 8 – Serial Communication – Sagar Risal

Materials: 

Arduino Kit 

Processing

Serial Communication

In this recitation we I had to use Processing and Arduino together, both communicating with each other to work on both on Processing and Arduino.  

Step 1: 

For this step I had to make an “Etch a Sketch.” I had to use Arduino to input values through a pentameter to go through to processing. To do this I had to use value inputs so that the pentameter would translate to movement in processing. Once the values could be translated, all I had to do was tell processing to draw every time it moved in x and y intercepts, and after that I was all set. 

IMG_4435

Step 2: 

In this step I had to create a musical device on processing and then have it play through Arduino. To do this I had to add variables to processing so that when I could click the mouse a sound would play, depending on the x and y coordinates. I also had to use pitches example from Arduino so that it could know what tones to play when the mouse was pressed on Arduino. 

IMG_4423

Final Project – Project Proposal – Sagar Risal

Project Proposal

LED Biking Jacket 

This jacket would be primarily for bikers who like biking at night since the jacket would be able to alert other bikers as well as cars where they are on the road. I researched on which field wearable LEDs could be used, and biking was one where there is a lot potential usage of this technology. There are many accidents regarding drivers not being able to see bikers, and while there are jackets that have reflective material on them, there aren’t ones that can tell which direction you’re turning, which would help alert people behind you. this jacket would have LEDs on the back of the jacket that one could control to tell in which direction they are going as well as alert drivers of their position. 

LED Pattern Sweater:

The idea behind this sweater is that the user can pick and choose different moving pattens or designs on their sweater to spice up their wardrobe. This interactive sweater is inspired by the different types of light up sweater, that while they do blink lights, they don’t interact with the user itself and can end up being pretty boring. With this sweater the user would be able to interact with sweater, by being able to change the pattern of the LEDs on the sweater as well as make it move to add an extra aspect that one can bring to their fashion. 

LED mood bracelet:

This project can be used by anyone but would be mostly catered toward children with issues of anxiety. This bracelet is meant to tell you when your stress level might be too high and you might need a break. Though there are many bands that do this, this one would show you with a two simple colors, red and green, that your stress level is too high. This would be very useful for kids since they don’t yet fully understand how to handle their emotions and a simple bracelet that tells them to cool off would be a huge help in their lives. The bracelet could even show some relaxing light patters to help the child cool down when they are in these stages of stress. Using a heartbeat sensor it would be very easy for anyone to use and would be a big help to kids who are still too young to know what to do in these very stressful situations. 

Recitation 7: Function and Arrays – Sagar Risal

Materials:

Processing App

Function and Arrays 

This recitation consisted of using the for statement and arrays. There was of course the simple coding of making the shapes, but then we experimented in how putting the for statements in different locations can change the way the code looks, by either not repeating or repeating multiple times.

Step 1: 

All I did in this step was create a rectangle under one void, so I could easily input the values that I wanted for the rectangle.

Recitation 7 – Step 1 Vid

Step 2: 

For this step I created the for loop to create the rectangles in different sizes and colors randomly around the screen. When I did this in setup, it worked fine, showing the 100 rectangles, but when I put it into draw it never stopped. The draw function repeatedly drew 100 rectangles constantly.   

Recitation 7 – Step 2 Vid

Recitation 7 – Step 2 pt.2 Vid

Step 3: 

For step 3 I had already created an array in step 2 so I didn’t need to change anything else. 

Step 4:

In step 4 i had to make the squares move while in the boundary of the screen, for this I used an if statement, so that the squares could bounce of the walls. All the other code stayed relatively the same, I just to adjust some of the x and y speeds. 

Recitation 7 – Step 4

Question 1: 

The difference that I found was that when I had the code in setup, it did the action and did not repeat. Loop on the other hand kept repeating and repeating. I understand this to mean that whatever you put in loops will consistently repeat, while in setup it will just one the code once and stay in that position.

Question 2:

Arrays are very useful for storing multiple variables and being able to easily access them. This would be very useful in a project with many different inputs or a lot of data, so that the data could be very easy to manipulate to what you want to do with it. 

Final Project – Preparatory Research and Analysis – Sagar Risal

Preparatory Research and Analysis

The Chronus exhibition was a very interesting and different exhibition than the ones I have previously gone too. It was very abstract with little to no explanation to what they art pieces meant or what they were supposed to convey. Some were pretty self explanatory, like a line of gears slowly turning other gears which would move less and less as it went further down the line, which caught my attention but which I didn’t find very interesting. There was very little cohesion in the exhibition with many of the pieces seeming like they didn’t really have a purpose except to show that they were “technology-based”. Even the technology in the pieces did not seem that advanced to me, but I’m sure that there was probably more technology going on than the pieces would put on. There was one piece in particular that I found very strange in which a machine would move along a track and randomly pour water at pieces of trash. I observed this machine for several minutes trying to figure out the message or the feeling that the artist had in mind when creating it but I couldn’t come up with anything. It was just such a random piece that it was hard to piece together the idea of what the message was behind it. I felt like in other exhibitions there is more concrete or interpretable message that the pieces have, but with this exhibition it was either very concrete. like a film projecter painted white showing a movie, or something more on the lines of the machine that pours water on trash. I thought most of the pieces were pretty interesting but the lack of cohesion with many of the projects made me feel like I had a more difficult time connecting to them then a regular art exhibition that I have gone in the past. Overall I thought it was very interesting to be able to see a technology-based art exhibition but my lack of understanding made me feel like I couldn’t fully enjoy the pieces. 

One idea that has really stuck with me throughout the year is lights and how well they can serve as an interactive tool. Obviously there is the very simple interaction of turning a light on and off, but there are also more intricate ways to interact with lights, like having them turn to different colors or display certain patterns. The are endless possibilities. The idea that stuck with me about lights was the ability to display them on your body as sort of wearable LEDs or something that could attach to your clothes or accessories that you yourself could control. Whether you could control the color or the certain way the lights moved I was very interested in the idea of wearable LED’s. I believe that it offers a lot of option for the user to interact in an intriguing way with the lights and can allow for a lot of unique creations. 

A project that I found that had a wearable LED/light element was the Nemen LED jacket. The jacket focuses less on the interaction of the wearer and the jacket and more on how the jacket looks. The jacket is very stylish and looks like a high end winter jacket which makes the LEDS inside the jacket give it a nice aura. The jacket has the LEDs hidden inside the jacket so there is wires sticking, it’s just a very clean look that is enhanced with the addition of lights. I found this jacket a good inspiration for me because of the nice look it had, while still dealing with hardware, which is sometimes very difficult to do. The second project that also gave me a lot of inspiration to work with LEDs is the Pix Backpack. This backpack has a large LED screen on the back which when turned off would look like any ordinary backpack, but when turned on it has the capabilities to display images and even short clips. The screen does not have many pixels but the LEDs look very nice on the backpack, and the addition that you can make your own designs and display it on the backpack adds a very cool interaction between the wearer and the backpack. I thought the backpack was a perfect blend of how to make a very practical and nice wearable LED accessory as well as add a level of interaction between the wearer and the backpack. 

Both projects I mentioned above were able to combine both a nice look and an interactive display. A project that I didn’t think really pulled off the look of a regular jacket is “The video coat from cathode corner”. This jacket, while still being a very impressive feat of technology, looks very chunky and ugly. Since the LEDs are outside of the jacket it doesn’t integrate nicely with the jacket and ends up looking out of place. The actual function of the jacket is very impressive, being able to play videos around the body, but the clunky design fails to make this project both a good combination of a nice look and technology.

Back when we did our first group project I defined interaction as two parties responding to certain actions that the other does to the other. I agreed a lot with Crawford’s idea of levels of interaction, which stated that “By using measures, rather than the simple either/or proposition, we make it possible to accept that anything can be interactive and simply discuss the degree of interactivity subjectively.” Basically there is interaction everywhere, but it is the level of interaction that makes it special. For an interactive experience to be successful both parties have to be actively engaged in what the other party is doing and be able to come up with a response to what they did. A lot of interactions can be successful, that doesn’t necessarily make them interesting, this leaves the criteria of interaction broad, but at the same time allows for a greater level of distinction between different types of interaction.  

Recitation 6: Processing Animation – Sagar Risal

Materials:

Processing App

Processing Animation 

This recitation consisted of several exercises of trying to use the basics of animation on processing. I thought it was pretty difficult since there were a lot more that you had to account for compared to the last recitation which was just a static image. In this recitation we had to figure out how to make objects move certain ways and change to certain colors. This was a lot more difficult than I initially thought, which resulted in me reading a lot of forums on the processing website that explained how to use certain commands. 

Recitation Exercise: 

For this exercise I thought it would be interesting to change the background of my previous sketch of a dog, so that every-time you clicked the mouse the background would change colors. 

Step 1 

In this step I just had to make a circle, which we already learned how to do last week, so it was very easy.

Step 2:

This step consisted of animating the circle to expand and contract. For this I had to set different variables for the radius and have it contract and expand once it hit certain values. 

Step 3: 

For step three all I had to do was have the stroke of the circle change color as it expanded and contracted. For this I had to add another variable for the color and then insert it into the code for the stroke. 

Step 4: 

This step required me to add some sort of interaction with my keyboard so what I did is code the “up” and”down” keys to expand and contract depending on which one you pressed, and I made the “right” and “left” keys to pause the animation. This required if-else statements  for the keys so that when pressed they would do their intended actions. 

Documentation:

This was a very arduous recitation, since it took me a long time and a lot of researching to finally get certain parts right. What I learned is that there is a very big community of people who code and the internet is a good place to find many of the answers you’re looking for. Even though the if-else statements are fairly simple to use, they’re easily my favorite to use, since they offer interactivity with what you have created.