IoT first hands-on project

How the light(variable_name) is calculated?? Actually when we shed more light into the LDR the value shoots up to thousand and when less light falls into LDR , the value is
less.

Actually LDR works like: when more light falls into it, resistance drops and less voltage is pulled in, right?

But how the thing works here, can anybody throw some light into this question?

@sanjaynh22 As mentioned in the training video, LDR works on a voltage divider circuit. We have 2 components LDR and a fixed resistor of 1k ohm. The internal resistance of LDR changes according to light intensity and another resistance is fixed. So the value of light is nothing but the rate of change of resistance with respect to fixed resistance.

ADC pin of Bolt Wifi module calculates voltage levels and converts them into digital output. These values are then pushed to the cloud by the Bolt Wifi module. And that’s how you see values on the cloud dashboard.

Hope this answers your query.

1 Like

As voltage is directly proportional to resistance, the change in internal resistance changes the voltage levels, which will be calculated by the ADC pin and it converts them into digital output and pushed to the cloud, right?

@sanjaynh22 Yes. You can say that.

1 Like

Ok! Thank You @shobhit.kumawat

1 Like

LDR works on a voltage divider circuit. We have 2 components LDR and a fixed resistor of 1k ohm. The internal resistance of LDR changes according to light intensity and another resistance is fixed.