Back to Parent

The algorithm we used to determine the feeling of the user was first finding the user’s heart rate with the sensor and the Arduino. Most of the computation was already done in the PulseSensor_Amped_Arduino code. We then allowed the user to input words from the mood menu that they felt best represented their mood. With these inputs, we assigned values to 10 main mood categories. For heart rate, if the BPM was over 100, we added a point to moods associated with elevated heart rate, and for under 100, we added a point to the other moods. Then, for each word the user inputted that was on the mood menu, we added a point to the mood category to which the word was associated. Then, we found the mood category with the maximum number of points and played the song in our files that was associated with the mood.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0