EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / automatic street light controller dbt

automatic street light controller dbt

|

Microcontroller › 8051 › automatic street light controller dbt

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 9 months ago by Ashutosh Bhatt.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 6, 2014 at 1:52 pm #2923
    Rinu
    Participant

    This is my first proj in microcontrollers and i’m really confused on how to interface the ldr to 8051.

    do i need to make use of an adc or a comparator , or is it possible that the output of ldr circuit can directly be fed to the microcontroller pin????Please do help me with a circuit diagram

     

    In addtn to this i also have a pir sensor interface to 8051 for variation of light intensity at night on human detection…

    Thanks in advance !!!

    March 6, 2014 at 5:01 pm #11216
    Ashutosh Bhatt
    Participant

    using  LDR with an ADC or comparator depends upon what you want to do

    if you simply want to ON / OFF LED light as light fall / not fall on LDR then use comparator

    if you want to vary intensity of LED as light intensity changes then use ADC

     

    yes also you can fed direct output of LDR to micro controller. in that case try to detect logic 1 on pin when light does not fall on LDR

    March 6, 2014 at 5:53 pm #11217
    Rinu
    Participant

    My project is automatic street light controller with light intensity variation at night based on human detection.The lights will be on with 50% power when there is no human detection by the pir sensor and light intensity will be maximized when person is detected.

     

     I’m sorry bt i didnt clearly understand the last option on feeding the output of the ldr circuit (which is analog) to mcu directly, is that possible by suitable coding or something or is it done using some circuit ?

    March 7, 2014 at 8:00 am #11229
    Ashutosh Bhatt
    Participant

    forget about giving direct output of LDR to micro controller

    because you need to vary intensity so you have to use ADC.

    as light intensity falling on LDR changes LDR op voltage chages.

    this voltage is given as input to ADC so its digital output will also changes. change in this output will change intesity of LED.

    to change LED intensity use built in PWM of AVR controller.

     

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • What is involved to convert a small town to fiber optic? December 13, 2025
  • Measuring controller current output with a meter December 13, 2025
  • Oshonsoft MSSP simulation question December 13, 2025
  • Droplet1 December 12, 2025
  • Help to Identify capacitor fault December 12, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise