Loading simulator…
An LDR changes resistance with illumination, but an ADC reads voltage. A divider converts the resistance change into ADC_IN, chosen to rise as light intensity increases.
LDR1 connects from VCC = 3.3 V to the output junction. The solution adds R_FIXED = 2.2 kΩ from that junction to GND.Convert resistance to voltage. The output follows:
The LDR resistance decreases with increasing lux, so the output voltage increases.
R_LDR is large and most supply voltage falls across it, keeping ADC_IN low. As illumination grows, R_LDR decreases and the lower resistor receives a larger fraction of 3.3 V.Set LDR1 to 10, 100, and 500 lux in EWsim. Observe the monotonic rise of ADC_IN and compare with the task limits. Swap the positions of LDR1 and R_FIXED as a learning experiment: the voltage then falls as light increases.