I have started this project as a bed side glass with lighting feature. When I have moved forward I explored different usages in different contexts.

Bed side glass scenario:

When the user wakes up and needs to drink water, he/she turns the glass. When the glass flips over, it lights up, thanks to the accelerometer which is positioned at the bottom of glass. Once the LEDs under the glass light up, it becomes easier for the user to pour water from a carafe in the dark. It turns off when the glass is turned upside down. This position also protects the glass from dust and dirt.

For this scenario, one color light would be better. Low red light works well.

Some other scenarios:

It can be also used as both tealight and glass during dinner times at both restaurants and homes. Since it uses NeoPixels, depending on the usage scenarios when it is used, the desired colors can be arranged(customized) by using the USB port and open source Arduino coding.

And it might be fun at the parties, too!

Adem Önalan

School of Visual Arts

MFA in Products of Design

Twitter: @ademonalan

<p>Hey Adem, </p><p>Your code works fine using an arduino Mega. </p><p>However when I switch to the trinket, I get the following compiling error: </p><p>C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp: In member function 'void TwoWire::setClock(uint32_t)':<br>C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp:80:3: error: 'TWBR' was not declared in this scope<br> TWBR = ((F_CPU / frequency) - 16) / 2;</p><p>Any idea how to fix this?</p>
<p>Hey I made a similar thing! Although much less high tech ;)<br><br>https://www.instructables.com/id/Tilt-Shotgun-Shell-Night-Light/</p>
<p>hey that's kind of futuristic, nice.</p>
What's the advantage over mercury switch?
<p>Mercury is a hazardous material, and manufacturers are being discouraged from using it any more.</p>
<p>I didn't know that. Thank you very much!</p>
<p>Thank you for your question. </p><p>I made the first prototype with tilt switch. Result wasn't satisfying because I wanted it turn on in a specific angle. Also with accelerometer I had more possibilities like color change. </p>
<p>so awesome, these would make great gifts, too :) </p>
<p>Thank you very much :) glad you liked it!</p>

About This Instructable




Bio: School of Visual Art MFA in Products of Design
More by ademon:Glass with accelerometer controlled light 
Add instructable to: