Introduction: Vanity Mirror

Picture of Vanity Mirror

Turn your mirror into a modern vanity kit with gen4 5” HMI Display module and LED Strips. This project can be made easily with your creativity. In this project, gen4 HMI Display module will be used as the graphical user interface to control your light. You can customise the looks of the buttons and the arrangement of the LED strip modifying the project code using the Visi Environment.

You will need the following components and materials:

  • gen4-uLCD-50DCT-CLB
  • gen4-PA and FFC Cable
  • LED SMD 5050
  • 4 Channel Relay
  • uSD Card
  • uUSB Cable
  • Jumping Wires
  • 5 V Power Supply
  • 12 V Power Supply

Step 1: Build

Picture of Build

You can customize your own Vanity Mirror light by using different materials, in this project, LED Strip is used.

It is divided into three section.Put the LED Strips onto your mirror and connect them accordingly.

In this version, 3 sections were made, The Inner Light, Top & Bottom Light and the Left & Right Light.

Build the circuit as shown in the fritzing diagram.

NOTE: You can also make your costomized circuit to control the brightness of the LED Strip with the PWM Pins of the gen4-HMI Display Module

Step 2: Program

Picture of Program
  1. Download the code here.
  2. Open the Visi project using Workshop 4. This project uses the Visi Environment.
  3. You can modify the properties of each widgets and buttons.
    • Three GPIOs are used as pin output.
    • You can also check and modify some part of the code according to your preferences.
    • The code provides comment for your reference
  4. Click on the “Compile” button.
    • Note: This step could be skipped. However, compiling is essential for debugging purposes.
  5. Connect the display to the PC. Make sure that you are connected to the right port. Red Button indicates that the device is not connected, Blue Button indicates that the device is connected to the right port.
  6. Go back to “Home” tab. This time, click on the “Comp’nLoad” button.
  7. Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.
  8. Mount uSD Card When the uSD card is not yet inserted, this message will appear on your gen4 Display: "Drive not mounted"

Step 3: Demonstration

Picture of Demonstration

Now you can use your Vanity Mirror anytime. You can control its light into Inner light,Left& Right, Top & Bottom or even all lights on.

Enjoy !

Comments

About This Instructable

79views

3favorites

License:

Bio: 4D Makers is a group of curious engineers and enthusiasts who finds great satisfaction in creating and building anything from electronics.
More by 4D Makers:Function Generator ProjectVanity MirrorArlo: Motion Sensing Robot Featuring 4Duino-24 and ULCD
Add instructable to: