Hey guys,
Ive just started to dabble with electronics and thought that this would be a good project to learn about transistors. The goal is to have a mechanical switch (normally open) that when closed turns on a motor, but then stop the motor after ~20 seconds if the switch doesn't become open again. I currently have the op-amp set up so that Vcc+ = 9V, Vcc- = 0, V- = 1V, and V+ is the voltage across the cap (Vc). The issue is that the led turns off when V+ = V- but then turns back on right after.
Most of the resistor values are 330 or less, the drain resistor R is 33k, C is 220uF, op amp output when switch is open is 7.5V and then drops to .88V when closed and to .05 when V- is reached and then jumps back to .88V, the cap gets charged to a max of 7.5V and then drains to .45V. The NPN's are 2n3904 and the PNP is 2n3906. Right now I'm just using LEDs to test the circuit and will get adequate components to run the motor, and I removed the resistor from the output to the base.
The last thing to note is that when I make Vcc- = -9V, the circuit works as I had intended and goes down all the way to -9V as expected, -.88 or something akin to that.
My questions are essentially: Why does the op amp output voltage drop so low when the switch is closed and why does it go from on to off and back to on? Why does -9 work? Any info you can give me on operation is much appreciated as well as any other circuit ideas. Also, I am trying to stay away from IC's so I can get a better handle on transistor switching (first time using them) but any ideas with them are welcomed so i know for future use.

Ive just started to dabble with electronics and thought that this would be a good project to learn about transistors. The goal is to have a mechanical switch (normally open) that when closed turns on a motor, but then stop the motor after ~20 seconds if the switch doesn't become open again. I currently have the op-amp set up so that Vcc+ = 9V, Vcc- = 0, V- = 1V, and V+ is the voltage across the cap (Vc). The issue is that the led turns off when V+ = V- but then turns back on right after.
Most of the resistor values are 330 or less, the drain resistor R is 33k, C is 220uF, op amp output when switch is open is 7.5V and then drops to .88V when closed and to .05 when V- is reached and then jumps back to .88V, the cap gets charged to a max of 7.5V and then drains to .45V. The NPN's are 2n3904 and the PNP is 2n3906. Right now I'm just using LEDs to test the circuit and will get adequate components to run the motor, and I removed the resistor from the output to the base.
The last thing to note is that when I make Vcc- = -9V, the circuit works as I had intended and goes down all the way to -9V as expected, -.88 or something akin to that.
My questions are essentially: Why does the op amp output voltage drop so low when the switch is closed and why does it go from on to off and back to on? Why does -9 work? Any info you can give me on operation is much appreciated as well as any other circuit ideas. Also, I am trying to stay away from IC's so I can get a better handle on transistor switching (first time using them) but any ideas with them are welcomed so i know for future use.