It may help @mudasty to see a picture showing what @david_2018 has said above. I found the diagram below here (post 8). The voltage to jd-vcc at bottom-right would of course be 12V not 5V in the case at hand; as david_2018 says "Connect the 12V supply to GND and JD-VCC of the 3-pin connector"
