I am a hobbyist, I shall take up your advice and work at a higher level. You are right in that working with discrete components only could increase my understanding of electronics but would detract from any projects I work as it has in this regard. An analog comparator seems perfect.
I'd previously thought of high level as being an arduino or a microcontroller which would require a lot more power with functionality I wouldn't necessarily use, I suppose with the building blocks you've recommended I'll only use as much functionality as I need.
As mentioned above, an analogue comparator is a good solution. A comparator is just a circuit which compares two voltages and turns its output on, when one of them is higher than the other.
There are a few catches for the beginner. For a start most comparator ICs limit on the input voltage range to slightly less than the power supply rails, with a range of 0V to +V-1.5V being pretty common, although some are more restrictive and others will work slightly outside the supply rails. Another name for this is common mode range. Another catch is the output of many comparator chips only pulls down to 0V, not up to +V i.e. it's a current sink, not source. This means to get a positive voltage out, a resistor needs to be connected to +V, also known as a pull-up resistor. Finally the maximum output current drive is typically only 10mA or so, before it either overheats or the output voltage starts to rise.
Going back to the original post: you didn't say how much power the light uses? If it's just a small 5mm LED, it can be driven directly by the comparator, otherwise a small relay or transistor will be required.
Here's how I'd do it. Because the comparator can only pull its output lower, a PNP transistor is used to drive the load, as it turns on, when its base is pulled below its emitter voltage, i.e. when U1's output goes low. R1 & R2 and R3 & R4 form two potential dividers. The voltages made by each potential divider are compared by U1. When the - input is higher than the + input, its output will go low, pulling the base of Q1 low, turning on the load. R5 is a positive feedback resistor which provides hysteresis. When the output of U1 is low, it's in parallel with R4 and when the output is high, it's in parallel with R3 (R6 and R7 are in series with R5 but are a low enough value to be ignored).
http://physicsnet.co.uk/a-level-physics-as-a2/current-electricity/potential-divider/https://www.electronics-tutorials.ws/resistor/res_4.htmlI selected R4 to be around the same value as you want your LDR to be when it turns on and 5k1 is the nearest E24 value. R1 = R3 and 68k were selected to ensure the voltage would still be 1.5V under the supply voltage, when the LDR is at its highest resistance of 180k, even if the battery voltage is 6V when it's nearly flat, so 4.5V. V = V1*R1/(R1+R2) = 6*(180+68) = 4.35V. I didn't worry about the value of R5 much, just select a resistor with a high value. If it oscillates, select a lower value resistor.
comparator basic pot divider.asc (2.1 kB - downloaded 43 times.)
EDIT:
Oh and on the subject of which comparator IC to use: it depends on the requirements. There are lots of good comparator ICs, which hardly use any power and will run of 9V, but many are in surface mount packages only. The LMC7211 and TSX3702 spring to mind, both of which have a push-pull output, which means R7 on my schematic can be omitted. If you want through hole, then there's the LM393, but it uses a bit more power.