

A PWM (Pulse Width Modulation) relay is an electromechanical switch designed to control the power delivered to a load using PWM signals. By varying the duty cycle of the PWM signal, the relay enables precise control over devices such as motors, lights, and other electronic loads. This makes it an efficient solution for applications requiring variable speed, brightness, or power regulation.








| Parameter | Value |
|---|---|
| Operating Voltage | 5V, 12V, or 24V (model-dependent) |
| Control Signal Voltage | 3.3V to 5V (compatible with PWM) |
| Maximum Load Current | 10A |
| PWM Frequency Range | 100 Hz to 10 kHz |
| Duty Cycle Range | 0% to 100% |
| Relay Type | SPDT (Single Pole Double Throw) |
| Isolation | Optocoupler-based isolation |
| Operating Temperature | -20°C to 70°C |
| Pin Name | Description |
|---|---|
| VCC | Power supply input for the relay module (5V, 12V, or 24V depending on model) |
| GND | Ground connection |
| PWM_IN | Input pin for the PWM signal (3.3V to 5V logic level) |
| NO (Normally Open) | Normally open terminal of the relay; connects to the load when activated |
| NC (Normally Closed) | Normally closed terminal of the relay; disconnects when activated |
| COM | Common terminal for the relay switch |
Below is an example of controlling a PWM relay to adjust the brightness of an LED:
// Define the PWM pin connected to the relay
const int pwmPin = 9; // Pin 9 on Arduino UNO supports PWM output
void setup() {
pinMode(pwmPin, OUTPUT); // Set the PWM pin as an output
}
void loop() {
// Gradually increase brightness
for (int dutyCycle = 0; dutyCycle <= 255; dutyCycle++) {
analogWrite(pwmPin, dutyCycle); // Write PWM signal to the relay
delay(10); // Wait 10ms for smooth transition
}
// Gradually decrease brightness
for (int dutyCycle = 255; dutyCycle >= 0; dutyCycle--) {
analogWrite(pwmPin, dutyCycle); // Write PWM signal to the relay
delay(10); // Wait 10ms for smooth transition
}
}
analogWrite() function generates a PWM signal on the specified pin.Relay Not Switching:
Load Not Receiving Power:
Relay Chatter or Noise:
Overheating:
Q1: Can I use the PWM relay with a 3.3V microcontroller?
A1: Yes, the PWM_IN pin is compatible with 3.3V logic levels. Ensure the relay module's VCC matches the required operating voltage.
Q2: What happens if I use a PWM frequency outside the specified range?
A2: Using a frequency outside the 100 Hz to 10 kHz range may result in erratic relay behavior or reduced performance.
Q3: Can the relay handle AC loads?
A3: Yes, the relay can handle both AC and DC loads, provided the voltage and current ratings are not exceeded.
Q4: Is the relay suitable for high-speed switching?
A4: No, mechanical relays are not ideal for high-speed switching due to wear and tear. For high-speed applications, consider using solid-state relays (SSRs).