SlideShare a Scribd company logo
MEASUREMENTS
LIGHT DEPENDENT RESISTOR
By: E NANDANA PRIYANKA
ABSTRACT:
A Light Dependent Resistor (LDR) or a photo resistor is a device whose resistivity is a
function of the incident electromagnetic radiation. Hence, they are light sensitive devices.
They are also called as photo conductors, photo conductive cells or simply photocells. They
are made up of semiconductor materials having high resistance. There are many different
symbols used to indicate a LDR, one of the most commonly used symbol is shown in the
figure below. The arrow indicates light falling on it.
WORKING PRINCIPLE OF LDR:
A light dependent resistor works on the principle of photo conductivity.
APPLICATIONS OF LDR:
LDR’s have low cost and simple structure. They are often used as light sensors. They are
used when there is a need to detect absences or presences of light like in a camera light meter.
Used in street lamps, alarm clock, burglar alarm circuits, light intensity meters, for counting
the packages moving on a conveyor belt, etc.
DIAGRAM:
EQUIPMENT:
You will need the following equipment to be able to complete this Raspberry Pi light sensor
tutorial. You can do this without any breadboard gear but I would highly recommend to use it.
Required
 Raspberry Pi
 8 GB SD Card or Micro SD Card if you’re using a Raspberry Pi 2 or B+
 Ethernet Cord or Wifi dongle
 Light sensor (LDR Sensor)
 BreadBoard
 Resistor
Optional
 Raspberry Pi Case
 USB Keyboard
 USB Mouse
 GPIO Breakout Kit
 Breadboard
 Breadboard Wire
CONNECT THE MODULE TO THE RASPBERRY PI:
This light sensor module has 3 wires: VCC, GND and Signal. You can use dupont wires to
connect it to the GPIO pins on Raspberry Pi (A/B/B+).
Raspberry Pi Light Sensor Module
3.3v P1 —————————– VCC (V)
GND P6 —————————- GND (G)
GPIO4 P7 —————————– SIGNAL (S)
COMPONENTS USED:
BREAD BOARD:
A breadboard is a solderless device for temporary prototype with electronics and test circuit
designs. Most electronic components in electronic circuits can be interconnected by inserting
their leads or terminals into the holes and then making connections through wires where
appropriate. The breadboard has strips of metal underneath the board and connect the holes on
the top of the board. The metal strips are laid out as shown below. Note that the top and bottom
rows of holes are connected horizontally and split in the middle while the remaining holes are
connected vertically.
LDR:
LDRs or Light Dependent Resistors are very useful especially in light/dark sensor
circuits. Normally the resistance of an LDR is very high, sometimes as high as 1000
000 ohms, but when they are illuminated with light resistance drops dramatically.
LED:
LEDs are semiconductor diodes, electronic devices that permit current to flow in only one
direction. The diode is formed by bringing two slightly different materials together to form a
PN junction (Figure 2). In a PN junction, the P side contains excess positive charge ("holes,"
indicating the absence of electrons) while the N side contains excess negative charge
(electrons).
RESISTOR:
A resistor is an electrical component that limits or regulates the flow of electrical current in an
electronic circuit. Resistors can also be used to provide a specific voltage for an active device
such as a transistor.
RASPBERRY PI:
The Raspberry pi is a single computer board with credit card size, that can be used for many
tasks that your computer does, like games, word processing, spreadsheets and also to play HD
video.
• The raspberry pi comes in two models, they are model A and model B. The main
difference between model A and model B is USB port.
• Model A board will consume less power and that does not include an Ethernet port.
But, the model B board includes an Ethernet port and designed in china..
• Essential hardware specifications of raspberry pi board mainly include SD card
containing Linux OS, US keyboard, monitor, power supply and video cable.
• Optional hardware specifications include USB mouse, powered USB hub, case,
internet connection, the Model A or B: USB WiFi adaptor is used and internet
connection to Model B is LAN cab
CONSTRUCTION:
The Raspberry Pi Light Sensor Circuit
The circuit we are going to make for this tutorial is super simple and is great for anyone who
is just starting out with circuitry.
The light dependent resistor or also known as the LDR sensor is the most important piece of
equipment in our circuit (obviously). Without it we wouldn’t able to detect whether it is dark
or light. In the light this sensor will have a resistance of only a few hundred ohms whilst in the
dark it can have a resistance of several megohms.
The capacitor in our circuit is there so we’re able to measure the resistance of the LDR sensor.
A capacitor essentially acts like a battery charging up whilst receiving power and then
discharging when no longer receiving power. Using this in series with the LDR we can work
out how much resistance the LDR is giving out thus whether it is light or dark.
To get the light sensor circuit built correctly follow the steps below or check out the circuit
diagram right underneath the steps. In the following steps I am referring to the physical
numbers of the pins (Logical order).
1. First connect pin #1 (3v3) to the positive rail on the breadboard.
2. Next connect pin #6 (ground) to the ground rail on the breadboard.
3. Now place the LDR sensor onto the board and have a wire go from one end to the
positive rail.
4. On the other side of the LDR sensor place a wire leading back to the Raspberry Pi.
Hook this to pin #7.
5. Finally place the capacitor from the wire to the negative rail on the breadboard. Make
sure you have the negative pin of the capacitor in the negative rail.
We’re now ready to move onto the Python code,
PHYTHON CODE:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
#define the pin that goes to the circuit
pin_to_circuit = 7
def rc_time (pin_to_circuit):
count = 0
#Output on the pin for
GPIO.setup(pin_to_circuit, GPIO.OUT)
GPIO.output(pin_to_circuit, GPIO.LOW)
time.sleep(0.1)
#Change the pin back to input
GPIO.setup(pin_to_circuit, GPIO.IN)
#Count until the pin goes high
while (GPIO.input(pin_to_circuit) == GPIO.LOW):
count += 1
return count
#Catch when script is interupted, cleanup correctly
try:
# Main loop
while True:
print rc_time(pin_to_circuit)
except KeyboardInterrupt:
pass
finally:
GPIO.cleanup()
IMPROVING ACCURACY & POSSIBLE USES:
There are countless uses for a light sensor in a circuit. I will just name a few that I thought of
whilst I was writing up this tutorial.
 Light Activated Alarm – We can use the LDR to detect when it starts to get light so you can
