While researching I found that you have to have mutual ground for all components connected so I did that.
It is possible that I did something wrong. This is how I connected it (I only included power related cables since output/input signals should not be relevant to the problem) : Screenshot by Lightshot