// RelayDemonstration2.ino
//
// 11 February 2022, Version 1, by Koepel, Public Domain
//
// The sketch is empty!
// There are only relays.
//
// This is a "Set" and "Reset" circuit with three relays.
// The circuit on the left has a H-Bridge output.
// The leds show the current direction.
// The H-Bridge uses all the relay output contacts, so a third relay was needed.
//
// For the other circuit with two relays see:
//   https://wokwi.com/arduino/projects/322802227591774802
//

void setup() {}
void loop() {}
ATTINY8520PU
tiny:PB5
tiny:PB3
tiny:PB4
tiny:GND
tiny:PB0
tiny:PB1
tiny:PB2
tiny:VCC
sw1:NO2
sw1:NC2
sw1:P2
sw1:COIL2
sw1:NO1
sw1:NC1
sw1:P1
sw1:COIL1
sw2:NO2
sw2:NC2
sw2:P2
sw2:COIL2
sw2:NO1
sw2:NC1
sw2:P1
sw2:COIL1
sw3:NO2
sw3:NC2
sw3:P2
sw3:COIL2
sw3:NO1
sw3:NC1
sw3:P1
sw3:COIL1
led1:A
led1:C
r1:1
r1:2
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
led2:A
led2:C
btn2:1.l
btn2:2.l
btn2:1.r
btn2:2.r