Disclaimer – I do not, normally, dabble with electronics on a component level. I recently purchased a breadboard JUST so I could build and test the project described below. I have been working on this circuit in the evenings for a month now… and I think I’ve almost got it. What you are about to read is the culmination of my scouring the internet trying to “invent” a circuit for a specific need. Ultimately, I have joined this forum seeking help and advice. My terminology might be a little off, so I will be as descriptive as I can please bear with me.
I have built a circuit which triggers a relay upon a change-of-state of the light sensed, by a photo-resistor. The intent is that a motor should run for approximately .25 to .75 seconds each time the trigger light is switched ON or OFF. The timing really isn't important... It's driving an external momentary contact activated circuit.
On my breadboard, the circuit appeared to be functioning perfectly. However, now that I have soldered the components to a small PCB, I seem to be having intermittent trouble. Occasionally, the relay (driven by a 555 in monostable mode) does not stay latched. According to my O-scope (at the moment that this occurs), the output of the 555 is too short. I've monitored to capacitor's charge as well. During normal operation, I can see the capacitor's charge build up and discharge... as expected (see 7 in waveforms). But, when this "glitch" happens, It appears as though the capacitor is not charging (or charges instantly). It looks like I'm just getting a quick spike (*7 failed)... discharging the 555 almost as soon as it's triggered.
I would like this circuit to be sitting, waiting to be triggered. Its usage could be very erratic. It could get activated several times in a minute. Or, it might only get activated once in several hours. Right now, it just isn't reliable. Sometimes it will work 10-12 times in a row, without failing. Then sometimes it will fail 10-12 times in a row (during testing). It seems as though testing the circuit aggravates the problem.
It is my guess that I have been too conservative with my component usage. I didn’t include any “unnecessary” parts. If I didn’t notice a significant change in operation with or without a filter capacitor or resistor, then I didn’t include it in the final circuit. I think, I may be getting some sort of inductive feedback from the relay coil? Could that be the cause? Do any of you know what I’ve got wrong or what I should do differently?
Circuit Explanation: As the photo-resistor's value (2) changes it enters a pair of 741 Op-Amps (comparators)... one inverting and the other non-inverting, each with a mid-range threshold. Each Op-Amp's output [(4) and (5)] is rectified and the outputs are combined (6). The result is a negative pulse each time the photo-resistor senses a change from dark to light or light to dark (1). This negative pulse is sent to a 555 timer. The timer is configured as a monostable and using a 15KΩ resistor and a 47μF capacitor, I have achieved an output pulse (8) that is sufficient to activate a relay and begin driving a motor. Only a small amount of motor rotation is needed to ensure the sustaining contacts are made and the remainder of my contraption can function.
I have built a circuit which triggers a relay upon a change-of-state of the light sensed, by a photo-resistor. The intent is that a motor should run for approximately .25 to .75 seconds each time the trigger light is switched ON or OFF. The timing really isn't important... It's driving an external momentary contact activated circuit.
On my breadboard, the circuit appeared to be functioning perfectly. However, now that I have soldered the components to a small PCB, I seem to be having intermittent trouble. Occasionally, the relay (driven by a 555 in monostable mode) does not stay latched. According to my O-scope (at the moment that this occurs), the output of the 555 is too short. I've monitored to capacitor's charge as well. During normal operation, I can see the capacitor's charge build up and discharge... as expected (see 7 in waveforms). But, when this "glitch" happens, It appears as though the capacitor is not charging (or charges instantly). It looks like I'm just getting a quick spike (*7 failed)... discharging the 555 almost as soon as it's triggered.
I would like this circuit to be sitting, waiting to be triggered. Its usage could be very erratic. It could get activated several times in a minute. Or, it might only get activated once in several hours. Right now, it just isn't reliable. Sometimes it will work 10-12 times in a row, without failing. Then sometimes it will fail 10-12 times in a row (during testing). It seems as though testing the circuit aggravates the problem.
It is my guess that I have been too conservative with my component usage. I didn’t include any “unnecessary” parts. If I didn’t notice a significant change in operation with or without a filter capacitor or resistor, then I didn’t include it in the final circuit. I think, I may be getting some sort of inductive feedback from the relay coil? Could that be the cause? Do any of you know what I’ve got wrong or what I should do differently?
Circuit Explanation: As the photo-resistor's value (2) changes it enters a pair of 741 Op-Amps (comparators)... one inverting and the other non-inverting, each with a mid-range threshold. Each Op-Amp's output [(4) and (5)] is rectified and the outputs are combined (6). The result is a negative pulse each time the photo-resistor senses a change from dark to light or light to dark (1). This negative pulse is sent to a 555 timer. The timer is configured as a monostable and using a 15KΩ resistor and a 47μF capacitor, I have achieved an output pulse (8) that is sufficient to activate a relay and begin driving a motor. Only a small amount of motor rotation is needed to ensure the sustaining contacts are made and the remainder of my contraption can function.
Last edited: