I need a T flip-flop for 24V. The purpose is to take a 24V 50% duty cycle 0.5Hz pulse wave and halve its frequency to 0.25Hz, so that the output wave toggles between 0 and 24V 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 24V are uncommon, relays or transistors would be most suitable.
There is one solution demonstrated by CreativE EngineerinG (link) which I have replicated in 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 5V and not 24V, 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)?