Introduction: Mood Lamp With LCD Screen
Thanks to Makers-sac's Exquisite Mood Lamp project ( Maker-sac's Exquisite Mood Lamp), I had an idea to add a new feature to this project, also this is a homework from my school teacher. This project is very easy to make for anyone. I hope you enjoy this project!
Step 1: Gathering the Requriments
- Arduino Leonardo
- USB cable (A to B type)
- RGB LED
- Potentiometer (3 units)
- Resistor (100 omega)
- LCD screen
- Jumper wires
- Bread Board
- Acrylic paint (grey, black, white, and red)
- Box that can fit in your Arduino board and Bread Board
- Utility knife
- Tracing paper
- Paper Boards
- Removable mounting putty
This is all of the equipment you need to build this. I've attached some pictures for your reference.
Step 2: Designing the Circuit
Do the circuit connections as shown in the figure. Easy peasy.
Step 3: Programming for the Lamp/screen
Download this file or copy the program below or copy this link in your Arduino app. Upload to your Arduino and this project is half done! Programming
// For these LCD controls to work you MUST replace the standard LCD library from... // https://github.com/marcoschwartz/LiquidCrystal_I2... // Direct download https://github.com/marcoschwartz/LiquidCrystal_I2... // Your project will not compile until this is done. LiquidCrystal_I2C lcd_I2C_27(0x27,16,2); // set the LCD address for a 16 chars and 2 line display
pinMode(9,OUTPUT); lcd_I2C_27.init (); // initialize the lcd lcd_I2C_27.backlight();
analogWrite(9,c); lcd_I2C_27.setCursor(0 , 0) ; // set the cursor, counting begins with 0 lcd_I2C_27.print( "Hello" ); // Print a message to the LCD.
P.S you can change the word the LCD screen show, I chose "Hello", as you can see above.
And you have to download the "library" for this program to work, here is How to install Arduino Libraries.
I recommend you to use a removable mounting putty to stick the potentiometers on the breadboard.
Step 4: Making the Container for Your Lamp
- Cut the layout of the box like the picture below: Cut the hole for your USB cable, a hole for your LCD jumper wires to come out, three holes for your Potentiometer on the left corner or wherever you put the Potentiometer.
- Color the box with acrylic color, either like me or you can choose your own color!
- Cut the tracing paper as the size of the right furnace, which should be cut in the first step
- Cut a paperboard that fits inside of our box. The purpose of it is to hold the Arduino near the top of the box so the light can go through the tracing paper.
P.S. Remember to NOT seal the box first, for you need to put your Arduino board and breadboard inside the box and it is easier to cut the holes while the bottom of the box is still opened. Also, if you want your Arduino Board and breadboard to be removable, remember to buy things like hook and loop tape or removable mounting putty to open and close your box freely!
I wanted it to look like a little stove, for the Potentiometers looks like the handle of the stove. Hope you like it too!
Step 5: Enjoy!
You've made it! You can turn the potentiometers to change the lightness and color. Enjoy!