Recitation 3: Sensors Basics(by: Lifan Yu)

Recitation 3: Sensors Basics (By: Lifan Yu)

 

Hardware Required

  • Arduino or Genuino Board
  • Piezo electric disc
  • 1 Megohm resistor
  • solid surface

In this recitation  we built a circuit including a vibration detector.

Question 1: Vibration sensors can be used in mechanical industries. Factories nowadays use a huge number of mechanical devices in production. Vibration sensors can detect the machines’ rate of vibration. If machines are not running properly or something goes wrong, the sensors are able to detect them. In this way people in charge of these machines can know whether machines are running properly. Also, this kind of vibration detection can help people find out the cause for abnormal vibration. Thus, help prevent damage caused by abnormally running machines.

Question 2: I agree that code is like following a tutorial. Codes control computers and devices connected to them. Code is a kind of language the computer can understand. Computers are

being lead to things by codes because running codes is what computers unconditionally perform. When we want our computers to do certain things, we tell them by coding. It’s just like an instructor teaching students how to do certain things using the kind of language that students can understand.

Question 3: Computers influence us in countless ways. For example, the central computers in meteorological stations computer future weather according to past weather records. People can prepare in advance what belongings to bring in certain weathers. Computers help us have a deeper insight into what’s happening in our world.

Also, we now tend to write and take notes on computers. Computers examine our spelling and grammar mistakes. We are less able to remember certain words and grammars because we rely on computers to correct us.

Moreover, computers help people analyze big data and solve real-life problems. A newly appeared type of “doctor”, is actually computers using database to analyze patients’ diseases and give diagnosis. Their diagnosis are usually very accurate. They may also help doctors understand a patient’s condition better. Human abilities can be extended using computers.

Recitation 2: Arduino Basics (by:Lifan Yu)

September 19, 2019

Recitation 2: Arduino Basics

by: Lifan Yu (ly1164)

Materials:

From Arduino Kit:

1 * Arduino Uno
1 * USB A to B cable
1 * breadboard
1 * buzzer
2 * LEDs
2 * 220 ohm resistors
2 * 10K ohm resistors
2 * pushbuttons
A handful of jumper cables

From cart:

2 * arcade buttons
1 * Multimeter (optional)

Circuit 1: fade

According to instructions I chose the right code example. I connected circuit correctly. However when I connected my computer with my Arduino and circuit, nothing happened. Then finally, with the help of the instructor, I found out that I didn’t chooe the right port in the “tools” column. After choosing the right port, the light can work properly.

Circuit 2: Tone Melody

The process went smoothly. We successfully made the buzzer work. However, a detail is worth remembering: we should put the buzzer’s two legs diagonally on a breadboard so that they exactly fit into the holes on the breadboard.

Circuit 3: Speed Game

I had trouble understanding the circuit diagram at first. I didn’t know that the thing in the middle was a buzzer. I looked through all my things in the Arduino kit but cannot find something like the buzzer drawn in the diagram. My partner said we should try to put a buzzer on it to see if it can work. Then we made great effort to connect the complexed circuit.

However when we uploaded, nothing happened. I checked if the port was the right one. It was. We examined the circuit for about 3 minutes before an instructor came. The instructor disconnected and then reconnected Arduino to my computer. Then the circuit started working. The instructor told us that we must have done something to the Arduino without knowing it, and reconnecting the Arduino can solve the problem

We tested several times whether the circuit can accurately detect the times the buttons were clicked. We first clicked the left button 1 time more than the right button. In the end, the led lit up on the left. Vise versa. Everything was successfully done.

Question1: Examples of me using technology in my daily life are: using my phone to scan QR codes, write certain codes to draw beautiful diagrams and shapes, using apple pencil and a drawing app to draw pictures on ipad.

In this circuit, I used example codes to send command to an Arduino board, and the arduino board control the circuit connected to it and turn the commands of the codes into actual actions of LEDs and buzzers.

Interaction is the process of imputing, outputting and computing of two actors that communicate with each other. The commands sent to the Arduino are inputs. Such as the times we push the buttons in the two player game. The process of electrical currents running through the circuit computing. The process of the LEDs turning on and off or buzzers playing music according to the commands sent to them is output.

