{"product_id":"relay-for-raspberry-pi-or-arduino-1-channel-5v","title":"1-Channel 5V Relay Module 250V\/10A","description":"\u003cp\u003e\u003cspan\u003ePerfect for Raspberry Pi or Arduino projects. The input (IN) requires only a few milliamps at voltages between 2.5 V and 12 V, allowing it to be operated from an RPi GPIO pin without an additional interface. Or manually you can even use the same voltage you use to power the coil.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"font-size: 0.875rem;\"\u003eA \"normal\" style relay to switch a single \"data\" line to turn on\/off.  \u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan\u003eFeatures:\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e· A low-cost way to control larger voltages and currents.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e·         No soldering required\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e·         Supports any microcontroller \u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e·         On-board switching transistor.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e·         Easy one-wire drive. High for on, low for off. \u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e· Mains-rated relay.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan\u003ePinouts (from the left)\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cspan\u003e 5v supply (coil requires 400mw)\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eGND\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eIN data line (TTL 3-12v)\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cspan\u003eA1 - contact 1 (normally open, applies to all models)\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eA2 - contact 2 (normally closed, only on six-pin relays).\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eCOM - common\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan\u003eRaspberry PI Relay switch example, which will switch the relay on and off at 1-second intervals:\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan\u003eWiring:\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cspan\u003eConnect VCC to RPi Pin 2 (5V)\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eConnect GND to RPi Pin 6 (GND)\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eConnect IN to Rpi Pin 7 \u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eConnect the Ground of the circuit you wish to switch to the middle screw terminal.\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cspan\u003eConnect the +VE of the circuit you wish to switch on to either of the outer terminal screws (one will switch on when the relay is on, and the other will switch off when the relay is on - you choose what you want).\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cspan\u003eExample Python code for Raspberry Pi will switch pin seven on:\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eImport RPi.GPIO as GPIO\u003cbr\u003eimport time\u003cbr\u003eGPIO.setmode(GPIO.BOARD)\u003c\/p\u003e\n\u003cp\u003edef on():\u003cbr\u003e        GPIO.setup(7, GPIO.OUT)\u003cbr\u003e        GPIO.output(7, 1)\u003c\/p\u003e\n\u003cp\u003edef off():\u003cbr\u003e        GPIO.setup(7, GPIO.IN)\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eWhile (1):\u003cbr\u003e        on()\u003cbr\u003e        time.sleep(1)\u003cbr\u003e        off()\u003cbr\u003e        time.sleep(1)\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eProject:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSwitch the relay using our Flex RF module\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/www.jemrf.com\/pages\/how-to-use-the-flex-module-for-remote-control\"\u003eFlex Relay Documentation\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/www.jemrf.com\/collections\/rf-sensors\/products\/flex-rf-module\"\u003eFlex Module\u003c\/a\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eSwitch an appliance on\/off from a browser or smartphone.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003ca title=\"On-Off Project with JemRF\" href=\"https:\/\/projects.privateeyepi.com\/home\/on-off-project.php\"\u003ehttp:\/\/projects.privateeyepi.com\/home\/on-off-project\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"http:\/\/ha.privateeyepi.com\/store\/image\/data\/onoff\/IMG_4524%20(640x480).jpg\"\u003e\u003c\/p\u003e","brand":"JemRF","offers":[{"title":"Default Title","offer_id":21174951313468,"sku":"AS15","price":4.95,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0019\/4065\/2092\/products\/IMG_6826_2.JPG?v=1748374915","url":"https:\/\/www.jemrf.com\/es\/products\/relay-for-raspberry-pi-or-arduino-1-channel-5v","provider":"JemRF","version":"1.0","type":"link"}