4 Channel Relay Module Library For Proteus New May 2026

Write-Up: Developing a 4-Channel Relay Module Library for Proteus

Simulation Results

  • Activate IN1 → Relay clicks (audible if enabled) → Load turns ON.
  • All four channels operate independently.
  • Power sequencing: Module draws ~80 mA with all relays ON.

Proteus Model Behavior

  • Relays switch contacts in both digital and transient simulations.
  • Contact bounce modeled as short intermittent switching events (user-adjustable).
  • Coil drive includes back-EMF suppression (diode) unless JD-VCC isolated configuration is selected (then diode may be absent to allow proper isolation).
  • LEDs reflect input states, with series resistor values set to typical module values.
  • If JD-VCC is present in the chosen part variant, Proteus enforces separate supply nodes so you can simulate microcontroller-ground-common or fully isolated relay supply scenarios.

1. Introduction

3. Simulation Example (Arduino Code)

Once you have either wired the 4 relays or imported the module, here is a simple Arduino sketch to test the simulation.

Connections:

  • IN1 -> Pin 2
  • IN2 -> Pin 3
  • IN3 -> Pin 4
  • IN4 -> Pin 5
  • VCC -> 5V
  • GND -> GND

Test Code:

// Define Relay Pins
#define RELAY1 2
#define RELAY2 3
#define RELAY3 4
#define RELAY4 5

void setup() // Initialize pins as outputs pinMode(RELAY1, OUTPUT); pinMode(RELAY2, OUTPUT); pinMode(RELAY3, OUTPUT); pinMode(RELAY4, OUTPUT); 4 channel relay module library for proteus new

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.

digitalWrite(RELAY1, HIGH); delay(1000);

digitalWrite(RELAY2, HIGH); delay(1000); Write-Up: Developing a 4-Channel Relay Module Library for

digitalWrite(RELAY3, HIGH); delay(1000);

digitalWrite(RELAY4, HIGH); delay(1000);

// Turn all OFF digitalWrite(RELAY1, LOW); digitalWrite(RELAY2, LOW); digitalWrite(RELAY3, LOW); digitalWrite(RELAY4, LOW); Activate IN1 → Relay clicks (audible if enabled)

delay(2000); // Wait 2 seconds

1. What is it?

The 4-Channel Relay Module in Proteus mimics the popular "Blue Relay Boards" found in the Arduino and Raspberry Pi ecosystem. It consolidates four 5V relays, their driver transistors, optocouplers (in most models), and status LEDs into a single schematic symbol and PCB package.

3.1 Creating the Schematic Symbol (ISIS)

  • Open Proteus ISISLibraryNew Component.
  • Component Properties:
    • Name: RELAY_4CH_MODULE
    • Reference Prefix: RLY
    • Manufacturer: Generic
  • Draw the symbol using 2D graphics:
    • Rectangle body (40x80 grid units).
    • Place 4 input pins (Left side): IN1, IN2, IN3, IN4
    • Place power pins: VCC (top), GND (bottom).
    • Place 8 output pins (Right side): COM1, NC1, NO1 ... COM4, NC4, NO4
  • Add hidden internal circuitry (optional but recommended for simulation):
    • Inside the package, place 4 instances of RELAY from Proteus library, each driven by an AND gate (for active high logic) and a LED to indicate status.