sound an alarm to wake up. If your program & sensor is accurate enough, you could have it
slowly get louder as it gets lighter.
 Garden monitor – A light sensor could be used in a garden to check how much sun a certain
area of the garden is getting. This could be useful information if you’re planting something that
needs lots of sun or vice versa.
 Room Monitor – Want to make sure lights are always turned off in a certain room? You could
use this to alert you whenever light is detected where it shouldn’t be.
CONCLUSION:
Hence, the LIGHT DEPENDENT RESISTOR project is done using
RASPBERRY PI equipment.

More Related Content

What's hot

03 analogue anrduino fundamentals
03   analogue anrduino fundamentals03   analogue anrduino fundamentals
03 analogue anrduino fundamentals
Wingston
 
T 000118--digital ic-tester
T 000118--digital ic-testerT 000118--digital ic-tester
T 000118--digital ic-tester
RohanRonak
 
Basic Electronic Components
Basic Electronic ComponentsBasic Electronic Components
Basic Electronic Components
Akash Agarwal
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.
Ankita Tiwari
 
Presentation door knock
Presentation door knockPresentation door knock
Presentation door knock
Vamsi Krishna
 
Arduino based Applications-part 5
Arduino based Applications-part 5Arduino based Applications-part 5
Arduino based Applications-part 5
Jawaher Abdulwahab Fadhil
 
To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...
Ankita Tiwari
 
Build your own electronics lab
Build your own electronics labBuild your own electronics lab
Build your own electronics lab
Karim El-Rayes
 
To count number of external events using LabVIEW
To count number of external events using LabVIEWTo count number of external events using LabVIEW
To count number of external events using LabVIEW
Ankita Tiwari
 
Hasna
HasnaHasna
Automatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell ManualAutomatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell Manual
Tezpur University
 
Presentation on knock door bell project by namit
Presentation on knock door bell project by namitPresentation on knock door bell project by namit
Presentation on knock door bell project by namit
Namit Sood
 
To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.
Ankita Tiwari
 
To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...
Ankita Tiwari
 
Sound detectorcircuit
Sound detectorcircuitSound detectorcircuit
Sound detectorcircuit
Vedavyas PBurli
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
Anurag Alaria
 
Metal Detector Robotic Vehicle
Metal Detector Robotic VehicleMetal Detector Robotic Vehicle
Metal Detector Robotic Vehicle
Edgefxkits & Solutions
 
Home automationusing ir remote
Home automationusing ir remote Home automationusing ir remote
Home automationusing ir remote
Rohith Kilkile
 
Door knock alarm with timer
Door knock alarm with timerDoor knock alarm with timer
Door knock alarm with timer
SANDEEP GHOSH
 
Building light automation (1)
Building light automation (1)Building light automation (1)
Building light automation (1)
Jeyalakshmi Jei
 

