IR Switch. Will this work?

Hi Guys & Girls
Obviously, i am new to this and my electronics knowledge is very limited.
Let me first explain what my desired outcome is and then proceed with the questions i have.
In the schematic below i connected two circuits that i found. One is a infrared receiver and the other a flip flop. With that, the following needs to happen : when the user presses a button on a IR transmitter aimed at the receiver circuit in the schematic it is sent through pin 3 to the flip flop circuit which in turn puts the relay in a (permanent) ON state. When the user presses the same button again, the process is repeated and puts the relay in a (permanent) OFF state. So bottom line a 1 button/channel IR press on press off switch to switch my 12v circuit on/off.
Here are my questions:
1. Is the receiver circuit correct as i have drawn it i.e. will it work?
2. Is the flip flop circuit correct as i have drawn it i.e. will it work?
3. Where i have the red circle : 1. Is the connection between the receiver and flip flop circuit there correct? 2. Do i need another resistor there?
4. Do i need a “floating resistor” as a R5 around the relay and how does the practical application of this look (on all the diagrams i look at it’s drawn around the relay going from an input to an output on the same wire......does that mean that on the pcb it will run parallel between the “pos+ and neg-“ going into the relay?)
5. Is my relay connection correct within the blue circle?
6. All and all, put together will my circuit work as expected?
I know there are probably a whole bunch of ways to achieve the result i am looking for and being a noob, this might be the most impractical(i don’t know), but the reason i went this route is because i have these components available to me and if at all possible, i would not want to go and buy other components.
Thanks in advance for any help provided. I find it much easier to learn by building the circuits and then seeing with a multi meter etc. what the effects of each component is than reading through all these books and trying to cram everything into this thick skull of mine 

Schematic Component Values :
R1 = 220k ; R2 = 100k ; R3 = 10k ; R4 = 10k ; R5 = ?
C1 = 1uf ; C2 = 0.01uf ; C3 = 10u
Rx1 = Any tsop/similar
U1 & U2 = 555 timers

Picture of IR Switch. Will this work?
revised ir switch.jpg
sort by: active | newest | oldest
steveastrouk2 months ago

I don't think this will work. There isn't a way for the flip-flop to reset as far as I can see. If it were me, I'd make a J-K flip flop from either proper J-K package or make one up from NAND gates. Then I'd tie J and K high, and push my IR pulses into the clock pin. Then the output toggles.

GhengisKhan1981 (author)  steveastrouk2 months ago

thanks Steve. Awesome link btw, i already downloaded all the modules and i'm stoked to start cramming ;)

iceng2 months ago

If you put proper dots on junctions differentiating pass-over wires on the schematic and not hide wires with orange lines. So the outputs are not competing with each other, may offer a reasoned response...

GhengisKhan1981 (author)  iceng2 months ago

apologies for the giant orange lines, in retrospect....i see how daft that was lol.

i was trying to make a clear differentiation between circuit 1 and 2.

See below in reply to Steve, i posted a revised scheme*(no orange lines) and i changed the connection points color from grey to red.

British standard practice allows joints to not be market by dots. There is no acceptable meeting at a crossroads for joints, they must allways be T junctions, so if you see a + you are always seeing a crossover

GhengisKhan1981 (author)  steveastrouk2 months ago

thx. did not know that.....i will go read up on the standard practices a bit more. I use pcb express and just conformed to what their system is set up for. The dots are actually there, they are just grey.....i added a revised one where i changed the color to red, so it will be more visable.

revised ir switch.jpg
iceng2 months ago

Wire it up that is how you learn..

GhengisKhan1981 (author)  iceng2 months ago

thanks, i fully get your logic, but consider this.....

there are a whole bunch of awesome and helpful experts here on this site that would not have to prototype this circuit to be able to tell me if it is correct or not therefore, my logic is ........why burn a bunch of components when i can get the correct thing without all the burning. The learning experience will be much the same as i will still be able to see where i went wrong. :)

steveastrouk2 months ago

Not sure what the point of 555 number one IS.

GhengisKhan1981 (author)  steveastrouk2 months ago

no idea, i got the two circuits off the interwebs and put them together. I know that a transistor can be used, but i don't want to mess around with the circuit too much due to the limited amount of components i have available at present.