Light Intensity Measurement using LDR sensor and Arduino on TinkerCAD
Updated: Aug 9
Light Intensity is usually measured to control the switching on and off of the light in the Home Automation system. LDR sensor is the photoresistor that plays a major role in the Light Intensity Measurement circuit. Arduino is the brain behind smart lightning. LDR sensor full form is Light Dependent Resistor. The final step before deploying the smart lighting system is to fine-tune the Arduino code using the Arduino IDE, adjusting the thresholds for light intensity levels to ensure seamless and precise control over the LED brightness.
Devices and circuits are usually designed and simulated on software before building the circuit itself. This ensures circuit safety and makes it easy to build the circuit without worrying about any hazards from the design. TinkerCad is an online simulation software for electronics circuits. Let us explore how to measure Light Intensity using LDR and Arduino.
Let us see how Arduino empowers us to measure light intensity effectively. Let's explore how this powerful combination of Arduino and LDR sensors opens up exciting possibilities for a brighter and smarter future.
Table Contents:
Hardware Requirements For Arduino based Light Intensity Measurement Circuit
1. Arduino UNO Board.
Develop a stronger concept in Arduino through this article:- Click here to know more.

#Arduino board is a microcontroller that is used to accept inputs from sensors connected and provide an output action on the desired device connected to it. The sensor inputs can be from light-detecting sensors, motion sensors (Ultrasonic or IR), temperature sensors, etc. The output from this device can be received through other output devices such as LED, Buzzer, Serial monitor, etc.
2. Resistors

Resistors are passive devices that restrict the flow of current or divide the voltage through the circuit. The input power passes through these resistors and then to the sensors to avoid damage.
3. Breadboard

The breadboard is the basic component of any circuit building process. All components, be it input sensors or output display devices are connected to the power supply, microcontroller using wired connections through a breadboard. The holes in the breadboard are in series. There are various sizes like full-sized, half-sized, and mini breadboard.
4. LED

Light Emitting Diode is a commonly used light source. It is a semiconductor that emits light when current flows through it.
5. Jumper Wires

These are the main components that are used to establish the connections between different devices of the circuit.
6. LDR (Light-Dependent Resistor)

LDR is a #photoresistor that works on the principle of #photoconductivity. The surface of the LDR is made with a layer of semiconducting material that is responsible for measuring the light intensity. The principle states that when light falls on the surface of the semiconducting material, the electrons receive energy, and movement is caused inside the material.
When those electrons reach the valence band, electron-hole pairs are formed. This in turn reduces the resistance of the material and the corresponding voltage is given as the output of the device.
NOTE: The description of the electrical components is given for reference. We don't need the physical components for this project. The circuit simulation is done in the TinkerCad software.
Software Requirements For Arduino Based Light Intensity Measurement Circuit
TinkerCAD circuit simulation software.

It is an online simulation software used for circuit design. It has all the electrical components required to built circuits and runs them. You can tinker with various Arduino circuits and just like Arduino IDE write the code in TinkerCAD com.
Visit the TinkerCad website.
Creating the light intensity measurement with the help of LDR sensor and Arduino
Circuit Connections

Let us now understand the circuit connections.
First, it is necessary to define the ground and power supply line of the breadboard. This is done by connecting the 5V supply pin from the Arduino to one of the lines of the breadboard and the Ground (GND) pin of the Arduino to another line of pins of the breadboard. In the given circuit diagram, the wires in Red are connected to the power supply and those in Green are connected to the Ground.
The LDR has two terminals of which one is directly connected to the Analog pin (A0) of the Arduino and the same PIN is connected to the ground line of the breadboard through the resistor. The second pin of the #LDR is connected to the power supply line of the breadboard.
Next, in this circuit, LED is the output device. So the anode terminal of the LED is connected to the Digital pin (PIN 9) of the Arduino. The cathode terminal of the #LED is connected to the ground line of the breadboard through the resistor.
We are using Multimeter as the output indicator. Hence, the pin used for output, i.e. PIN 9 is connected to the positive (RED) terminal of the Multimeter and the negative (BLACK) terminal of the #multimeter is connected to the ground line of the breadboard.
CODE:
NOTE: The default code present in the TinkerCad window needs to be removed and the program code needs to be written. Download the document and copy-paste the code in Tinkercad to simulate the circuit.
Working

Let us first learn how to work on TinkerCad #simulation software. Once on the #TinkerCad page, select circuits, and search for the components required. The components are to be dragged and brought to the circuiting screen. The connection needs to be made by selecting the jumper wires. Corresponding colors for the wires can be selected.
To Learn more about Tinkercad in detail click on the link given below.
Now let us understand how the circuit works.
When the LDR is connected, the LED is initially OFF and the Multimeter shows no reading. When the intensity of light on the surface of the LDR increases, the resistance of the semiconducting material present on the surface of the LDR decreases according to the principle of photoconductivity. This changes the voltage level also.
The voltage is given to the LED as input and based on the value transmitted, the LED glows/dims. The change in brightness of the LED indicates the light intensity. The same voltage output value is shown on the multimeter and the Serial monitor of Arduino #IDE.
Watch the below-given Arduino project video for the practical explanation of designing the circuit and to know how the simulation #software works.
Project Video By - Navya Tatiparthi
There are a few more articles on Arduino that you might like to read:-
Simulation software plays a major role in the building of large circuits as they help analyze the working of the circuit before it can be built practically. It helps us create a #virtual design of the circuit we want to build and avoid damages to the circuit if in case we don't know, beforehand about the correct circuit connections.
For more Arduino projects using TinkerCad click here.
Simulation software can help us build more effective and efficient projects as it provides validation for the circuit we will be building using the actual components. #Design your own circuit, run the code in the software, and validate your project.
SEE ALSO:
Fire Alarm System project by Interfacing Arduino with Temperature Gas sensor using TinkerCad
How to Interface an Ultrasonic sensor with Arduino using TinkerCad
Follow us:
Please do follow us i.e. #learnelectronicsindia to get daily updates about new blogs, videos, courses, quizzes and contests.
Facebook | Instagram | LinkedIn | Youtube | Website | Gmail
Check out:
Do check out the below links to know about Internship Opportunities, Training & Courses.
Internship | Training | Courses | Project | Interview Q&A | Order projects