| You are here: Home ¬ Electronics ¬ Circuits ¬ Pic circuits ¬ On-off sequence of three relays with a push button |
On-off sequence of three relays with a push button, microcontroller PIC 12F675 |
If we have left on, for example, the relay number two, when we empower the circuit again, the microcontroller will turn on the relay number 2 again. If we press the
If we press it again, the relay number three will turn off and the relay number one will turn on, and so on.
The .hex program that we provide you with has to be saved on a microcontroller PIC 12F675, the one we’ve used for this project.
When we save the microcontroller PIC 12F675 and we use it for the first time, we’ll have to press the button various times, until the first relay is activated, in order that the counter circuit and the PIC’s intern eeprom function correctly.
Once when we activate the relay, it will repeat the on-off cycle in sequence undefined number of times.
The wiring diagram
![]() |
The circuit board.
![]() |
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 programming microcontrollers, here is the information.
If you don´t know how to make a printed circuit boards click here.

