| You are here: Home ¬ Electronics ¬ Circuits ¬ Home circuits ¬ On/off push button |
On/off push button with 12F675 microcontroller |
The mentioned impulse is connected by 10K resistor to the base of the transistor, which touches the relay that activates the switch, thus activating the unit to which is connected. If an impulse is 1 (5 volts), the relay is stimulated and it connects the cables in the electrical connector’s terminals, marked as on-1 and on-2. And if an impulse is a zero (0 volts), the relay disconnects the previously mentioned cables.
Obviously, the PIC 12F675 has to be constantly empowered so that we can turn the unit on again. If you don’t like this last solution, don’t worry, because each time we press the button, the PIC passes to “sleep” mode and in this mode the power consumption is practically zero.
In fact, if we measure the PIC consumption with an ammeter, it will show the value of 0,00 amperes.
The wiring diagram.
![]() |
The circuit board.
![]() |
The .hex code is a program which should be saved in the microcontroller PIC 12F6755.
If you don’t know how to programming microcontrollers, here is the information.
The scheme and the circuit board should be in the same folder and they should have the same name, you should only change the extension to .sch for the scheme and to .brd for the circuit board, this way both of them will be recognized and associated by Eagle.
If you don´t know how to make a printed circuit boards click here

