====== lamaPLC: Multi-channel Solid State Relay Module ====== {{ :actor:multi_channel_ssr_1.png?180|Multi-channel Solid State Relay Module}} Microcontroller-compatible //Solid-State Relays// (**SSR**s) connect low-power microcontrollers to high-power AC devices. Unlike traditional mechanical relays, SSRs lack moving parts and instead use light and semiconductors for safe, quiet switching of electrical power. A key feature of an SSR is safety via optical isolation. When an Arduino pin outputs a HIGH signal (usually **5V or 3.3V**), it activates a small internal Infrared (IR) LED. The chip contains a physical gap that prevents high-voltage AC from returning to the microcontroller while allowing light to pass. A light-sensitive semiconductor, such as a phototriac, is positioned opposite the LED. When it detects IR light, it becomes conductive, completing the circuit and powering the load. **Crucial Limitations** * **AC Loads Only:** The SSR uses a TRIAC output and cannot switch DC loads. Attempting to control a DC motor or LED strip will keep the relay in the "ON" position until power is completely disconnected. * **Minimum Load Requirement:** SSRs have a small leakage current of approximately 1.5 mA. If you connect a load that draws very little current, such as a tiny 0.5W LED bulb, the light may glow faintly or flicker even when the relay is off. * **SSR cannot be used for PWM dimming:** A zero-cross SSR like the G3MB-202P cannot be used to dim AC lights or adjust fan speeds through Arduino's //analogWrite()// (**PWM**). This relay waits for the next 0V crossing and ignores fast PWM signals, causing erratic flickering, flashing, or the relay remaining fully on. Conversely, zero-cross switching is optimized for resistive loads, providing clean switching for heating elements such as wires, soldering stations, and small heaters, as well as incandescent bulbs, which helps reduce the initial current spike that can burn out bulbs. If you want to switch DC or increase power on AC, consider using a [[relay_moduls|multi-channel (optocoupled) relay module]]. {{ :actor:multi_channel_ssr_4.png |Multi-channel Solid State Relay Module}} {{page>:tarhal}} {{ :actor:multi_channel_ssr_3.png?400 |Multi-channel Solid State Relay Module}} ==== Zero-Cross function ==== {{ :actor:zero_cross.png?200|Zero-Cross function}} A Zero-Cross function is a feature in AC Solid State Relays (SSRs) that synchronizes switching. It ensures the relay opens the circuit precisely when the AC voltage sine wave crosses zero volts, minimizing electrical noise and stress. In typical household outlets, AC voltage oscillates smoothly between positive and negative peaks, such as +325V and -325V, at 50 or 60 Hz. If your Arduino sends an "ON" signal at the peak of the wave (+230V) //without a Zero-Cross function//: * A massive, instantaneous rush of current enters the load. * This generates Electromagnetic Interference (EMI) and radio noise. * It creates severe electrical stress on the component, shortening its lifespan. **The Solution: How the Zero-Cross Circuit Works** - **The Trigger:** Arduino outputs a 5V signal to the SSR input. - **The Hold:** The internal zero-cross detector captures this signal. If the AC waveform is at a high voltage, the detector keeps the switch open. - **The Cross:** The AC waveform drops to 0 volts. - **The Action:** The detector immediately triggers the internal TRIAC, turning on the load smoothly with zero initial voltage. ==== G3MB-202P Multi-Channel Solid State Relay Module ==== The OMRON G3MB-202P is a low-cost, subminiature, PCB-mounting //Solid State Relay// (**SSR**) designed for high-density applications. It is widely used in DIY electronics, Arduino, and Raspberry Pi projects to safely switch AC loads up to 2A using low-voltage DC signals. **Key Specifications** * **Load Voltage:** 100 to 240 V AC (50/60 Hz). * **Maximum Load Current:** 2 A. * **Input Control Voltage:** 5 V DC (standard model variant). * **Switching Method:** Zero-cross function (turns on when AC voltage crosses zero to reduce noise). * **Form Factor:** 4-pin compact SIP (Single In-line Package) layout. ===== Sensor topics on lamaPLC ===== {{topic>sensor}} \\ \\ {{tag>actor SSR G3MB-202P Solid_State Relay Zero-Cross_function}} \\ This page has been accessed for: Today: {{counter|today}}, Until now: {{counter|total}}