What's hot (20)

03 analogue anrduino fundamentals
03   analogue anrduino fundamentals03   analogue anrduino fundamentals
03 analogue anrduino fundamentals
 
T 000118--digital ic-tester
T 000118--digital ic-testerT 000118--digital ic-tester
T 000118--digital ic-tester
 
Basic Electronic Components
Basic Electronic ComponentsBasic Electronic Components
Basic Electronic Components
 
Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.Interface stepper motor through Arduino using LABVIEW.
Interface stepper motor through Arduino using LABVIEW.
 
Presentation door knock
Presentation door knockPresentation door knock
Presentation door knock
 
Arduino based Applications-part 5
Arduino based Applications-part 5Arduino based Applications-part 5
Arduino based Applications-part 5
 
To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...To implement Water level control using LabVIEW and analog input signals from ...
To implement Water level control using LabVIEW and analog input signals from ...
 
Build your own electronics lab
Build your own electronics labBuild your own electronics lab
Build your own electronics lab
 
To count number of external events using LabVIEW
To count number of external events using LabVIEWTo count number of external events using LabVIEW
To count number of external events using LabVIEW
 
Hasna
HasnaHasna
Hasna
 
Automatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell ManualAutomatic IN/OUT Indicator with Doorbell Manual
Automatic IN/OUT Indicator with Doorbell Manual
 
Presentation on knock door bell project by namit
Presentation on knock door bell project by namitPresentation on knock door bell project by namit
Presentation on knock door bell project by namit
 
To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.To study the relay operation from digital control signal using LabVIEW.
To study the relay operation from digital control signal using LabVIEW.
 
To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...To interface temperature sensor with microcontroller and perform closed loop ...
To interface temperature sensor with microcontroller and perform closed loop ...
 
Sound detectorcircuit
Sound detectorcircuitSound detectorcircuit
Sound detectorcircuit
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
 
Metal Detector Robotic Vehicle
Metal Detector Robotic VehicleMetal Detector Robotic Vehicle
Metal Detector Robotic Vehicle
 
Home automationusing ir remote
Home automationusing ir remote Home automationusing ir remote
Home automationusing ir remote
 
Door knock alarm with timer
Door knock alarm with timerDoor knock alarm with timer
Door knock alarm with timer
 
Building light automation (1)
Building light automation (1)Building light automation (1)
Building light automation (1)
 

Similar to Measurements upload

3030
30303030
3030
vivi678
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
Divya Bansal
 
Dark sensor using LDR on breadboard
Dark sensor using LDR on breadboardDark sensor using LDR on breadboard
Dark sensor using LDR on breadboard
Saqib Iqbal
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
CephasMpandikaKalemb
 
7380969 Line Follower Using At89c51
7380969 Line Follower Using At89c517380969 Line Follower Using At89c51
7380969 Line Follower Using At89c51
biharimukund
 
Dark sensor
Dark sensorDark sensor
Dark sensor
Farzana Aktar
 
Raspberry pi Part 18
Raspberry pi Part 18Raspberry pi Part 18
Raspberry pi Part 18
Techvilla
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
AditiBhushan3
 
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENTSTREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
m sivareddy
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000
bnsprasad
 
Project Report
Project ReportProject Report
Project Report
Engineering Garage V=ir
 
Street light controlling using Microcontroller
Street light controlling using MicrocontrollerStreet light controlling using Microcontroller
Street light controlling using Microcontroller
9989476539
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
IJERD Editor
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
SuperGirlArshiyah
 
295889096 music-reactive-multicolor-led-lights
295889096 music-reactive-multicolor-led-lights295889096 music-reactive-multicolor-led-lights
295889096 music-reactive-multicolor-led-lights
MaheshSrinivasan25
 
PowerPoint Presentation on Radiation detector
PowerPoint Presentation on Radiation detector PowerPoint Presentation on Radiation detector
PowerPoint Presentation on Radiation detector
HackerWorld1
 
Radiation detector arduino UNO PPT
Radiation detector arduino UNO PPTRadiation detector arduino UNO PPT
Radiation detector arduino UNO PPT
FarhanAhmade
 
ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
Lam Hung
 
372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt
chiragdhimam4321
 
Linux Format - Get Into Linux Today
Linux Format - Get Into Linux TodayLinux Format - Get Into Linux Today
Linux Format - Get Into Linux Today
Heart Disk
 

Similar to Measurements upload (20)

3030
30303030
3030
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 
Dark sensor using LDR on breadboard
Dark sensor using LDR on breadboardDark sensor using LDR on breadboard
Dark sensor using LDR on breadboard
 
