Close
0%
0%

Light Box

A Light Box Project with variable light control.

Similar projects worth following
This project can be used to capture small objects and models in photography with the feature to control the lightings and the brightness of the setup. It uses gen4-uLCD-43DCT to display the graphical user interface with an interactive touch screen function for controlling the lights.

Users can improve the project by adding more light nodes and op-amps to perform a more complex lightings as to what the user needs.

Components

·                    gen4-uLCD-43DCT-CLB

·                    gen4-PA and FFC Cable

·                     uSD Card

·                     uUSB Cable

·                     Jumper Wires

·                     12V External Power Supply

·                     5V Power Supply

·                     5050 LED Strip

·                     3 x transistor heatsink

·         2 x LM324N OP-AMP IC

·         6 x 10K ohms 1/4W resistor

·         3 X 1 ohm 5W resistor

·         3 x 2N222 NPN transistor

·         3 x  D288 / Any NPN power transistor

·         2 x Breadboard

·         3 x 0.1 uf non-polarized capacitor

·         3 x Wire Terminal Blocks 1x2

  • 1
    Build

    Build the circuit as shown in the diagram.

  • 2
    Program
    • Download the code here.
    • Open the project using Workshop 4. This project uses the Visi Environment.
    • The project can be improved by expanding the number of light nodes. To control additional light nodes, declare a new PWM pin and pull-down pin then set the pins as output.

    • Add a new button and slider widgets from the widget ribbon and make sure to paste the code on the editor.

    • Inside the “touchState == TOUCH_PRESSED” and “touchState == TOUCH_MOVING” condition, add a new condition for the new button and slider.

    • In adjusting the brightness using PWM, use the value of the current frame of the attached slider as the PWM output. Note: the circuit used is only limited to DC-Powered lighting devices.

     

    • You may also change the background image and the widgets in this project.
  • 3
    Compile and Load
    • 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.
    • Go back to “Home” tab. This time, click on the “Comp’nLoad” button.                                  
    • 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.
    • After inserting your micro SD card this GUI should appear on the gen4 Display:

View all 3 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates