Hi everyone, i was asked by few questions which confused me for quite some time,
We all know that in order to control the LED brightness, we can use a resistor in order to control the brightness,
but i was told that this isnt a good idea because it dissipate some power.
and i was told there is a better way which is to use the motor to control the LED brightness and it is perfered because it doesnt dissipate power.
If anyone know know what it the method and how is it be done?
my 2nd question is in order to use PIC to detect light source, i planning to use a LDR(Light Dependant Resistor) on it. But the problem is LDR detect light by varying the resistance and PIC detect the signal by voltage, the problem is how do i convert the change in resistance to voltage signal in order to be detected by the PIC?
We all know that in order to control the LED brightness, we can use a resistor in order to control the brightness,
but i was told that this isnt a good idea because it dissipate some power.
and i was told there is a better way which is to use the motor to control the LED brightness and it is perfered because it doesnt dissipate power.
If anyone know know what it the method and how is it be done?
my 2nd question is in order to use PIC to detect light source, i planning to use a LDR(Light Dependant Resistor) on it. But the problem is LDR detect light by varying the resistance and PIC detect the signal by voltage, the problem is how do i convert the change in resistance to voltage signal in order to be detected by the PIC?