Arduino Nano with LDR Module & OLED Display | KitKraft Light Sensing Project
In this project, we’ll build a light sensing device using an Arduino Nano, an LDR module, and a 0.96-inch OLED display. This system detects the amount of ambient light and displays the readings in real-time. The project is ideal for anyone interested in learning about light sensors and their applications in various projects, such as smart lighting systems or automated light detection.
Components Required
To create this project, you will need the following components:
- Arduino Nano: The microcontroller that processes the light sensor data and displays it.
- LDR Module: A ready-made module that includes an LDR and required circuitry to make it easier to interface with the Arduino (no external resistor needed).
- 0.96-inch OLED Display: Displays the current light level in real-time.
- Jumper Wires: For connecting the components.
- Breadboard: To assemble the circuit.
- USB Cable: To power the Arduino Nano and upload code.
How It Works
The LDR module measures ambient light intensity. As the light falling on the LDR increases, its resistance decreases, and the module outputs an analog voltage signal. The Arduino Nano reads this signal via one of its analog input pins and processes it to determine the light intensity. The light intensity value is then displayed on the OLED screen in real-time.
Since the LDR module comes with its own built-in circuitry, including a pull-down resistor, there’s no need for an external resistor, which simplifies the wiring.
Circuit Diagram
The connections are straightforward:
-
LDR Module:
- VCC to 5V on the Arduino Nano.
- GND to GND.
- OUT to D2 on the Arduino.
-
OLED Display:
- VCC to 5V,
- GND to GND,
- SDA to A4,
- SCL to A5.
Project Steps:
-
Set Up the Hardware: Connect the LDR module and OLED display to the Arduino Nano as per the wiring instructions above. Use a breadboard for easy prototyping.
-
Upload the Code: After the hardware is set up, upload the code to the Arduino Nano. The code will read the light intensity data from the LDR module and display it on the OLED screen in real time.
-
Monitor Light Intensity: The OLED screen will display the current light level in either percentage or analog value. You can observe changes in the light intensity by moving your hand over the sensor or varying the light in the room.
Applications
- Smart Lighting: Automatically adjust lighting levels based on ambient light to save energy.
- Photography: Use this system to measure light levels and help determine optimal lighting conditions.
- Agriculture: Monitor light levels in greenhouses to ensure plants receive the right amount of light.
- Home Automation: Incorporate this project into a smart home setup to control lighting or trigger alarms when light levels change.
Enhancements
- Wireless Data Transmission: Add an ESP8266 module to send light level data to a remote server or smartphone app.
- Data Logging: Save light intensity readings over time using an SD card module for future analysis.
- Multi-Sensor Setup: Add multiple LDR modules to monitor light in different areas and display the combined data on the OLED display.
Conclusion
This Arduino Nano with LDR module and OLED display light sensing project is an excellent introduction to light sensing and data visualization. It’s simple to set up and can be expanded for various applications. Whether you’re a beginner or an experienced hobbyist, this project is a great way to explore how sensors work in real-world scenarios.
Watch the Project in Action: Watch on YouTube Shorts
For Code & Schematics: Click Here