Click the button at the bottom-left corner of the Proteus window. You will see the visual states of the relays flip sequentially, and the connected virtual lamps will turn on and off according to the timing specified in your code. Troubleshooting Common Issues
Click the button at the bottom-left corner of Proteus. Troubleshooting Common Issues
To make your simulation visually interesting, connect simple loads to the relay outputs. Since you're simulating high-voltage AC devices, use generic loads like a LAMP or MOTOR from the Proteus library. Connect the common (COM) terminal of a relay to +12V (or any voltage source you want to simulate) and the Normally Open (NO) terminal to your load.
Input control pins for each respective relay channel. --- 4 Channel Relay Module Library For Proteus
Connect the terminal of the relay to one terminal of your Lamp .
// Define relay input pins const int relayPins[4] = 2, 3, 4, 5; void setup() // Initialize all four pins as outputs for(int i = 0; i < 4; i++) pinMode(relayPins[i], OUTPUT); digitalWrite(relayPins[i], HIGH); // Turn off for Active-Low modules void loop() // Cycle through each channel sequentially for(int i = 0; i < 4; i++) digitalWrite(relayPins[i], LOW); // Turn relay ON delay(1000); // Wait 1 second digitalWrite(relayPins[i], HIGH); // Turn relay OFF delay(1000); // Wait 1 second Use code with caution. Troubleshooting Simulation Issues
Connect VCC and GND to the appropriate Arduino pins. Click the button at the bottom-left corner of
Connect the terminal to one terminal of your load (e.g., a lamp or motor).
If no library works, build your own macro in 5 minutes:
Optocouplers isolate low-voltage control circuits from high-voltage load lines to prevent electrical noise and damage. Input control pins for each respective relay channel
If your simulation doesn't work as expected, here are some common issues and solutions:
(To represent an AC load for simulation visualization) 2. Wiring the Schematic
Copy the downloaded .IDX and .LIB files into this folder.