Yep that worked I built and tested it now I think I'm ready to build a test in real life. Where would you recommend to buy the parts? And anything I should do or know before ordering? And again thank you for all the help
If you're in the USA then there are several such as Digikey or Mouser. In Europe, Farnell is often used.
Note the package types of all the IC's and other parts you order. You don't want a package type that's difficult to solder to a perf-board. You normally want to use DIP package ICs. I also recommend sockets for the ICs since it makes it much easier to troubleshoot and replace any faulty parts.
Breadboarding techniques vary. Although you could breadboard surface mount, it's probably not the job for a beginner.
Vector is a major player for breadboards. No pads (perf board), pad per hole, strip boards are all different designs.
I would use machine pin sockets for the IC's in an automotive environment. Connectors that are gold flashed might also be useful. You will probably need a crimping tool.
There is available a pin like terminal that can make resistors appear separate from the connecting traces that you make underneath with wires. These "Vector T-42" https://www.mouser.com/ProductDetail/Vector/T42-1-C/?qs=RPC3RGMGIuY5byT1Qp55gA== They press into a 0.042 hole with a tool, which has gotten really expensive.
Wire-wrap wire, is Kynar insulated and I've used it to make the connections on the bottom of the board. It is hard to strip. The dispensers are nice, because it comes with an integral stripper and cutter. 22 AWG bare wire is also helpful.
Got the bread board and the parts and built a mock up for testing. I got everything working except the flip flop. Everything I looked up puts the clk high to get it to switch. Also I assumed PRE was set and CLR was reset.
If your having problems with the power up condition of the FF, you may have to place a Schmidt trigger in the line to the CLK input. Inputs have to have really well-defined edges to work.
PRE usually set Q to 1. RST usually sets Q to 0. I did not look at the actual datasheet.
One think is certain, that you need a clean edge.
If you can, set he clock to a steady state and make sure power up sets the FF as desired.
CLK is usually EDGE TRIGGERED and they mean it. Sloppy edges won;t work.
Got the bread board and the parts and built a mock up for testing. I got everything working except the flip flop. Everything I looked up puts the clk high to get it to switch. Also I assumed PRE was set and CLR was reset.
Yes, as I noted in my post, the FF switches at the end of the pulse from L3 (ON switch) which is the rising edge of the pulse (the L3 pulse voltage is normally high at steady-state).
R2 and C1 generate a momentary High signal to the CLR input to reset the FF Q output to the Zero state at power up. The CLR input is asynchronous (insensitive to the clock) and does not need a fast edge since it responds only to the voltage level.
Of course it won't. An open circuit is not a logic one at the input to CMOS digital circuits, it's an indeterminate state. That's why I previously said you need to connect all unused CMOS inputs to ground.
If you add a pull-up resistor to the +V from the clock input, then it will activate the FF when you momentarily ground the clock input. But note that clocking the FF that way will likely introduce bounce in the signal which may clock the FF more then once.
Edit: Upon reflection, the bounce of the ON switch could also cause multiple clocking of the FF. To prevent this, connect a 50k ohm resistor between the FF /Q output and the D input. Also connect a 10uF capacitor from the D input to ground. This will provide a delay so the FF can't rapidly toggle even with multiple fast clock pulses.
If switch bounce is a problem with any of the other outputs, let me know. We can add some additional capacitors to prevent that.