Jump to content
Electronics-Lab.com Community

Touchless Multifunctional Bedside Lamp With Digital Clock


Recommended Posts

 

Whether you prefer to unwind the evening with a good book, play games on your phone, or wanna have some cozy time with your partner, the right bedside lighting can make a lot of difference.

In this project, I am going to make a touchless multipurpose bedside lamp, which will also include a digital clock, two power-ports and a USB charger.


Sponsors

This video is sponsored by PCBWay.

PCBway:  only $5 for 10 pcbs from  https://www.pcbway.com/?from=CZcouple
 
 
 

Woodwork

 

3%2B-%2BCopy.png
C1.jpg

 

Lets start the project by sanding a pallet planks to give it a nice and smooth texture.
Then, lets drill 3 holes for the top and the 2 sides of the night lamp.
After drilling the holes lets extract the sides from the plank using a chop-saw or a hand-saw.

My pallet plank is 9.5cm wide and the lamp will be square in shape. So, rest of the measurements are based on that.

 

7.png

 

 

Assembly

Once all the sides were ready its was time for me to join them all together.

First of all I am getting the 2 x sides ready by gluing the power sockets into the holes.

 

8.png

Next, I drilled 2x more holes for the IR sensor. 

 

If you want to know more about IR sensors please check out my "Tutorial No 21 : DIY - IR Module : https://www.youtube.com/watch?v=_M8FQIPi1qk"

 

9.png

 

Next, one by one using wood glue I am joining the 2 x sides to the top of the lamp. At first I thought of using nails to join the sides, but soon I realized that by all means it was a very bad idea. Before gluing the 2nd side I connected the two power ports together using a copper wire.

 

C2.jpg

 

Alright now, Lets look at the electronics bit.

 

 

Electronics

13%2B-%2BCopy.png

For the electronics bit we need:

 

  1. 1 x IR Sensor
  2. 5 x Colored LEDs
  3. 5 x 220Ω Resistors
  4. 1 x 10uf Capacitor
  5. 5 x 2N2222 NPN Transistor 
  6. 1 x 4017 IC

 

 

14.png

4017 is a Decade Counter IC, it can count from 0 to 10. When a clock signal is received on Pin-14 the output turns to high one by one in a sequence.

 

 

16.png

The signal from the IR-Sensor clocks the 4017 decade counter. Whenever a pulse is received at the clock input of IC, the counter increments the count and activates the corresponding output PIN. In our project we only need to count upto 5 so the 6th output from Pin-5 will be given to the Reset Pin-15. Sending a high signal to Pin-15 will reset the counter and it will skip counting the rest of the numbers and will start from the beginning. A capacitor is added to filter out too frequent detection of object by the IR sensor. 

 

 

17.png

To add a cluster of LEDs to the circuit, we just need to feed the output from the IC to a transistor and the cluster can then be connect to the transistor. Similar to this setup.

 

 

 

Top - Soldering Components

 

C3.jpg

 

So, now lets start putting the components together. Lets solder the IC base followed by the 5 x NPN Transistors. Then, lets solder the 220Ω Resistors and the 10uf Capacitor to the board. I also added few pin headers to the board, 3 for the IR Sensor and 2 for the 5v power supply. The transistors are connected to the ribbon of wire which then connects to the cluster of LEDs that will slide under the top section. 

 

21.png

 

Before putting the circuit into production lets do a quick test. Bang, nailed it..

 

 

Front - Clock

For the front bit I am using a 4-Bits DIY Electronic Digital Clock which I bought from AliExpress for just AU$2.40.

 

23.png

If you want to know more about this clock please checkout my "Tutorial No 12 : DIY - Wooden Clock : https://youtu.be/Av0riH_ncsE "

 

C4.jpg

 

I moved the 2 push button switches from the board to the front panel of this lamp. My initial plan was to cover this entire setup with timber veneer sheet. However, I could not find one that was thin enough to not completely hide the 7-segment display. So, I ended up putting a black plastic film over the 7-segment display.

 

 

Back - USB Port

The back bit will host the USB ports and will also have a hole for the AC power chord. 

 

26.png

Lets have a look at this USB port. When I am holding a USB port upside down the left most pin is the -ve pin and the rightmost is the +ve pin. The middle two are the data pins which I am not going to use in this project.

C5.jpg

I used a Rubber Grommet to safeguard the power chord's hole. 

 

To power the electronics bit I am using a USB charger. I glued the USB charger to the back bit of the lamp. I soldered the power supply cable to the USB charger and then hot-glued to protect it from touching the other electrical and electronic components.

Then I glued the back and the front plates of the lamp to the wooden frame. I soldered all the electronics components to the USB charger.

 

 

Bottom - Power Supply

 

32.png


The bottom bit will hold the AC Power Cables. Since I don't want the AC cables to float around and cause short circuits inside the lamp, I screwed them to the base of the lamp.

 

 

33.png

 

 

 

 

Painting

I painted the lamp a little bit to give it a modern look. Next, I superglued the black plastic film and painted its edges to match the whole setup.

 

35.png

To finalize the setup, I added a bit of hot-glue to the bottom of the lamp. These glue drops will stop this lamp from scratching my bedside table top.

 

36.png

 

 

 

 

 

Demo

37.png
 
Covid has taught us many things, it has changed our life. 

This project was an attempt to make things touchless. Hope you guys enjoyed it.

 

 

Thanks

Thanks again for checking my post. I hope it helps you.

If you want to support me subscribe to my YouTube Channel: https://www.youtube.com/user/tarantula3

 

Full Blog Post: https://diyfactory007.blogspot.com/2021/05/touchless-multifunctional-bedside-lamp.html

Video: https://youtu.be/r1r9jIgtcEk

 

Links:

Tutorial No 21 : DIY - IR Module :: https://www.youtube.com/watch?v=_M8FQIPi1qk

Tutorial No 12 : DIY - Wooden Clock :: https://youtu.be/Av0riH_ncsE

 

Music: Nocturne - Asher Fulero

Music: Simple - Patrick Patrikios

 

Support Me:

  • BTC:  1M1PdxVxSTPLoMK91XnvEPksVuAa4J4dDp
  • LTC:  MQFkVkWimYngMwp5SMuSbMP4ADStjysstm
  • DOGE: DDe7Fws24zf7acZevoT8uERnmisiHwR5st
  • ETH:  0x939aa4e13ecb4b46663c8017986abc0d204cde60
  • BAT:  0x939aa4e13ecb4b46663c8017986abc0d204cde60
  • LBC:  bZ8ANEJFsd2MNFfpoxBhtFNPboh7PmD7M2

 

Thanks, ca again in my next tutorial.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
  • Create New...