Trigger Jumper: Set to L for LOW-level trigger (default), or H for HIGH-level trigger. pinMode(RELAY_PIN, OUTPUT); digitalWrite(RELAY_PIN, LOW); // Activate relay if jumper is set to LOW trigger delay(1000); digitalWrite(RELAY_PIN, HIGH); // Deactivate relay . The 12V 8-Channel Relay Module with Optocoupler is designed to control multiple high-voltage devices using low-voltage signals from microcontrollers like Arduino, Raspberry Pi, and ESP32. Featuring optocoupler isolation, it ensures protection for your control systems against voltage spikes and. In the following post I have explained how to drive a relay by using an isolated method, or through an optocoupler device. We will learn three methods, first method is by connecting relay directly with the optocoupler output pins, second method is by using external PNP transistors, and third method. This circuit uses an ESP8266 NodeMCU to control a relay via a PC817 optocoupler and BC547 transistor, allowing for the switching of an AC-powered bulb. The circuit includes a protective diode for the relay, an LED indicator, and employs resistors for current limiting and signal interfacing. Power. I have ESP-12F relay board, as per the following circuit diagram, however the 5V relays are triggering the moment power supply is provided to the board. It provides complete isolation between the input and the. Any voltage source with the proper level to light up the input LED of the optocoupler, can be used to trigger the relay. I would call that unit a "relay module", not just "relay". In the lamp circuit You can preferably change VCC to Vdd. Vdd can be of any kind, AC as well as DC.