free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
rahuljin
Mon May 26 2008, 02:49AM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 87
Thanked 0 times in 0 posts
i have some ldr and i want to make photo sensors with them !!! i tried to google but not found any circuit !!!

i have small type ldr !!! please anybody, provide a circuit diagram with some details to use it with microcontroller(89s52)



[ Edited Mon May 26 2008, 02:51AM ]
Back to top


Arun Kumar V
Mon May 26 2008, 12:08PM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 452
Thanked 190 times in 160 posts

Hi,

i don't know your skill level with micros but you can try reading the LDR value with ADC and micro, display the value on lcd - simple light/lux meter


Arun
Back to top


pdi33
Mon May 26 2008, 02:07PM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 655
Thanked 144 times in 140 posts
note that an LDR responds in an extremely non-linear way to the light intensity. The resistance of a LDR aries from a few meg-ohms in dim light to a few kilo ohms in bright light (maybe even a few ohms depending upon the light intensity and LDR used.). So I would suggest that u first connect the LDR as shown below:

VCC ------ LDR ------- 1K resistor -------- GND.
and plot the voltage across the !K resistor w.r.t different light intensities on the LDR.
then connect this voltage output to a ADC via a simple non-inverting op-amp ampilifier and connect the ADC to the uC as Arun suggested.

U may require to make a lookup table in the coding part to convert the readings to a LUX value.



* inspired to develop,developing to inspire *
Back to top


rahuljin
Mon May 26 2008, 06:35PM
 User Offline
Registered Member #3897
Joined: Fri Sep 07 2007, 01:19PM

Posts: 87
Thanked 0 times in 0 posts
thanks to both of u !!! i will try this
Back to top


electronicfreak
Tue Aug 05 2008, 09:30PM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
pdi33 wrote ...

note that an LDR responds in an extremely non-linear way to the light intensity. The resistance of a LDR aries from a few meg-ohms in dim light to a few kilo ohms in bright light (maybe even a few ohms depending upon the light intensity and LDR used.). So I would suggest that u first connect the LDR as shown below:

VCC ------ LDR ------- 1K resistor -------- GND.
and plot the voltage across the !K resistor w.r.t different light intensities on the LDR.
then connect this voltage output to a ADC via a simple non-inverting op-amp ampilifier and connect the ADC to the uC as Arun suggested.

U may require to make a lookup table in the coding part to convert the readings to a LUX value.




can i connect directly to micro other than connecting to GND ,like this
VCC ------ LDR ------- 1K resistor -------- uC(ADC)


SACHIN
http://belgaum.myminicity.com/
Back to top


Arun Kumar V
Wed Aug 06 2008, 02:39AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 452
Thanked 190 times in 160 posts


hi,

No,you cannot connect LDR that way, you would be measuring Current and not Voltage.

you need to connect one end of 1K resi to Gnd and connect the junction of LDR and other end of 1K resi to ADC, this way the analog voltage is referenced to Gnd.



Arun
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems