Once you have either wired the 4 relays or imported the module, here is a simple Arduino sketch to test the simulation.
Connections:
Test Code:
// Define Relay Pins #define RELAY1 2 #define RELAY2 3 #define RELAY3 4 #define RELAY4 5void setup() // Initialize pins as outputs pinMode(RELAY1, OUTPUT); pinMode(RELAY2, OUTPUT); pinMode(RELAY3, OUTPUT); pinMode(RELAY4, OUTPUT);
void loop() // Turn all relays ON (Active LOW for most modules, HIGH for simulation logic) // Note: In Proteus simulation, logic depends on the specific model. // Standard models usually use HIGH to activate the coil. 4 channel relay module library for proteus new
digitalWrite(RELAY1, HIGH); delay(1000);
digitalWrite(RELAY2, HIGH); delay(1000);
digitalWrite(RELAY3, HIGH); delay(1000);
digitalWrite(RELAY4, HIGH); delay(1000); Once you have either wired the 4 relays
// Turn all OFF digitalWrite(RELAY1, LOW); digitalWrite(RELAY2, LOW); digitalWrite(RELAY3, LOW); digitalWrite(RELAY4, LOW);
delay(2000); // Wait 2 seconds
While older Proteus libraries contained generic relay components (e.g., RELAY or RLY-SPST), they lacked the integrated structure of a ready-made module. A standard 4-channel relay module (commonly based on the SRD-05VDC-SL-C or JQC-3FF relays) includes: Test Code: // Define Relay Pins #define RELAY1
The new library replicates this exact board layout, saving hours of manually assembling discrete components in a schematic.
Since the official Proteus (Labcenter Electronics) library does not natively include this composite part, you must download it from third-party repositories. For safety and reliability, follow these steps:
Step 1: Visit a trusted library repository (e.g., The Engineering Projects, GitHub, or Proteus Library Community).
Step 2: Search for "4 Channel Relay Module Library for Proteus New".
Step 3: Download the .IDX, .LIB, and .HEX files (if provided). Sometimes the package includes a simulation model.
Step 4: Ensure the file was updated after January 2023 to be considered "new" and compatible with Proteus 8.9 or 8.10+.
Now for the practical part. Let us simulate controlling 4 LEDs (representing 4 light bulbs) using an Arduino Uno and the new 4 channel relay module library.
In the world of embedded system design, simulation is key. Before soldering a single component or risking a microcontroller, engineers test their logic in a virtual environment. Proteus Design Suite remains a gold standard for this, especially when interfacing with real-world actuators. The latest addition generating buzz is the updated 4-Channel Relay Module Library—a vital tool for simulating high-voltage AC/DC load control using low-power microcontroller signals.
A typical 4-channel relay module (e.g., Songle SRD-05VDC-SL-C based) contains: