Week 13
Final Presentation
The heart rate clock was driven by heart rates. Poetically illustrates the relationship between people's physiological differences, the pace of life, and the current time system. The heart Rate Clock shows the different flows of time by connecting the pulse sensor to the clock's speed, making the difference can be observed.
This is a sketch for introducing how to control clock speed. (So you can connect to the data, the value from slider or other sensor!)
So what I do here is get the time from the computer clock in setup first, and you will notice the time stop. The reason is that the setup() only calls this function once, giving us time at the first moment we run this sketch! If I put the hour(), minute(), and second() in the draw(), the time will refresh itself, which means that we can’t control it!
After that, we need to give it the power and the rule to let it move by itself. So the part starting from “s+=1” is the power(adding one to the second ), and the rule is if the second gets bigger than 59, the minute plus one, and makes the second get back to 0.
And also, because the frameRate = 60, if we didn’t assign any number. If we change the number to 1, it will only add one for every single second. At the same time, if we map the value to the frameRate, we can get a clock running at different speeds!