As computing becomes more ubiquitous in our objects, designers need to be more aware of how to design meaningful interactions into electronically enhanced objects. At the University of Washington, a class of junior Interaction Design majors is exploring this question. These pages chronicle their efforts.

Wednesday, December 14, 2022

Heartbeat Lamp

The Heartbeat Lamp allows users to easily visualize and monitor irregularities in their heart rate. With the input received by the Pulse Sensor, the color of LEDs will change according to the heart rate of the user. A low heart rate (below 60 BPM) will result in blue blinking LEDs, a normal heart rate (60 to 100 BPM) will blink green, and a high heart rate (above 100 BPM) will blink red. When the Pulse Sensor is not in use/is disconnected from the user, the LEDs will default to a rainbow.

Libraries used:

1. PulseSensor Playground > Getting_BPM_to_Monitor

2. Adafruit Neopixel > Strandtest

These libraries were combined to access the BPM values and have the lights blink in different colors, speeds, and ranges of individual LED lights accordingly. 


Sample of code for the brighten/darken functions which let us achieve the "blinking" effect.

Code which addresses LEDs according to input received by PulseSensor.


https://www.youtube.com/watch?v=BWRv4IfOzfE&feature=youtu.be




No comments:

Post a Comment