I'm working on a project that uses an LDR to switch between two mutually exclusive functions. So, when it's bright and sunny, do X and when it's nighttime do Y. The daytime function will involve a PID controller to control a motor (through relays), the nighttime function will cause the motor to "park" and then sleep until daytime. I've decided to do as much of this as possible using discreet components because the object of the exercise is to learn electronics (and I'm something of a masochist). I'm looking at each section independently and I decided to look at the LDR switch, thinking it would just be a matter of a transistor ot two. Using the following basic transistor switch as my guide, I tried a number of configurations to try to get that SPDT action I required. They all failed - some worse than others. ![Basic Transistor Switch][1] Most of my efforts involved attempting to cascade transistors by attaching the collector of one to the base of the other with the loads in various positions. In general, I had two main problems: either the current flowing through one or more of the branches was quite low or one of the branches wouldn't turn off completely (or at least to an acceptable level). Now I know I'm not using proper load figures as I should to fine tune the operation of the transistors, but I wonder if transistors are the best option for this type of problem. So, my question is simply this: am I barking up the wrong tree trying to get nicely isolated switch (like a relay - but without using a relay) using transistors only? I'm guessing this requirement is common as muck, so how is this normally achieved? [1]: https://i.sstatic.net/sWHW0.png