title: Wiring Raspberry PI GPIO pins to a remote to simulate a button press?
body: <p>I have some lights that you turn can on by using a small IR remote. My first idea was that I would be able to wire my RPI GPIO pins to the button and turn then pin on and off to simulate a button press but have had no luck at all.</p>
  
  <p>I tried by connecting the ground of the Pi to the ground of the remote and then connected the GPIO pins to a 330 ohm resistor and then to the button with the tracer wire connected to the chip on the remote.</p>
  
  <p>Is it possible to wire it up this way to simulate a button press to turn on my lights? I have heard some people said you use an opto-isolator but don't understand how to connect this to the PI and the remote?</p>
  
  <p>Here are some pictures of the remote.</p>
  
  <p><img src="https://i.stack.imgur.com/ghe7d.jpg" alt="Controller front">
  <img src="https://i.stack.imgur.com/fRQV3.jpg" alt="Controller Back"></p>