Intro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptxIntro_to_Arduino_-_v30.pptx
Intro_to_Arduino_-_v30.pptx
 
7380969 Line Follower Using At89c51
7380969 Line Follower Using At89c517380969 Line Follower Using At89c51
7380969 Line Follower Using At89c51
 
Dark sensor
Dark sensorDark sensor
Dark sensor
 
Raspberry pi Part 18
Raspberry pi Part 18Raspberry pi Part 18
Raspberry pi Part 18
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENTSTREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT
 
1396740 634706422070340000
1396740 6347064220703400001396740 634706422070340000
1396740 634706422070340000
 
Project Report
Project ReportProject Report
Project Report
 
Street light controlling using Microcontroller
Street light controlling using MicrocontrollerStreet light controlling using Microcontroller
Street light controlling using Microcontroller
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
295889096 music-reactive-multicolor-led-lights
295889096 music-reactive-multicolor-led-lights295889096 music-reactive-multicolor-led-lights
295889096 music-reactive-multicolor-led-lights
 
PowerPoint Presentation on Radiation detector
PowerPoint Presentation on Radiation detector PowerPoint Presentation on Radiation detector
PowerPoint Presentation on Radiation detector
 
Radiation detector arduino UNO PPT
Radiation detector arduino UNO PPTRadiation detector arduino UNO PPT
Radiation detector arduino UNO PPT
 
ArduinoSectionI-slides.ppt
ArduinoSectionI-slides.pptArduinoSectionI-slides.ppt
ArduinoSectionI-slides.ppt
 
372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt372269780-Ppt-Automatic-Street-Light.ppt
372269780-Ppt-Automatic-Street-Light.ppt
 
Linux Format - Get Into Linux Today
Linux Format - Get Into Linux TodayLinux Format - Get Into Linux Today
Linux Format - Get Into Linux Today
 

Recently uploaded

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
ramrag33
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
GauravCar
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
TaghreedAltamimi
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
riddhimaagrawal986
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 

Recently uploaded (20)

哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
Data Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptxData Control Language.pptx Data Control Language.pptx
Data Control Language.pptx Data Control Language.pptx
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
 
Software Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.pptSoftware Quality Assurance-se412-v11.ppt
Software Quality Assurance-se412-v11.ppt
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
People as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimalaPeople as resource Grade IX.pdf minimala
People as resource Grade IX.pdf minimala
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 