Question 2: The push button doesn’t have a large resistance. Without a resistor with rather large resistance, it may be damaged. Also, if the voltage is too high for other components of the circuit, the circuit may be damaged too. Thus,by using a 10K resistor connected in series with other parts of the circuit, it bears most of the voltage and protects the whole circuit.

Question 3: I would use them to create an interactive artwork with a theme of promoting low carbon way of living. When a person stands in front of a LED screen made of thousands of LEDs, they will be asked a series of questions about their daily carbon production. choices will appear on the LED screen. A reflection of he or she will appear on the screen as a lit-up shape. when he or she answers questions, he or she only need to move his or her hands so his or her reflection on the screen can touch one of the answer choices.  After answering all questions, a star-like diagram will appear on the screen to show his or her carbon footprint in different aspects of daily life. LEDs will be put on devices around the area where the person stands. Then diffenent light shows that introduce low-carbon ways of living will be preformed for people with different levels of carbon production(or different kinds of carbon footprint).

Recitation3 sensor-Xinran Fan

    This time I cooperate with a foreign boy. Being a senior, he really had a good command of his computer and that really raised our efficiency. As a result, we tried five kinds of sensors this time!!!

     Variable resistors:

Hardware Required

  • Arduino or Genuino Board
  • Potentiometer or
  • 10K ohm photoresistor and 10K ohm resistor
  • built-in LED on pin 13 or
  • 220 ohm resistor and red LED

Video player

then we decided to change the LED into BUZZLE and make some noise!

Video player

Ultrasonic Ranger:

Hardware Required

Video player

Grove – Moisture Sensor:

At the first , we are quite confused about how is it about, for the components in the introduction is different from which we have.However, we tried to connect it directly, and get a good consequence.

Video player

Infrared Distance Sensor:

sen0143_connection

Video player:

Analog joysticks:

so at the end we decide to choose the hardest one.

To begin with, we are kind of confused for connect which line from all this mess. Under the help of the team next to us, me finally figure out how to handle it.

Question:

Q1:This time we try to change the LED in the first circuit into BUZZLE, we successfully make it. Then we try to change  the LED into a fan (with driver), but we could not cross the obstacles of coding. Moreover, I came up with the idea that we can combine the Variable resistors and Moisture Sensors and make a machine to compute how much water we need when we water the plants.

Q2: Because the language for coding is so simple and straightforward. the computer will compute just follow these lines, which hold a clear logic. So once you get it clear that how to read it,  you can just consider it as a recipe or tutor.

Q3:From one side, compute is the most important helper for modern people. It undertake a lot of labor and assist the advanced science. From other side, its convenient and efficiency trap some people in the virtual world. All in all, the huge influence it give to the human society is definite.

Group Project: Individual Reflection by Isabel Brack

Interactivity

In reading What Exactly is Interactivity? , I learned interaction involves two actors, which together have an input, processing, and output. The author explains interaction through an analogy of two people communicating. One person speaks and the other listens, thinks, and reacts (5). In this analogy speaking would be equivalent to an input (for the second person), listening would be taking in the input, thinking would be processing the input, and reacting would be the output. Fredegund has three steps to complete after Gomer’s input, listening and talking in all of the information, cognition and forming their own thoughts, and responding with words (5). In addition to this analogy, What Exactly is Interactivity? explains that there are different levels of interaction, some being less complex and some being more complex(6). Physical Computing’s Greatest Hits (and misses) introduced many examples of physical computing and interactive projects. The article explained how many projects especially musical or entertainment projects are interactive, showcasing projects like “Meditation Helper,” a device that takes in inputs like breath rate, posture, and resistance on a person’s skin which the machine interprets as indicators of certain meditation (13).  This machine was inspirational for our futuristic machine because it helped us realize the possibilities of sensor inputs being processed as moods and feelings. Although it is not really possible right now, it has more potential for a future interactive device because the very basics of it are established in the “Meditation Helper.” In the passage Physical Computing – Introduction, O’Sullivan and Igoe, the authors explain the basics of physical computing and circuits, including input, processing, and output. The authors explain that interaction is about listening, thinking, and speaking or the computer equivalent of input, processing output. They also describe how digital inputs and outputs compared to analog inputs and outputs.

