Glass With Accelerometer Controlled Light




About: School of Visual Art MFA in Products of Design

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials and Tools

Step 2: Coding

Before soldering all components I suggest you to try the code on Arduino Uno with breadboard first. If everyting works properly you can switch to Adafruit Pro Trinket.

NOT: In order to use accelerometer, pro trinket and neopixel ring, you have to set up some files. Please visit the pages of the products on Adafruit's website.

Step 3: Soldering Components

Solder the components together as seen on the circuit diagram. Make sure that you keep wires long enough to give a little bit flexibility to your circuit so that you can embed it into your enclosure with ease.

Step 4: 3d Printing and Laser Cutting

1) You should use translucent filament for a better light diffusion.

Print it on standard resolution. Make sure that you have supporting materials. (You can break them when print is done)

2) Laser cut 1/8" thickness 2.3" diameter circle from clear acrylic.

Step 5: Assembly

1) Embed components into 3d printed enclosure. It might be a little bit hard.

2) Make sure that everything fits its place properly.

3) Control the switch and USB outputs. If they work well, then you can glue acrylic part to the top of the enclosure.

4) Assembly all part together

Step 6: Enjoy

Without glass it can be used as both tea light and mood light. See how it is easy and fun to change the color thanks to accelerometer!

By using micro-USB output it can be customized with endless possibilities!


Make it Glow!

Participated in the
Make it Glow!

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    11 Discussions


    1 year ago

    anyone know where I can buy world's smallest accelerometer

    mxc622xxc Memsic


    Question 1 year ago on Step 6

    anyone know where I can buy what is supposed to be the world's smallest accelerometer-

    MXC622xXC Memsic


    4 years ago on Introduction

    Hey Adem,

    Your code works fine using an arduino Mega.

    However when I switch to the trinket, I get the following compiling error:

    C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp: In member function 'void TwoWire::setClock(uint32_t)':
    C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire\Wire.cpp:80:3: error: 'TWBR' was not declared in this scope
    TWBR = ((F_CPU / frequency) - 16) / 2;

    Any idea how to fix this?

    Hey I made a similar thing! Although much less high tech ;)


    Reply 4 years ago on Introduction

    Mercury is a hazardous material, and manufacturers are being discouraged from using it any more.


    Reply 4 years ago on Introduction

    Thank you for your question.

    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.