Use an LS74 D flip-flop with not_Q connected to D with a 1Kohm and connect a 100microF from D to GND ( - side to GND)
If you need more current than about 10mA, add a transistor
(e.g. 2N2222 : drive base with 2Kohm from Q and add a diode
parallel to coil in the collector ( Anode to coll, cath. to
+V )
I've tried this circuit but i've got a problem.
Every time i turn the circuit power off and on again, the switch may be on or off.
How can i ensure that every time i turn off and on the power in this circuit, the first state will be off ???
A simple one is a capacitor and a resistor. Connect the capacitor to the V+ and the resistor to the GND and the common point to the R input of your bistable.
When power is applied you will get a short positive pulse on the R input, which will keep your bistable in the OFF state.
If your reset input needs a zero to activate (that is a /R input) then connect the resistor to the V+ and the capacitor to GND.
If you are using CMOS then any reasonable resistor (1 kohm - 1 Mohm) can be used, the capacitor can be choosen even more freely. A good working combination is 10 kohms and 100 nanofarads. It will give you a 1 millisecond time constant and the reset pulse will be in the same order of magnitude.
If your supply voltage has a very long rise-time, you will need a longer time constant. Select a 1 microfarad capacitor and a 100 kohm resistor.
For TTL, you will need a much lower resistor (100 - 330 ohms) and a higher capacitor value. Go for electrolytic capacitors if you need more than a few microfarads.