Hello
I am in the very early stages of making a light sensitive circuit using a microcontroller.
the idea is to have a variable setting using a LDR and a variable resistor to allow me to fine tune at what light levels is want to trigger pulses to a RC servo to either open or close a door.
From what i have been reading it seems the pulses part of the project to the servo is fairly easy, but not sure of best way to use the LDR, i am using a pic 16f690 (but only because my progger come with it).
Was wondering if this would work picture hopefully attached, by making one of the pins high, or is the comparator the best way to go.
anyone acheived something like this before or tips or pit falls to consider, novice at electronics and pic programming so please dont assume i will understand if getting technical LOL many thanks
Phil
I am in the very early stages of making a light sensitive circuit using a microcontroller.
the idea is to have a variable setting using a LDR and a variable resistor to allow me to fine tune at what light levels is want to trigger pulses to a RC servo to either open or close a door.
From what i have been reading it seems the pulses part of the project to the servo is fairly easy, but not sure of best way to use the LDR, i am using a pic 16f690 (but only because my progger come with it).
Was wondering if this would work picture hopefully attached, by making one of the pins high, or is the comparator the best way to go.
anyone acheived something like this before or tips or pit falls to consider, novice at electronics and pic programming so please dont assume i will understand if getting technical LOL many thanks
Phil