The Rude Lamp

by songyanbin1996 in Circuits > Arduino

339 Views, 1 Favorites, 0 Comments

The Rude Lamp

我的影片
IMG_2094.JPG
IMG_2095.JPG

My concept is to do a lamp that can warn you when you are too close to a book when reading. I used an ultrasonic sensor to detect the distance and a red light will be lighten up to warn you to sit straight. Meanwhile, I also connected it to processing so there will be a gif and an audio played to also remind you about your pose.

The Circuit

IMG_2077.JPG
IMG_2082.JPG
IMG_2083.JPG
IMG_2088.JPG
IMG_2087 2.JPG

I struggled a big about connecting a circuit without breadboard according to the restriction of the assignment. I did a small prototype to test if I can make it work.

After this I then drew a whole circuit diagram and soldered leds with resistors. The circuit part succeeded.

The Enclosure

IMG_2075.JPG
IMG_2091.JPG
IMG_2093.JPG
IMG_2092.JPG

Initially I really wanted to do a wood lamp. Yet my first try in laser lab failed due to the wood board was too thick and I wasted 2 hours in the lab with the cutter that refused to cut through the board. The making center store also ran out of thinner boards.

Eventually I decided to go with acrylic. Yet again, the laser cutter treated me badly and the board got burnt. The burnt black marks were very obvious so I put a black layer of paper inside the box to cover those stains.

Arduino & Processing Codes

屏幕快照 2017-10-12 下午2.17.55.png

To me the part in processing was especially difficult. First of all, importing a gif into processing was not easy. There has to be a specific library and certain code. It also took me a very long time to link processing with arduino. Finally when it works, the audio file was echoing when it played. Then I figured out that there has to be a delay between the time of the gif played and the audio played. Although the effect is not as good after adding the delay, I am very happy with the result.

Constraints and Further Improvements

The shape of this lamp can be improved so people can feel more comfortable when reading the book and that the brightness can be improved by replacing the LEDs into more powerful ones and the red one can be changed to a brighter one.