- How to Adjust X and Y Axis Scale in Arduino Serial Plotter (No Extra Software Needed)Posted 2 months ago
- Elettronici Entusiasti: Inspiring Makers at Maker Faire Rome 2024Posted 2 months ago
- makeITcircular 2024 content launched – Part of Maker Faire Rome 2024Posted 5 months ago
- Application For Maker Faire Rome 2024: Deadline June 20thPosted 6 months ago
- Building a 3D Digital Clock with ArduinoPosted 11 months ago
- Creating a controller for Minecraft with realistic body movements using ArduinoPosted 12 months ago
- Snowflake with ArduinoPosted 12 months ago
- Holographic Christmas TreePosted 12 months ago
- Segstick: Build Your Own Self-Balancing Vehicle in Just 2 Days with ArduinoPosted 1 year ago
- ZSWatch: An Open-Source Smartwatch Project Based on the Zephyr Operating SystemPosted 1 year ago
Light Sensor LED Brightness Control System with ATMEGA328 UNO V3.0 R3 for Arduino
Web site:
http://www.instructables.com/id/Light-Sensor-LED-Brightness-Control-System-for-Ard/Project Summary:
ICStation team introduce you this light sensor LED brightness control system with our self-developed product ICStation ATMEGA328 UNO V3.0 R3 Board Compatible Arduino.It uses DC5V to work and it can change the brightness of highlight light emitting diode according to the light intensity of surrounding environment.It is a low-cost and simple lighting control system which can be used energy-saving lighting in the places such as passageway and road.
Full Project:
Functions of the system:
1.After startup, the analog light sensor will give a brightness of LED according to the light intensity of surrounding environment.
2.If the surrounding light becomes darker and darker, while the LED becomes brighter and brighter.
3.If the surrounding light becomes brighter and brighter, while the LED becomes darker and darker.
4.If the light intensity of surrounding environment is stronger than the analog output value which we pre-set in the program, the LED will go out.
Step 1: Connect the +5V Power Supply and GND of development board to the bread board
The red wire connects the power supply and the black wire connects the GND
Step 2: Connect the analog light sensor with 3P DuPont line
Connect the analog light sensor with 3P DuPont line and connect the pin to the another end of 3P DuPont line.
Step 3: Put the light sensor and LED on the bread board
Step 4: Connect the cathode and anode of components to the common terminal
Connect the power supply end and GND of the components to the common cathode and anode of bread board
Step 5: Connect the signal end of component to the development board
Connect the signal end of analog sensor and highlight LED light emitting diode to corresponding pins of the ICStation UNO R3 development board compatible with Arduino
Step 6: The video to show the effect
Circuit diagram:
Bill of Materials:
1.ICStation UNO R3 with USB compatible with Arduino
2.Bread board
3.Highlight LED light emitting diode
4.Analog light sensor
5.Hard jumper wire
6.4 PCS jumper wire
7. 5 Voltage DC power supply
8.3 PCS of pins
9.3P DuPont line
Firmware:
int _ABVAR_1_Bright; void setup() { _ABVAR_1_Bright = 0; Serial.begin(9600); } void loop() { Serial.print( analogRead(A0) ); Serial.println(""); _ABVAR_1_Bright = analogRead(A0) ; analogWrite(3, map ( _ABVAR_1_Bright , 50 , 900 , 0 , 255 ) ); if (( ( _ABVAR_1_Bright ) < ( 50 ) )) { analogWrite(3, 0); } }
One Comment