Isn't it awesome to have some background lighting on your wall when you are enjoying your favourite movies. In this instructable, i will show you how to install a LED strip lighting at the back of your MONITOR and control the intensity of the LED strip using MOUSE SCROLL button.
This Project is very simple and cheap to build.
Step 1: Parts Required
Following components will be required while making this instructable.
1) Arduino Board
2) LED Strip
3) L293D IC
5) Connecting Wires
6) 12V 1 ampere adapter
Step 2: Breadboarding All the Components
As LED strip is rated at 12V and it draws 600 milliamps of current and Arduino can not provide that much power to drive the LED strip so i used L293D IC to amplify the power. Ofcourse you can use any current amplication ic to drice this LED strip.
Step 3: Writing the Code
By this time the hardware was almost complete, so i started writing the code.
The code file is also attached.
The code can be categorised in two parts.
1) Processing IDE code for GUI
2) Arduino code, to read the data from USB and controlling the LED intensity
Processing IDE code :
You need to download the processing IDE from internet, it is open source, it is very similar to arduino's IDE.
I used processing IDE to create a GUI.
After that i imported arduino's serial communication library in Processing IDE so that direct communication can be established between Processing IDE and Arduino board.
The coding of processing is quite simple, all i have done was created a rectangular interface and used mouse scroll library to send data to arduino using serial communication. If the mouse is scrolled up numeric 1 is send to Arduino and if the mouse is scrolled down, numeric 2 is sent to arduino.
Arduino's Code :
Arduino code consist of simple if else loop, which is executed according to the data sent by Processing IDE.
Resulting in the variation of duty-cycle of PWM, which in turn is controlling it's intensity.
Step 4: Testing the Prototype
After uploading the code in Arduino, it was time to test the complete setup, and the good news is that, it worked like a charm.
Step 5: Installing the LED Strip at the Back of Monitor
After the successful completion of the prototype, i installed the LED strip at the back of the monitor, this strip is very easy because LED strip already comes with adhesive, so you don't have to apply extra adhesive on that.
By this time the project was complete.