I have a number of switch / out with an infrared remote control TV as a transmitter, which is great for me to work yet there is something that I add, or you must remove or change to better? 4013 is configured to switch on / off switch, namely the production will remain high until the clock is replaced by a high level, and will remain until replaced by another , then the output will go low, and so on. if the TV remote control is pressed, it sends the signal (pulse) to the receiver, making the CLK output transistors have to activate the double flip-flop IC, I, nor the 47uF capacitor, so if it is considered that the pulse is High input CLK, while the TV remote control is pressed when you press the remote (off), the pull-down resistor 10K, stream discharge capacitor and the output remains high until the process happens again, then the output remains low, and so on.
4013, that the isolates from large voltages / currents. Inside the 3011 is an LED and a photo-transistor. The LED lights up when Q goes high, and in return the photo could transistor. Alternatively, the IC triggers a triac.
What I want to do is develop the setup to be triggered with the touch switches work or a facility managed by infrared.
Here is a diagram of the original circuit. I crossed the touch-switch on the top because they do not work properly. Now there are two resistors, capacitor, and a trigger for clock generation Schmit