Interruptible LED

Assignment: Create a fading LED attached to a microcontroller. Your LED should be interruptible by either a pushbutton, analog input, or serial input. Your fade speed and fade curve are yours to determine.

Tom went through this exercise with us in class. I was surprised by how much the sine wave makes a difference to the fade. It felt a lot more smooth and natural. I left the class wanting to experiment on what different feelings I can create with the light.

Example code: https://github.com/tigoe/LightProjects/tree/master/SineFade

I listed out some emotions and based on practicality and my state of mind recently (self-portrait), I went with: (1) heavy breathing (2) panic (3) emergency. The interaction is then to put off the fire and let the LED die.

I chose to make the enclosure as minimal as I can to highlight the light effects. I covered the LED in a tissue to diffuse the light and put it in a pingpong ball as it provides a perfectly round shape – evenly distributing the light. In addition, I made it into a character using white wires as the body of the pingpong man.

IMG_1054.jpeg

 

(1) Heavy breathing

Screen Shot 2562-02-07 at 20.24.04.png

code: https://github.com/hellonun/lightandinteractivity/blob/master/led_heavy_breathing.ino

 

(2) Panic

Screen Shot 2562-02-07 at 20.24.35.png

code: https://github.com/hellonun/lightandinteractivity/blob/master/led_panic.ino

 

(3) Emergency

Screen Shot 2562-02-07 at 20.24.24.png

code: https://github.com/hellonun/lightandinteractivity/blob/master/led_emergency.ino

The biggest thing I learned along the way was that light and its movements look different in every condition e.g. an LED vs. an LED in a pingpong ball vs. an LED covered in tissue in a pingpong ball – the effects in these are also very different. Therefore, next time I should make as close to the real setting as I can and take time to test to fine-tune the code.

A bonus – an interesting graph I made while trying to create a breathing effect.

Screen Shot 2562-02-03 at 16.41.14.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s