Hi! In this tutorial you will learn to make a mood lamp with Arduino.
I know that you may have seen a lot of mood lamp projects with Arduino, but I wasn't very satisfied with them because they all change the color very abruptly. So, I decided to make a smooth mood lamp and I also made it to turn on only when the room is dark.
This project is good for those who are beginners in the Arduino's world.
Step 1: What You Need?
1 x USB Type-B Cable
1 x 9V Battery Holder or 9V Battery Snap
1 x Breadboard or Mini Breadboard
1 x RGB LED or 1 Red & 1 Green & 1 Blue LED
1 x LDR (Light Dependent Resistor)
Male-to-Male Jumper Wires
1 x Computer with Arduino IDE
1 x 9V Battery
1 x Sheet of paper
Don't have components? Don't worry. Just click the component's name.
Step 2: Write The Code & Upload.
Darker the ambient light is, the higher is the value read from the LDR.
I used PWM to change led's brightness.
Step 3: Build Your Circuit.
Connect wire like the schematic above.
Step 4: It's done!
Try to add a sheet of paper around it to see it more smoothly, the paper acts as a diffuser.Feel free to modify this project to your way, and tell me your progress. Comments are welcome.
http://news.chivindo.com/669/mood-lamp-with-arduino.html
Comments
Post a Comment