Living lamp
A lamp that reacts to its surroundings: ambient light and temperature drive a generative pattern.
Interaction design without a touchscreen.
An experiment in taking interaction design off the screen: an object that responds to its surroundings without anyone touching it. Ambient light and temperature are the interface.
The same algorithm runs above in your browser. The cursor stands in for the sensors: the horizontal axis is light and the vertical one is temperature.
From sensor to pattern.
An ESP32 reads a photoresistor and an analog temperature sensor.
It tracks the minimum and maximum it sees and normalizes within that range, adapting to any room.
Non-linear curves so small changes are felt: light squared, temperature to the 1.5.
It sends light and temperature from 0 to 100 over serial every 80 ms.
Processing draws an 80 × 80 grid with ten noise and wave patterns.
Calm, excitement and color.
A calm zone
In low light the pattern barely moves. Past 50 %, speed grows on a cubic curve: the lamp “wakes up” suddenly.
Changes driven by excitement
The chance of jumping to another of the ten patterns rises with light, and each change blends gradually instead of cutting.
Temperature is color
Hue moves from oranges to blues and violets as temperature rises; under strong light, color washes out.
Hardware and software.
- Board
- ESP32
- Sensors
- Photoresistor and analog temperature
- Firmware
- Arduino (C++)
- Visuals
- Processing
- Link
- Serial, 115,200 baud
- Web
- JavaScript and canvas port
Live data on electronic paper.
I am testing the ESP32 with an e-ink display to show live data, such as how many people are playing Pegote at that moment.