Pirelay-V2 – SB Components Ltd Skip to content

Successfully Funded!

LoRaWAN Series - Gateways & Nodes, Build for Raspberry Pi, Pico, Espressif, and beyond!

Explore our lineup of Gateways & Nodes, compatible with TheThingsStack, Chirpstack & more.

PiRelay-V2 PiRelay V2 is developed by SB Components with the potential to control 4 appliances and loads up to 250V AC/ 7 A, 30V DC/ 10A to provide a way to control the high voltage/current devices. It helps the user to enhance the intelligence of the appliances. It comprises an “Optocoupler” that allows the circuit to transmit an electrical signal between two isolated circuits through light energy. Optocoupler helps the user to prevent the high voltages in one part of the circuit from affecting the other part of the circuit which provides safety to the system. It provides a better connection of Pi Relay V2 with the Raspberry Pi that gets enabled from the standardized shield form factor. One can enable the IoT technology of their home appliances using Pi Relay V2 that will make their life efficient.
  • High-quality Relay and loads up to 250VAC/7A, 30VDC/10A.
  • Optocoupler
  • Standardized shield shape and design.
  • LED working status indicators for each Relay.
  • High-quality Relays.
  • Pin Stacking Header for accessing GPIO of RPi.
  • Channel - 4 CH
  • Operating Voltage - 5V
  • AC Control Voltage - 7A / 250V
  • DC Control Voltage - 10A / 30V
  • High-quality Relays.
  • Dimensions - 6.5cm x 5.5cm
Hardware Details
    • There are a total of 5 led's on the PiRelay-V2 board

The power led will light up when the board is powered via gpio header. The status/indicator led will light up when the relay1-relay4 is activated.

    • Output Terminal Block: We have 3 channels of Relay labeled as NO, COM and NC
    • COM (Common): Connect this pin to the signal you want to switch.

  • On-Board jumpers are provided to use default pins of Pi internally connected with GPIO Header. In case you need to use any other GPIO rather than the default one, you can remove these jumpers and connect relay pins directly to the GPIO of Raspberry Pi Pins.


    • Stack PiRelay-V2 HAT on Raspberry Pi 40 Pin GPIO header.
    • Make sure all four jumpers are connected.
    • Open Terminal and clone/download the repository by typing below command in terminal:

  • git clone https://github.com/sbcshop/PiRelay-V2.git


Source Code