Back to Parent

Prototype/Outcome:

For our demo, we created a system of 3 lights, only 1 of which would be on when the user was in the room, but would all turn on and 'talk' to each other when the user was gone. They would also have behaviors when 'startled'. We decided we would need at least 3 different lights to establish the idea of a 'system' and provide enough variation between the flashes of light that it would still be visually interesting.

The first light - IKEA table lamp ('curious') - was connected to both a relay and the IR sensor and multiplexer setup from Clover's project 2. (This is composed of 15 IR sensors, but for this project we only connected 8 of them). These were connected to ground, 3V3, assigned input pin and assigned result analog pin accordingly. The sensor and protoboard sat on top of the bulb within the hole of the lampshade. Given the average of the sensor readings were above or below a certain threshold (number is tweaked depending on baseline brightness of the room), the Arduino would recognise the sensor as being 'covered' or 'uncovered' and behave accordingly - i.e. ON when 'uncovered' and the user is in the room, OFF when 'covered' and the user is in the room, ON and OFF depending on the position within a 'phrase' when the user is outside of the room, and On and OFF frantically when the UWB was being shaken.

The second light - the LED strip ('angry') - would be connected to a digital pin and ground pin. If the user was outside, the LED pixels would light up individually, according to the designated Morse Code pattern. If the user was shaking the UWB, they would flash red in intervals of 100 milliseconds. Otherwise they would be off, unless the first lamp was 'startled' when all the pixels would flash white.

The third light - the Mushroom fairy lights ('sleepy') - were attached to a digital pin and a ground line. They would glow slowly when the user was not in the room, flash every 100 milliseconds when the first lamp was 'startled' and otherwise be off.

We were able to consolidate the operations of all 3 lights onto 1 Arduino, with each of the lights connected via long wires/ cables to the Arduino and their respective power source. We created a 'nook' using the wheeled rack and a styrofoam board as an overhang so it felt like the lights were 'facing' each other. As the first lamp (i.e. IKEA) was so round and discrete, we placed it in the center of the table underneath the foam board. On the power cord hanging from the ceiling, we attached the LED strip and using twist ties, we attached the mushroom fairy lights to the foam board.


Content Rating

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

0