{"id":13691,"date":"2015-05-27T09:58:17","date_gmt":"2015-05-27T08:58:17","guid":{"rendered":"https:\/\/www.raspberrypi.org\/?p=13691"},"modified":"2021-09-19T00:40:00","modified_gmt":"2021-09-18T23:40:00","slug":"emoti-visualising-our-emotions","status":"publish","type":"post","link":"https:\/\/www.raspberrypi.org\/blog\/emoti-visualising-our-emotions\/","title":{"rendered":"Emoti – Visualising our Emotions"},"content":{"rendered":"

If you missed the updates recently, we’re currently running a 12-month programme for creative young people called Raspberry Pi Creative Technologists<\/a>.<\/em><\/p>\n

We have a Google+ community for the group to post ideas, share interesting links and ask each other for help and we hoped they would also use it to arrange to meet up outside of the organised field trips: within the first month, one of them found the Art Hackathon and suggested they go along and take part. Three of them went along and teamed up with some others. Yasmin wrote a full account of the hack…<\/em><\/p>\n

I\u2019ve always heard about how awesome Hackathons could be; they\u2019re a chance to surround yourself with intelligent people who share the same interest, come up with inspiring ideas together and become engrossed in a project, with everyone chipping in to turn concept into reality over one weekend.<\/p>\n

But I’m going to be perfectly honest with you here; however awesome this sounds, I can\u2019t help but feel a tad intimidated by it all. There\u2019s still so much I feel I have yet to learn and I always worry about how much of an asset (or a nuisance) I would be.<\/p>\n

\"IMG_1048\"<\/p>\n

So when I saw an opportunity to go to an Art Hackathon<\/a>, which aspired to mix teams with different skill sets and types, I knew that I had to attend, and I\u2019m so glad I did! With the Hackathon holding presentations by many talented people including\u00a0Joel Lewis<\/a>, Di Mainstone<\/a> and Nick Rothwell<\/a>, as well tables full of various tech and art supplies, there were no limitations to the amount of creativity that we could muster!<\/p>\n

\"Yasmin

Yasmin and Milton<\/p><\/div>\n

All of this inspired a creation that managed to win 2nd Place for Peoples Choice, and I can proudly say that I was a part of its development:<\/p>\n

Emoti – Visualising our Emotions<\/h2>\n

Emoti shows the emotional state of the world through combined visual colours and audio, resulting in a beautifully chaotic representation of the emotional state of the world – or at least the twitterverse.<\/p><\/blockquote>\n

Using Twitter Widgets, our team was able to pull certain keywords from tweets being posted in real time and assign them to different emotion types, which meant being able to have constantly updated data on how people were feeling on twitter through these emotion-related keywords. The emotions we assigned them to were: Happy, Sad, Surprised, Afraid and Angry.<\/p>\n

From this data we then created a simple HTML web-page with 5 divs, or blocks, of colour relating to the different emotion states. These would constantly change width depending on the data that was being collected from the tweets to give a visual representation of how many people were tweeting under each emotion:<\/p>\n

    \n
  • Green = Happy<\/li>\n
  • Blue = Sad<\/li>\n
  • Yellow = Surprised<\/li>\n
  • Pink = Afraid<\/li>\n
  • Red = Angry<\/li>\n<\/ul>\n

    To make this experience of witnessing how the world feels and how frequently these emotions change more immersive, these visual representations are also accompanied with audio. We chose five audio tracks, one to depict each emotion, adding them into the web-page using the HTML5 audio tag, and adjusted their volume depending on the emotion-based twitter data with some JavaScript wizardry. This ended up with the clashing music types seemingly battling against each other, reflecting how hectic the live emotion states were and how rapidly they would change at random; one moment showing solely happiness, the next ultimate anger.<\/p>\n

    \"The

    The Hackathon Effect<\/p><\/div>\n

    This was an Art Hackathon don\u2019t forget, so, of course we had to present this data in a beautiful and intriguing way. What\u2019s more intriguing than creating the illusion of 3D colour-changing ripples?!<\/p>\n

    For this effect, the designers in our team laser cut clear plastic to create the individual ripples and slotted them into a black board. I decided this would be the perfect opportunity to whip out my Raspberry Pi! We ran the web-page through the Pi and hooked it up to the HDMIPi, allowing a bright screen for our structure to be placed onto, so that the moving coloured blocks from below would shine onto the clear plastic and give the illusion of a 3D object.<\/p>\n\n\t\t