Daylighting Control

Discussion in 'The Projects Forum' started by Don Dody, Oct 28, 2012.

  1. Don Dody

    Thread Starter New Member

    Oct 28, 2012
    Hi everyone...

    I want to build a light regulating circuit. I plan to use LDRs as the sensor for this project, then ATmega8535, and some lamps or LEDs. Besides that, I also plan to use principle of pulse-width modulation to maintain a constant light level with a varying ambient level.

    Honestly I am new here and lack of experiences. Anyone can help me how to start my project?? Suggestion, references, links, or anything that can help me...
  2. praondevou

    AAC Fanatic!

    Jul 9, 2011
    Explain what exactly the circuit has to do. Just turn on some lamps when it's dark outside? Then a uC would be overkill.
  3. wayneh


    Sep 9, 2010
    My light switches all do exactly that; maintain a level (albeit just on or off) regardless of ambient.

    As noted, you need to be more precise. If you want the controlled level to vary WITH ambient - for instance to dim somewhat when ambient light goes down, you have the problem of the control responding to itself - positive feedback. Perhaps you want the lights to vary OPPOSITE ambient - to get brighter when the sun goes down, for instance.
  4. id_ruben

    New Member

    Oct 27, 2009
    ATmega Control DC Lamp intensity with LDR Sensor

    LDR and resistor voltage divider.
    If light levels high the resistance LDR low, adc voltage rises, the microcontroller increasing PWM duty cycle at OCR pin, mosfet more connected, caused average voltage the lights to be higher so the light bulb becomes brighter.

    Don Dody likes this.
  5. Don Dody

    Thread Starter New Member

    Oct 28, 2012
    If I want to control 220 Volt AC lamp, what will I need ? Please tell tell me the complete connection from micro-controller output to the lamp..

    Thank You....
  6. Don Dody

    Thread Starter New Member

    Oct 28, 2012
    Yes, that is exactly what I mean. Now, what do I need If I want to control/vary the intensity of AC lamps? I mean the dimmer circuit from MUC to the lamp?
  7. ScottWang


    Aug 23, 2012
  8. Don Dody

    Thread Starter New Member

    Oct 28, 2012
    Thanks for your help. Actually I need the circuit starting from the microcontroller up to the AC lamp (220V). Can you give me the clearer one?