Lab 1
Goal: Use I2C protocol to communicate with a color, gesture, and proximity sensor (APDS-9960) from a microcontroller
Lab 2
Goal: Communicate with a digital potentiometer chip from a microcontroller, and will use the digital pot to control the loudness of a speaker playing a tone from the microcontroller.
Figure 1
Figure 2
I set up the wiring for AD5206 potentiometer and a speaker on the breadboard (Figure 1). I included SPI library, and selected pin for the chip pin (Figure 2). However, I didn't hear the tone fading in and out. I'm not sure why. I even rewired everything, but still couldn't get it to work.
Project 2
Our project changed a lot based on the feedback we got from last week. Our original idea was to make a stress relieving device that releases stress as well as improving breathing technique. Knowing that people don't synchronize squeezing the balls and breathing, we thought it was necessary to combine the two actions. However, that's the concern/question most people raised. Through testing it out and more brainstorming, En tung and I decided to pick breathing as an action/motion to further our project into a type of performance instead of making squeezing ball games. We both didn't like games, and were interested in exploring the possibilities of making a DIY breaking sensor. From researching online, we got inspiration from this project, so we decided to use photo-resister and elastic band to make the breathing sensor that measures the expansion on user's chest.
We want to use P5.js to sketch a leafy plant (P5.js Sketch Code: https://editor.p5js.org/Jenny-yw/sketches/IUQEyAMQ_ ). As we breath out, the leaves grow and fall, which is like the cycle of life. As you can see in the video 1, the data from the photocell is controlling the leaves growing out and falling. The less light it gets, the more leaves come out.
Video 1
Then, we used tapes to make a quick prototype to see the range of the value we get from breathing (see Video 2). We were worried about the range being small from the movement, but it actually worked fine and the range was about 0-60.
Video 2
Here's our first working prototype below!
What's next?
We need to think more about the user experience and device design. Our goal is to help people to breath better and have a calming effect when looking at the leaves falling.
Comments