# Yummy Gray Esper Photo Analyser ## Description Light Detection: The LDR detects the ambient light level. When it is dark, the resistance of the LDR is high, resulting in a higher voltage at the inverting input (pin 2) of the op-amp. Comparison: The op-amp compares the voltage at pin 2 with the reference voltage set at pin 3 by the potentiometer (R3). If the voltage at pin 2 is higher than the reference voltage at pin 3 (indicating darkness), the op-amp output goes high. Transistor Activation: The high output from the op-amp turns on the transistor (Q1) by providing base current through R4. Relay Activation: When Q1 is turned on, current flows through the relay coil, energizing it and closing the relay contacts. Lamp Operation: The closed relay contacts complete the AC circuit, allowing current to flow and turning on the lamp (LA1). Light Detection (Daytime): When it is light, the resistance of the LDR decreases, resulting in a lower voltage at pin 2 of the op-amp. If this voltage is lower than the reference voltage at pin 3, the op-amp output goes low, turning off Q1, de-energizing the relay, and turning off the lampWelcome to your new project. Imagine what you can build here. ## Project Details - **Owner:** lfelipe1405 - **Created:** 6/12/2024 - **Last Updated:** 6/12/2024 - **Visibility:** Public ## Key Components ### AC — [Sinusoidal Voltage Source 120Vrms](https://www.flux.ai/vericardo/sinusoidal-voltage-source-16vrms~2w.md) - Part Type: Power Source - Frequency: 60Hz - Peak Voltage: 170V - Damping Factor: 01/s - Phase Offset: 0° - Delay: 0s - DC Offset: 0V **Pins:** - Anode - Cathode ### D1 — [1N4004](https://www.flux.ai/jecstronic/1n4004~a6t.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Diode - Manufacturer Part Number: 1N4004 - Datasheet URL: https://www.onsemi.com/pdf/datasheet/1n4001-d.pdf - Manufacturer Name: NTE Electronics, Inc **Pins:** - anode [pin 2] - cathode [pin 1] ### DC — [DC Supply](https://www.flux.ai/jharwinbarrozo/dc-supply~35.md) - Voltage: 5V **Pins:** - ANODE - CATHODE ### F1 — [Fuse 0603 1608Metric](https://www.flux.ai/adrian95/fuse-0603-1608metric~mg7.md) - Part Type: Fuse **Pins:** - P1 - P2 ### IC1 — [LM358P](https://www.flux.ai/jecstronic/lm358p~nus.md) - Manufacturer Part Number: LM358P - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm358 - Part Type: Operational Amplifier (OP-AMP) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Texas Instruments **Pins:** - -IN1 [pin 2] - -IN2 [pin 6] - +IN1 [pin 3] - +IN2 [pin 5] - OUT1 [pin 1] - OUT2 [pin 7] - V- [pin 4] - V+ [pin 8] ### LA1 — [LED](https://www.flux.ai/jharwinbarrozo/led-tht~gr.md) - Emission Coefficient: 3.73 - Series Resistance: 0.42Ω - Breakdown Voltage: 0V - Forward Voltage: 1.70 - Saturation Current: 93.2e-12A **Pins:** - A [pin 2] - K [pin 1] ### LDR1 — [Photo Resistor LDR](https://www.flux.ai/jharwinbarrozo/photo-resistor-ldr~0x.md) - Resistance @ Illuminance Rating: 27kΩ - CdS: 0.8 - Part Type: Resistor **Pins:** - P1 - P2 ### Q1 — [2N3904](https://www.flux.ai/adrian95/2n3904~a6d.md) - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Transistor - Datasheet URL: https://www.nteinc.com/specs/original/2N3904.pdf - Manufacturer Part Number: 2N3904 - Manufacturer Name: NTE Electronics, Inc **Pins:** - B [pin 2] - C [pin 3] - E [pin 1] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/lfelipe1405/yummy-gray-esper-photo-analyser~de](https://www.flux.ai/lfelipe1405/yummy-gray-esper-photo-analyser~de).* --- *Generated from [https://www.flux.ai/lfelipe1405/yummy-gray-esper-photo-analyser~de](https://www.flux.ai/lfelipe1405/yummy-gray-esper-photo-analyser~de)*