2 Researched Projects

  I researched analog/ mechanical wall clocks for my less/non-interactive project. According to the interactive definition consensus among my group and among the readings, interaction contains input, processing and output. There are also different levels of interactivity. Mechanical clocks have three requirements to keep time (normally through gear mechanisms), to store potential energy, and to display the time (How Do Analog Clocks Work?).  How Do Analog Clocks Work? discusses the most basic of a mechanical clock, an hourglass. This device has a source of energy, gravity pulling sand down, displays time through the amount of sand left, and keeps consistent time through a constant amount of sand being able to fit through the hole. The mechanical clocks I researched would not completely fit the definition of interactive. There is no complex interaction between two actors. Although some mechanical clocks have input of winding or flipping the hourglass, and all mechanical clocks have an output of displaying time, there is no real or complex processing of the input to produce an output. Especially in the simple example of an hourglass, the device does not process the input to create an output uniquely based on the input(at any complex level). 

In contrast, I researched Dance Dance Revolution the Wii or arcade game for my interactive device. Specifically I looked at a DIY version that use Arduino to build and program their own version as it was more articulate about the input, output, and processing. The article “Building a DIY Dance Dance Revolution,” explained the building process and a built behind input, processing, and output. Specifically, the creator explained building the pressure sensors for the DDR (Dance Dance Revolution) game. The pressure sensors are placed in a mat under wooden squares and respond to pressure applied. When pressure is applied they send signal to the Arduino system essentially acting like a keyboard, with only four keys. The pressure indicated a button press and sent a keystroke to Arduino, which then processed the keystroke interpreting it and telling the visual display to show the player either hit or miss that dance step. There are many factors like timing that also are considered. This I consider to be an interactive device as there are two actors, the human and they game system, there are also inputs, processing, and outputs. The processing is comparatively more complex that a person and their refriderator’s actions, as it includes interpreting multiple types of input (four different keys) and processing the input compared to the timing of the game to decide whether the output is a his or miss for each step.

Group Project Watch Alfa

Regarding my groups project, the Watch Alfa we focused most on a variety of sensory inputs to establish our device. The device is intended to take in an extensive amount of inputs, interpret their data as specific moods, feelings, and health status, relate those moods, feelings, and health statuses, to specific meals, and then instruct a smart kitchen to cook the meal (the smart kitchen basically acts like a smart home or Ihome but for a kitchen, cooking and preparing whatever meal it is instructed to). Each step of this device’s interactions, input, processing, and output are all complex. We focused on articulating various sensors to capture what information someone would need to decide what feeling, mood, or health status a person had. And we included sensors like, chemicals, hormones, sounds/voices, temperature, heart rate, breath rate, light, and blood pressure.  During the presentation we showcased three possible scenarios of Watch Alfa responding to feelings (homesickness), health (fever/cold), and mood (a romantic dinner). Although the presentation featured the device talking, in reality the speaking would only be for certain scenarios like the date night, where the device consulted with Kris (the man who forgot his anniversary).

