Step 3The code
The program has buttons 1&3 switch one relay, buttons 2&4 switch the other relay, and button 5 starts switching the relays randomly, between five and fifteen minutes apart.
You'll notice two commented-out sections. I used to have buttons 3&4 latch the relays - press them once and they'd close, press them again and they'd open. That's not appropriate for a doorbell, but I left the code in the file in case I use the box for something else.
relay-box.bs23 KB| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|







































