Introduction: The Light Regulator

Light, the most basic resource in the world. Since we need light in the majority of daily life, a “Light Regulator” is needed. “The Light Regulator” is used to make human life more convenient. “The Light Regulator” adjusts the light by one mere button, and the light increases brightness with a click of the button. After three clicks of the button, the light will turn off, providing individuals with a dimmed setting. This design is used to provide light at every moment when you feel necessary. While you’re studying, you definitely need light for improved eyesight. Therefore, you may click on the button to increase the brightness. In the other cases, while you’re going to sleep, you absolutely do not need your room to be so bright as you study. Thus, you may take another click of the button in order to dim and rest your eyes.

Step 1: Material Preparation (For Constructing the Arduino)

  • Arduino Leonardo breadboard x1
  • Ardunio Circuit board x1
  • A bundle of jumper wires (about 9)
  • Ardunio pushbutton x1
  • Blue led x3
  • 82Ω Resistor x3
  • 10k Precision Resistor x1
  • Portable battery charger x1
  • Computer x1
  • USB cable x1

Step 2: Assembling All the Components

Assembling all the components you need on the Arduino Circuit board and Leonardo breadboard

  1. Connect the 3 blue led to digital 7, 8, 9 with jumper wires
  2. Connect the button to the positive and negative electrode including 10K precision resistor with jumper wires
  3. Connect the power (5V and GND) to the positive and negative electrode on Leonardo breadboard with jumper wires

Step 3: Code

  1. Type down the code of my device (the light regulator)
  2. Transfer the code to the Arduino Circuit board with the USB cable
  3. Test if the Arduino Circuit board with code in works well

The code was provided here: https://create.arduino.cc/editor/Phoebeeeeee/395c5...

Step 4: Finish Building Up the Device

Connect the portable battery charger to the Arduino Circuit board in order to provided electricity in a more convenient way.

Step 5: Material Preparation (The Device’s Outer Case)

  • Roll of tape x1
  • Roll of double-sided tape x1
  • Box (22cm x 8cm x 12cm) x1
  • A4 paper x1
  • Black marker pen x1
  • Transparent plastic plate x1
  • Scissor x1
  • Bunch of waste paper x1
  • Utility knife x1
  • Ruler x1
  • Pencil x1
  • Eraser x1

Step 6: Design of Device’s Outer Case (box)

  1. Prepare a box that’s not totally closed (about 22cm x 8cm x 12cm)
  2. Color the box into black with the marker (to cover the texts that’s on the box before)

Step 7: Design of Device’s Outer Case (hole on Top the Box)

  1. Cut a hole (about 7.5cm x 11.5cm) on the top of the box with the utility knife
  2. Cut down a piece of a transparent plastic plate (about 8cm x 12cm) with scissor
  3. Cut down a piece of white paper (about 8cm x 12cm) with scissor
  4. Stuck the (8cm x 12cm) transparent plastic plate into the hole on the top of the box
  5. Stick the (8cm x 12cm) piece of transparent plastic plate in the hole
  6. Fixed the transparent plastic plate that you just stuck into the hole with tape
  7. Stick the (8cm x 12cm) piece of white paper on the transparent plastic plate in the hole with double-sided tape
  8. Cut a circle with the diameter of 3cm on the top of the box (next to the 7.5cm x 11.5cm hole)

Step 8: Portable Battery Charger

  1. Put a bunch of waste paper at the right side in the box in order to balance the uneven height of the portable battery charger and breadboard
  2. Put your Arduino Circuit board and Leonardo breadboard that’s connected with portable battery charger into the box (portable battery charger at the side without waste paper, which is the left side)

Step 9: Last Step Before Finish

  1. Pull out the button and stuck into the hole that you cut before on the top of the box
  2. Open the power supply of the portable battery charge in order to start up the device

Step 10: Finish