Measurements upload

  • 1. MEASUREMENTS LIGHT DEPENDENT RESISTOR By: E NANDANA PRIYANKA ABSTRACT: A Light Dependent Resistor (LDR) or a photo resistor is a device whose resistivity is a function of the incident electromagnetic radiation. Hence, they are light sensitive devices. They are also called as photo conductors, photo conductive cells or simply photocells. They are made up of semiconductor materials having high resistance. There are many different symbols used to indicate a LDR, one of the most commonly used symbol is shown in the figure below. The arrow indicates light falling on it. WORKING PRINCIPLE OF LDR: A light dependent resistor works on the principle of photo conductivity. APPLICATIONS OF LDR: LDR’s have low cost and simple structure. They are often used as light sensors. They are used when there is a need to detect absences or presences of light like in a camera light meter. Used in street lamps, alarm clock, burglar alarm circuits, light intensity meters, for counting the packages moving on a conveyor belt, etc. DIAGRAM:
  • 2. EQUIPMENT: You will need the following equipment to be able to complete this Raspberry Pi light sensor tutorial. You can do this without any breadboard gear but I would highly recommend to use it. Required  Raspberry Pi  8 GB SD Card or Micro SD Card if you’re using a Raspberry Pi 2 or B+  Ethernet Cord or Wifi dongle  Light sensor (LDR Sensor)  BreadBoard  Resistor Optional  Raspberry Pi Case  USB Keyboard  USB Mouse  GPIO Breakout Kit  Breadboard  Breadboard Wire CONNECT THE MODULE TO THE RASPBERRY PI: This light sensor module has 3 wires: VCC, GND and Signal. You can use dupont wires to connect it to the GPIO pins on Raspberry Pi (A/B/B+). Raspberry Pi Light Sensor Module 3.3v P1 —————————– VCC (V) GND P6 —————————- GND (G) GPIO4 P7 —————————– SIGNAL (S)
  • 3. COMPONENTS USED: BREAD BOARD: A breadboard is a solderless device for temporary prototype with electronics and test circuit designs. Most electronic components in electronic circuits can be interconnected by inserting their leads or terminals into the holes and then making connections through wires where appropriate. The breadboard has strips of metal underneath the board and connect the holes on the top of the board. The metal strips are laid out as shown below. Note that the top and bottom rows of holes are connected horizontally and split in the middle while the remaining holes are connected vertically. LDR: LDRs or Light Dependent Resistors are very useful especially in light/dark sensor circuits. Normally the resistance of an LDR is very high, sometimes as high as 1000 000 ohms, but when they are illuminated with light resistance drops dramatically.
  • 4. LED: LEDs are semiconductor diodes, electronic devices that permit current to flow in only one direction. The diode is formed by bringing two slightly different materials together to form a PN junction (Figure 2). In a PN junction, the P side contains excess positive charge ("holes," indicating the absence of electrons) while the N side contains excess negative charge (electrons). RESISTOR: A resistor is an electrical component that limits or regulates the flow of electrical current in an electronic circuit. Resistors can also be used to provide a specific voltage for an active device such as a transistor.
  • 5. RASPBERRY PI: The Raspberry pi is a single computer board with credit card size, that can be used for many tasks that your computer does, like games, word processing, spreadsheets and also to play HD video. • The raspberry pi comes in two models, they are model A and model B. The main difference between model A and model B is USB port. • Model A board will consume less power and that does not include an Ethernet port. But, the model B board includes an Ethernet port and designed in china.. • Essential hardware specifications of raspberry pi board mainly include SD card containing Linux OS, US keyboard, monitor, power supply and video cable. • Optional hardware specifications include USB mouse, powered USB hub, case, internet connection, the Model A or B: USB WiFi adaptor is used and internet connection to Model B is LAN cab
  • 6. CONSTRUCTION: The Raspberry Pi Light Sensor Circuit The circuit we are going to make for this tutorial is super simple and is great for anyone who is just starting out with circuitry. The light dependent resistor or also known as the LDR sensor is the most important piece of equipment in our circuit (obviously). Without it we wouldn’t able to detect whether it is dark or light. In the light this sensor will have a resistance of only a few hundred ohms whilst in the dark it can have a resistance of several megohms. The capacitor in our circuit is there so we’re able to measure the resistance of the LDR sensor. A capacitor essentially acts like a battery charging up whilst receiving power and then discharging when no longer receiving power. Using this in series with the LDR we can work out how much resistance the LDR is giving out thus whether it is light or dark. To get the light sensor circuit built correctly follow the steps below or check out the circuit diagram right underneath the steps. In the following steps I am referring to the physical numbers of the pins (Logical order). 1. First connect pin #1 (3v3) to the positive rail on the breadboard. 2. Next connect pin #6 (ground) to the ground rail on the breadboard. 3. Now place the LDR sensor onto the board and have a wire go from one end to the positive rail. 4. On the other side of the LDR sensor place a wire leading back to the Raspberry Pi. Hook this to pin #7. 5. Finally place the capacitor from the wire to the negative rail on the breadboard. Make sure you have the negative pin of the capacitor in the negative rail.
  • 7.
  • 8. We’re now ready to move onto the Python code, PHYTHON CODE: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) #define the pin that goes to the circuit pin_to_circuit = 7 def rc_time (pin_to_circuit): count = 0 #Output on the pin for GPIO.setup(pin_to_circuit, GPIO.OUT) GPIO.output(pin_to_circuit, GPIO.LOW) time.sleep(0.1) #Change the pin back to input GPIO.setup(pin_to_circuit, GPIO.IN)
  • 9. #Count until the pin goes high while (GPIO.input(pin_to_circuit) == GPIO.LOW): count += 1 return count #Catch when script is interupted, cleanup correctly try: # Main loop while True: print rc_time(pin_to_circuit) except KeyboardInterrupt: pass finally: GPIO.cleanup()
  • 10. IMPROVING ACCURACY & POSSIBLE USES: There are countless uses for a light sensor in a circuit. I will just name a few that I thought of whilst I was writing up this tutorial.  Light Activated Alarm – We can use the LDR to detect when it starts to get light so you can sound an alarm to wake up. If your program & sensor is accurate enough, you could have it slowly get louder as it gets lighter.  Garden monitor – A light sensor could be used in a garden to check how much sun a certain area of the garden is getting. This could be useful information if you’re planting something that needs lots of sun or vice versa.  Room Monitor – Want to make sure lights are always turned off in a certain room? You could use this to alert you whenever light is detected where it shouldn’t be. CONCLUSION: Hence, the LIGHT DEPENDENT RESISTOR project is done using RASPBERRY PI equipment.