title: raspberry pi controlling relay, led on relay lights up but NO switch not closing
body: <p>I hear no switching sounds from relay.</p>
  
  <p>I connected</p>
  
  <p>JD-VCC to Pin2 (5V) </p>
  
  <p>GND to Pin6 (Ground)</p>
  
  <p>IN1 to pin7 (Gpio4)</p>
  
  <p>VCC to Pin1 (3V)</p>
  
  <p>Connected 240V DC to NO and COM.</p>
  
  <p>gpio export 4 out lets the led on the relay lighten in red.</p>
  
  <p>What is going wrong?</p>
  
  <p>This project shall replace and old viessmann alogue time switch by a switch controlled by pi. .</p>
  
  <p>Is my setup and wiring correct? I am sorry this is my first pi project. Can someone please double check the setup and wiring?</p>
  
  <p>This is the old clock case:</p>
  
  <p><a href="https://i.stack.imgur.com/i0arb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i0arb.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Kl0OJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kl0OJ.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Ol4zN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ol4zN.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/whiIZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/whiIZ.jpg" alt="enter image description here"></a></p>