LDR / Sensor as digital input.
If i use an LDR as the top part of a Voltage divider, emitting to the base of an NPN Transistor, when resistance drops across the LDR, is this ok? If the LDR resistance is 200Ohm to 10kOhm, and i want transistor to turn on at 10KOhm with 5v power, NPN turns on at 0.8v.
So 10,000 * 0.8 / 5v = 1400kOhm, therefore a 1.5kOhm resistor should suffice. And supply the necessary HIGH signal of a digital input?
I ask as i need the lowest component count, with the least amount of draw on my project, and hopefully help my project wake from its current sleep state.