I'm using my Pi to control a mains relay through a GPIO output and I have stumbled across something that I just need to check with people who are more familar with the Pi than I am.
Originally I was using the +5v (DC+), Gnd (DC-), and a single 3.3v GPIO pin to trigger the relay, which was all working fine. As I added more components to the project that I am working on I found that I was running out of usable power and it was causing issues at certain points during my program. As I have a 5v AC/DC adaptor around I decided to utilise it to power the relay and ake some of the strain off of the Pi.
Now I have the + and - to their respective points and the relay powers up correctly. To use a 3.3v to trigger the relay I would need to ground it back to the Pi; is it okay to connect the GPIO ground to the same point as the DC- on the AC/DC adaptor on the relay?
