I had the following two questions…
- What is the circuit diagram of the LDR project in the training?
- Why do we connect the resistor to the GND pin and A0 along with the LDR?
@lankabhedi here are the answers:
Note: Make sure that at no point do the 3.3V (or even 5V) and GND pins or wires coming out of them touch each other. If you short power to Ground without a resistor even accidentally, the current drawn might be high enough to destroy the Bolt module.
You can visit the Project 1 section to confirm the hardware connections.
Hardware Connections are as follows:
As Light Dependent Resistor (LDR) changes its internal resistance depending on the light conditions.
More the light = Less the resistance
Less the light = More the resistance
So, in order to make the LDR sense the light intensity we have to transform the change in the resistance to change in voltage. So this will be achieved by the Voltage Divider Circuit
The hardware connection for the actual project is different, we place the LDR in the first place and then a resistor of 10k ohm (Black, Brown, Orange) is placed as the second arm.
Resistor of 10k ohm is required because of the fact that the Analog 0 (A0) pin of bolt module operates for a voltage level of 0 - 1 V and we provide a 3V voltage to LDR. Due to the internal resistance of the LDR, the voltage level drops to a certain level but still that level is not within the 0-1V range in which the A0 pin capture the readings correctly.
Therefore, we have to use a resistor (which offers a resistance of 10k ohm) in order to make the voltage, going into the A0 pin, in the range of 0 - 1 V.
Note: We have to specifically use resistor of 10k ohm because 03 V voltage from the Bolt module can be converted in the 0 -1 V range only by the internal resistance of the LDR and an external resistance of 10k ohm.
I hop I have answered your query. So do mark the solution