title: How to wire Songle Relay Raspberry Pi 2 Model B
body: <p>I am trying to connect this songle relay to the pins on my pi. I have attached the + on the relay to 5v (pin 2) and the - to grn (pin 6). I have the I attached to GPIO. 7 (BCM 4).</p>
  
  <p>Here is my script (yes borrowed from someone online). I consider this to be a simple experiment (probably shouldn't say that since it is not working).</p>
  
  <p>So basically at a minimum I would hope to hear the relay "click" indicating that something is happening. But I hear nothing. Is it possible my relay is just broken?</p>
  
  <p>It is probably also possible that I have no idea what I am doing. In which case, please be kind.</p>
  
  <pre><code># gpio_blink.py
  # by Scott Kildall (www.kildall.com)
  
  import RPi.GPIO as GPIO
  import time
  
  GPIO.setwarnings(False)
  GPIO.setmode(GPIO.BCM)
  GPIO.setup(4, GPIO.OUT)
  
  state = True
  
  # endless loop, on/off for 6 seconds
  while True:
   GPIO.output(4,True)
   time.sleep(6)
   GPIO.output(4,False)
   time.sleep(6)
  </code></pre>
  
  <p>Here is the output of gpio readall</p>
  
  <p><a href="https://i.stack.imgur.com/jPQPW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jPQPW.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/s2oJD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2oJD.jpg" alt="Songle Relay"></a></p>