Back to Posts

EnLighten - Part 02

Posted in PhyComp

Enlighten

Hardware

First testes shows there are glitches in the lower voltages, so knowing that working between 10% and 30% of the power is working fine (50% is too brigth to enjoy the experience but you can go up to 90% easily if you want to). So far there are not significant differences between LED and Tradional bulbs so in the first testes i am mixing them without bigger issues.

Enlighten

Regarding the flame’s movements tracking, it could be accomplished by using image analisys and video input but it would include camera setup and callibration according with light from the environment (this is necessary in almost all scenarios I can imaging). The addional problems with the camera includes shadows casting, color callibration, resolution, tele lenses, point of view, blind spots, etc. I decide to use 4 light sensor in the NORTH, SOUTH, WEST, EAST locations related with the candle. Every photoresistor will give us analog values from 0 - 1023 of how much light is receiving each corner (almost like x and y factors).

In our ideal scenario the flame is giving the same light to every sensor, but if there is more light in one sensor than another it means the flame has a direction. This baheviour allow us to make this relation:

+X position = EAST - WEST; +Y position = NORTH - SOUTH;

This resulted values are the direction vectors of the flame related with a coordinate system at [0,0]; For example, is all the NORTH, SOUTH, WEST, EAST are 1023 that means X and Y = 0 which means no direction, because all the sensors are reading the same quantity of light. The cool of this is the noise implied in a flame’s movement which moves the readings every time. The first set Up included uncovered sensors but they didnt work because they were receiving external data from environment light. Convered sensors focus on sensing our flame.

Enlighten

The first prototype was made in cardboard which is not the more friendly material with fire. So far I haven’t had any sort of issue with it, but it is crucial to change the materials to avoid incidents.

Simulation

Enlighten will controlled the brighness of 8 bulbs in the space depending on where they are, meaning, their relation with the flame. In order to make this happen I designed a 3D simulator where the bulbs can be placed whereever its necessary. This app make the experience editable and scalable (this may include new features in the future). The simulator include a particle system which simulates a virtual flame which responses to virtual wind. Brightness and wind’s direction is controlled by our SERIAL readings from ARDUINO and going back to dim every bulb.

Enlighten

Testing

The first testes included linear arrays of light bulbs (8 of them using just one 8 channel module).

There was a flickering in some of the bulbs due to the frequency of the voltage. In despite 8 channels dimmer mentioned it identifies frecuency and voltage automaticly, you have to be sure you’re using the correct timing setup in your Arduino’s code in order to work with 50Hz or 60Hz (The exact timing data is included in the Arduino’s code example).

Deployment

In order to control 16 bulbs is necessary to use at least to Arduinos. This implied 2 Serial ports to write to (at least in the processing side). This also implies that each Arduino should have a differemt baud rate in order to stablish a communication. +myPort1 = new Serial(this, portName1, 9600); +myPort1 = new Serial(this, portName1, 38400); The baud rate should be the same in the Arduinoo’s side respectively. That way you can control more than one Arduino. Enlighten

Calibration

The light sensors are receiving bounces of light all the time, so It reads different values between natural (morning, afternoon) or artificial light which makes mandatory a calibration process.

Daniel Castano, colombian Designer and developer studying master program Interactive Telecommunication program (ITP) at Tisch School of Arts, NYU. This blog has documentation purposes. Feel free to contribute and five feedback. Be bold, be brave. Godspeed.

Read Next

AfterEffects Excercise