The article, Physical Computing’s Greatest Hits (and misses), sparked an idea in our group, reminding us of the various sensor inputs that a device can use. Specifically “Meditation Helper,” helped our group thinks about a futuristic device we would want to create, because right now devices cannot really interpret mood or feelings well, but in the future, anything is possible. Combining the goals of using interesting sensors to gather inputs and creating a device that processes feelings and mood, the idea was born to have a device be able to sense moods and feelings. As a joke, one member suggested it make people food based on their feelings, and we took that idea and expanded on it, discussing possible specific inputs and corresponding outputs along with scenarios to showcase the variety of moods, feelings, and health responses the device has. To simplify the device, the inputs would be information taken from many sensors on the wrist attachment of the device(see sketch and device below). The signal would be sent to the modem (which for our presentation was a headband and antenna on the device actor’s head). The processing would be the interpretation and cognition of those inputs, taking that information and matching it to stock moods and feelings that would then correspond to certain meals, mostly comforting the user. The output would be actually sending the signal to the smart kitchen and producing the meal. And the two actors would be the user and the device itself (both the wrist sensors and its connection to the processing unit). Compared to the two research projects, unlike the mechanical clock, our device has complex processing like interpretation of many inputs and decision making to decide what feeling or mood the person is having. Also, processing includes identifying the mood/feeling and recognizing which meal to prepare for the user. Compared to the DIY DDR, both have sensor inputs and process relatively complex information. DDR processes timing and keystrokes matching up to dance steps. The output of our device is a bit more complicated as it involves creating a more complex multi ingredient product, a meal, where as DDR’s output is the display of either a hit or miss (although still relatively complex with the display on the screen involved). Our group process started with early discussions of our researched interactive and non/less interactive devices that lead to brainstorming for our personal device. We discussed a lot about AI type devices and devices that are like personal assistants, but we wanted to stray away from spreading existing assistive technology like Alexa and focus on a more specific niche food. I recently read part of a  book called Omnivore’s Dilemma by Michael Pollen  for a corse on Environment and Society, which highlighted an everyday problem of especially Western societies like America and increasingly China as well that lack a culture around food. This causes a dilemma (hence the name) about what to consume on a daily basis. People often have to think about the problem at least three times a day, even causing anxiety about what someone should eat, and what a healthy meal really is. This device can hopefully aid in reducing anxiety coming from the omnivore’s dilemma, especially while it reads health imputes and moods, deciding what to cook for you instead of you worrying about what to eat and what healthy really is jumping on any new fad from food experts.

In conclusion if I would make any future alterations to improve our device, I would also focus on the smart kitchen to develop that futuristic device more, because although our intentions with our current device are to decide what meal to make you and cook it, we focused on the input and processing more than how the food could be made by this device.

A3 Poster (horizontal):

A3 poster for Watch Alfa

Sketch of Device:

Sketch of Device Watch Alfa

Main Device:

Watch Alfa the Device

Recitation2 Arduino Basics Clover-Xinran Fan

Materials:

From Arduino Kit:

1 * Arduino Uno
1 * USB A to B cable
1 * breadboard
1 * buzzer
2 * LEDs
2 * 220 ohm resistors
2 * 10K ohm resistors
2 * pushbuttons
A handful of jumper cables

From cart:

2 * arcade buttons
1 * Multimeter (optional)

Circuit 1: Fade

At first, I and my partner would like to make this circuit respectively for we think it should be quite  easy. I was kind of confident glancing at the              , for I have become familiar with it after last Wednesday’s workshop, and I even simplified the circuit (take away two lines) myself. But just at the moment when I’m trying to connect the Arduino with my computer, bad luck hit on me. No matter how I trying to modify the program or change the circuit, it just did not work. I even got help from three teachers! Finally, we had to admit my line had been broken. At that time, seeing most of the other students had finished the first missing, I was quick worried and anxious, Thankfully, my roommate offer me her kit, while the professor trying to give a new one really patiently.

Video Player

picture

Circuit 2: toneMelody

Then we begin the second circuit. That wasn’t hard but I really meet some problems on understanding the code. At the beginning we forget to copy the code under the new tap. But thank to the help from assistants we figured the problem and successfully made it.

Video Playe

picture

Circuit 3: Speed Game

To begin with, we did not know where to find out the tap of the resisters and could not put the bottom into the breadboard. This problem really took us a long time for we had to change the circuit. After that we continued making mistakes until the class was over. But we did not want to just give it up, we kept on working on it after the class . Finally, we got our ‘game’ done!

Video Player

Reflection:

          Though we met numerous of problems  today. But they also expressed how much I learn. There was nothing can give more achievability than crossing all the obstacles to “light the bulb”.

questions:

Q1: As far as I am concern, the interaction is the communication and reaction between two roles. The procession comprise “input”,”computing”,”output”. like in the recitation ,we always use Arduino to send the digital or analogue information, that is input. While the electric current go through the circuit is the computing ,and the action of the effector is output. But the machine and the human can always change place. For example, when you hear the bell ring and go to open the door. That is a reversed procession.

Q2:For the resistance of the push Botton is quite small, could not bear the 5 voltage. So we need a relative big resistance to share the voltage and protect the other component in that circuit.

Q3: If I have 100,000 LEDs, I will  use them to make a number of festival decorations for the poor , and I will call off more students to join us. Though just some small  twinkle , but I still hope it can light someone’s dream.