Documentation 10

// Final Project Idea

Time, according to Bergson in his famous work Time and Free Will, should be a qualitative multiplicity instead of a quantitative one that is solely for utilitarian purposes.  I am envisioning my project to be an interactive installation that can, if possible, reify the concept of “Durée” in Bergson’s words while it both embodies the qualitative and the quantitative aspect of time. Thus the clock I am constructing here can both show the individualized, multiplicity of consciousness with a hand moving according to the user’s hand and present the physical/quantitative time for functional purposes. By using a pulse sensor, I will link a servo motor which drives a fourth hand in addition to the 3 original hands of the clock. The 4th hand spinning across the clock will be the visualizor of the heterogenous relation of individual psychic state.

In addition to the physical fabrication, I am also thinking of setting asynchronous serial communication with the board receiving the sensor’s data as serial input and transforms the data (user’s heartbeat) into synced melody that jumps between 7 notes. 

//Resources

-programming
Arduino real time clock: https://itp.nyu.edu/physcomp/labs/lab-using-a-real-time-clock/
using the pulse sensor: https://electropeak.com/learn/interfacing-max30102-pulse-oximeter-heart-rate-module-with-arduino/
https://lastminuteengineers.com/max30102-pulse-oximeter-heart-rate-sensor-arduino-tutorial/
stepper motor code: https://create.arduino.cc/projecthub/garysat/arduino-nano-stepper-motor-clock-ca1c79
pushbutton code: https://github.com/ITPNYU/clock-club/blob/main/Microcontroller_Time_Setting_Methods/PushbuttonTimeSet/PushbuttonTimeSet.ino

-fabrication
Making clcok hands: https://itpnyu.github.io/clock-club/Making_Custom_Clock_Hands/
stepper controls: https://create.arduino.cc/projecthub/garysat/arduino-nano-stepper-motor-clock-ca1c79


//Ideation/Visualization

Here are some drafts of the clock’s surface. I am imagining the 2 hands representing the quantitative physical time while replacing the hand showing seconds with the dot showing the movement according to the heartbeat.










//Inspirations:



//Questions

Conceptual questions:
-Can I use an old clock and add something to it instead of build a clock all by myself?
-Should I remove the melody part for time saving purposes?

Technical questions:

-In the example sketches I saw for MAX30102, they all use Serial.begin (115200). Can I set it down to Serial.begin(9600)?
-what does IR value mean?

Please ignore this
-At first nothing comes out from my serial monitor after I wired the circuit and run the example sketch from the sensor’s library. I don’t know what is going on. According to the code, if the sensor is not detected, at least it should print a line saying it is not detected, but in my case, nothing is showing in the monitor.
-the library I’m using: Sparkfun MAX3010x Pulse and Proximity Sensor Library
Did I get the wrong library that does not match the sensor I am using?

-from a lot of examples I have seen, they are all using 5v to power the sensor. I was using 3v3 and it worked ok. Should I use 5V instead?



I fixed the problem because I noticed I was using the wrong side of the sensor. I rewired the board like this and it worked.


So I used the examples from the MAX30102 library to visualize the heartbeat first.

I also wrote a sketch to mock up the clock interface:
https://editor.p5js.org/hz1805/sketches/oCqjwEIfb

And I made send the sensor data as a serial input into the p5 to make the dot move according to the heart rate. Yet sometimes the dot appear while sometimes it doesn’t...And it is not moving like what I am imagining. I added constrain but it didn’t work.


I managed to do so with an arc, but now the problem I am having is that once people’s hand is on it, it is constantly at the same location because people’s heart beat is mostly the same.