Pages: [1]   Go Down
Author Topic: Mood light coaster with glass detection  (Read 624 times)
0 Members and 1 Guest are viewing this topic.
"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a little project.

The mechanical part is limited to having some acrylic sheets laser-cut and the buying of the correct length bolts. If you don't do that you can either spend hours cutting / grinding them to size or ruin the last end-mill that you have. I did both ;-)

The LED part consists of a custom AVR board with LED drivers + ATmega168, 8 RGB LEDs, 8 small LEDs and an IR reflex sensor for the detection of a glass on top of it. Thanks to the excellent IR transmission of acrylic this is easily done. The short range doesn't really matter here. The only constraint is that the glass should have a flat bottom or be filled with a milky substance with high IR reflection.

Power is provided by 2x AA cells (rechargeable) and a small boost converter module (from Pololu).

Code-wise it is compatible with the ShigtPWM library (1.03) with just a tiny modification regarding how the LEDs are addressed.


* IMGP5454.JPG (39.59 KB, 480x389 - viewed 16 times.)

* IMGP5530.JPG (57.43 KB, 480x360 - viewed 11 times.)

* IMGP5493.JPG (33.58 KB, 480x360 - viewed 15 times.)

* IMGP5524.JPG (54.96 KB, 480x360 - viewed 14 times.)
« Last Edit: March 02, 2012, 07:21:46 pm by madworm » Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One difficulty I ran into was based on a wrong assumption regarding light pollution. Except for one room I only use CFLs and LED lighting, which don't emit a significant amount of IR radiation. Therefore I set the detection threshold and expected it to work everywhere. Of course it failed miserably in this one room.

A nice example for insufficient testing based on biased assumptions. It also nicely shows that incandescent light bulbs really are IR flood lights / heaters and don't do a good job in producing visible light at all.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

Pages: [1]   Go Up
Jump to: