Processing | Arduino
Interactive gallery installation responding to temperature, pressure, proximity, sound, and time, created by a team of four. I wrote the temperature and timer code using Processing, an open-source programming language based on Java which was designed for creating images and animations. The temperature window can be seen in the lower right square, while the timer is the bar on the far right. The temperature code took in input from a temperature sensor via an arduino, established a base temperature, and generated a moving gradient based on continuous temperature input. Warmer temperatures generated warmer colors, and cooler temperatures resulted in cooler colors. The temperature sensor reacted to the ambient temperature in the room, but gallery visitors could also interact with the sensor by holding their hand to it, blowing on it, holding a cold drink to it, etc. The timer code, which counted down for the scheduled length of the show (four hours) and then reset, generated a bar of color on the right side of the screen which moved through the colors of daytime and sunset and into twilight, as the bar dropped towards the bottom of the screen. The temperature and the timer programs readjusted their values every frame, at a framerate of 30 fps.