digitalWrite(RELAY1, HIGH); delay(1000);
The "new" 4-channel relay module library changed this by introducing a ready-to-use component 4 channel relay module library for proteus new
: Many 4-channel modules use optocouplers to isolate the low-voltage control circuit from the high-voltage load; advanced Proteus models reflect this behavioral isolation. 4 channel relay module library for proteus new
[For Arduino] Library for working with a digital relay module. · GitHub 4 channel relay module library for proteus new
To protect the controller from electrical noise.
If the simulation does not work: