I need a T flip-flop for 24 V. The purpose is to take a 24 V, 50% duty cycle, 0.5 Hz pulse wave and halve its frequency to 0.25 Hz, so that the output wave toggles between 0 and 24 V at the input's rising edge.
I know one solution is to use an impulse latch relay, but those are quite large and expensive.
Since logic circuits for 24 V are uncommon, relays or transistors would be most suitable.
There is one solution demonstrated by CreativE EngineerinG (link) which I have replicated in the Falstad simulator (link), but the simulation does not work properly. I'm unsure about this solution because the simulation does not work and because I need to purchase the components before constructing the circuit, so I must be sure that it works. Plus, this solution is for 5 V and not 24 V, so the components values must be different, and higher power BJTs will have different internal characteristics.
What is the best solution (preferably one that can be simulated)?