DIY Retractable Book Lamp: Illuminate Your Reading

by PROJECT_X in Circuits > LEDs

1044 Views, 24 Favorites, 0 Comments

DIY Retractable Book Lamp: Illuminate Your Reading

1000039117-01.jpeg

Welcome to the DIY Retractable Lamp project! In this Instructable, we'll guide you through creating a unique lamp that illuminates when opened and automatically turns off when closed. What sets this lamp apart is its innovative linear mechanism, designed to securely hold the lamp in the opened and closed position, preventing accidental movements. This mechanism also serves as the heart of the project, automatically switching the light on and off as you open and close it.

Whether you need a nightlight, a reading lamp, or a decorative piece, this DIY Retractable Lamp is functional and stylish. Let's dive into the detailed steps to bring this project to life!

Supplies

1000038348-03.jpeg
IMG_20240502_164427.jpg
IMG_20240419_001210.jpg
FWGPQJ2LVNTUUY5.jpg
F5SE93MLVNTUUWC.jpg
FCVQROALVNTUUUK.jpg
FR65JIHLVP9AFZ9.jpg
FEI1A1ULVNTUUNQ.jpg

Before we begin, here's a list of supplies you'll need for this project:

  • 3x Neodymium magnet circular k800
  • 1x Limit switch 1A 125v
  • 1x XL6009 DC-DC step-up converter module
  • 1x TP4056 1A Li-ion charging module (type-C)
  • 4x LED strip pieces 12v (warm white)
  • 1x 18650 3.7v Rechargeable Li-ion cell
  • 1x 1s 18650 Battery holder
  • 2x M3 8mm brass inserts
  • 2x M3 10mm CSK screws
  • Mylar Sheets (or paper)


  • 3D Printer
  • Soldering Station
  • Hot Glue Gun
  • Digital Multimeter
  • Basic Tools (screwdriver, pliers, super glue, etc.)

Designing Parts in Fusion

Screenshot 2024-05-02 212026.png
Screenshot 2024-05-02 212556.png
Screenshot 2024-05-02 212207.png
Screenshot 2024-05-02 212253.png
Screenshot 2024-05-02 212311.png

Begin by designing the necessary parts for the lamp in Fusion 360 and export the STL files.


Slicing and 3D Printing

IMG_20240502_164415.jpg

Slice the STL files with appropriate settings and 3D print the parts.


Configuration : (for reference)

  • Layer height - 0.2 mm
  • Infill density - 20%
  • Print speed - 50mm/s
  • Printing temperature - 230 C
  • Printing material - PLA

Preparing for the Mechanism

IMG_20240502_164301.jpg

Gather the supplies for making the mechanism, including magnets, printed shafts, and the limit switch.


Soldering the Wire on the Switch

1000039173-01.jpeg
IMG_20240502_164045.jpg

Solder two wires to the limit switch, attaching them to the common and normally closed positions.


Attaching Switch in Outer Shaft

IMG_20240502_164201.jpg
IMG_20240502_164149.jpg

Glide the limit switch into the housing of the outer printed shaft to secure it, ensuring it presses when the internal shaft passes through it from the top.


Sorry for not demonstrating the wires, assume it is for some steps!

Attaching Magnet on Inner Shaft

IMG_20240502_164228.jpg
IMG_20240502_164135.jpg
IMG_20240502_164216.jpg

Attach a magnet inside the inner shaft using super glue.


Testing the Sliding Mechanism

Switching mechanism.gif

Test the sliding mechanism to ensure it can turn the limit switch as required.


Attaching Magnets on Outer Shaft

IMG_20240502_201526.jpg
IMG_20240502_164125.jpg
IMG_20240502_164114.jpg

Attach circular magnets on both sides of the outer shaft, ensuring opposite poles on the internal side for holding the lamp when retracted.


Testing the Magnetic Strength

Magnetic mechanism.gif

Ensure the mechanism can withstand force and moves smoothly in linear motion.


Take a Look!

IMG_20240502_164036.jpg
IMG_20240502_164726.jpg
IMG_20240502_165033.jpg

Observe the beautifully crafted mechanism.


Circuit Diagram

IMG_20240503_043821.jpg

Follow the attached circuit diagram and design your circuit.


Soldering the Circuit

IMG_20240502_171049.jpg
IMG_20240502_164514.jpg
IMG_20240502_164456.jpg
FILZ28DLVP9AEUF.jpg
F0QA1B2LVP9AG3J.jpg
FQGPT8KLVP9AEUE.jpg

Solder all components as per the circuit diagram except connections for the LED strip and limit switch.


Installing the Circuit

IMG_20240502_171204.jpg

Install components in the printed base part using a hot glue gun, placing the charging module in the correct cutout.


Inserting the Brass Inserts

IMG_20240502_171750.jpg
IMG_20240502_171849.jpg
IMG_20240502_171822.jpg

Use a soldering iron to insert brass inserts in required slots.


Connecting the Battery

IMG_20240502_164404.jpg
IMG_20240502_171955.jpg
IMG_20240502_172053.jpg

Place the battery in the holder with the correct polarity.


Attaching the Mechanism

IMG_20240502_165322.jpg
IMG_20240502_165751.jpg
IMG_20240502_165630.jpg
IMG_20240502_165536.jpg

Attach the mechanism to the base part in the right slot, secure it with super glue, and connect the limit switch according to the circuit diagram.


Securing Middle Layer

IMG_20240502_165851.jpg
IMG_20240502_170017.jpg
IMG_20240502_170359.jpg
IMG_20240502_170656.jpg

Place the printed middle part in the slotted base part and attach with screws.


Cheaking the Output Voltage

IMG_20240502_172257.jpg

Check the output voltage of the XL6009 DC-DC step-up converter module and adjust if needed.


Soldering Led Strips Together

IMG_20240502_164505.jpg
IMG_20240502_173041.jpg
IMG_20240502_173122.jpg

Solder LED strip pieces together in pairs.


Attaching LED Strips

IMG_20240502_173428.jpg
IMG_20240502_173825.jpg
IMG_20240502_173859.jpg
IMG_20240502_173235.jpg

Attach LED strips to both inner faces of the lamp.


Attaching the Top Part

IMG_20240502_174909.jpg

Attach the printed top part to the top of the inner shaft and secure with super glue.


Crafting the Retractable Diffuser

IMG_20240503_043510.jpg
IMG_20240502_180139.jpg
IMG_20240502_180056.jpg
IMG_20240502_180200.jpg
IMG_20240502_180226.jpg

Design and fold the mylar sheet (or paper) for the diffuser.


Attaching the Diffuser

IMG_20240502_073215.jpg

Attach the diffuser to the lamp through designed slots and rings.


Testing the Lamp

Lamp retraction.gif

Test the lamp for sliding mechanism, retraction capability, magnetic strength, overheating, and other issues.


Final Thoughts!

IMG_20240502_164527.jpg

Congratulations on completing your DIY Retractable Lamp project!

The linear mechanism in this lamp, coupled with the automatic on/off feature, makes it a standout piece for various purposes. Whether you're using it as a nightlight to guide your way in the dark, as a reading lamp to illuminate your favorite books, or as a decorative element that adds ambiance to your space, this lamp is designed to enhance your experience.

We hope this Instructable has inspired you to explore new avenues in crafting and electronics. Enjoy your DIY Retractable Lamp and may it light up many moments of joy and creativity in your life!

Happy making!