Professional Documents
Culture Documents
johanna quinn
paint your what out? 4
key features 6
lessons 7
hardware 8
source code 9
paint your what out?
This handheld brush device helps artists and designers control their heart
rate while painting. For some people, painting is an activity used to relax
the body and mind: tension or stress can sometimes inhibit a painter from
achieving a relaxed state. The idea behind ‘Paint Your Heart Out’ is when
a person gets stressed or anxious, leading to an increased heart rate,
a haptic feedback will send a reminder that it is time to relax your body.
The paint brush is interchangeable and the user has the option to use the 4
device with markers, pens, pencils and even different sized paint brushes!
key features
When your thumb is placed on
the heart rate sensor, it will detect
how fast your heart is beating
int sensorValue; // holds the incoming raw data. Signal value can range //sensorValue = analogRead(pulseSensor);
from 0-1024 // map it to the range of the analog out:
int Threshold = 600; //outputValue = map(sensorValue, 0, 1023, 0, 255);
int outputValue = 0; // change the analog out value:
static boolean serialVisual = false; //analogWrite(motorPin, outputValue);
void setup()
{
// wait 2 milliseconds before the next loop for the analog-to-digital
Serial.begin(9600); // converter to settle after the last reading:
pinMode(motorPin,OUTPUT); //delay(2);
}
}
}
void loop()
{
sensorValue = analogRead(pulseSensor); // Read the PulseSensor’s value.
//Serial.println(sensorValue);
outputValue = map(sensorValue, 0, 1023, 0, 255);
Serial.println(“Motor/LED On”);
analogWrite(motorPin, outputValue);
delay(500);
} else {
digitalWrite(motorPin,LOW); // Else, the sigal must be below “550”, so 9
“turn-off” this LED.
delay(500);
Firstly, we need to build up your heart rate to make sure you’re
alive. Try doing five to ten star jumps or push ups to get the blood
pumping
Go ahead and put some paint on your paint brush, with a colour
of your choice. Make sure you wash the brush first if you wish to
use a different colour
Switch on the paint brush and paint away! Try painting patterns
and shapes that make you feel relaxed and wholesome
When you feel the brush vibrate, try to control your breathing and
channel your inner Pablo Picasso