Now for what I had intended to post here...
While I suspect the Duet is the issue, if it works when everything is disconnected as pr above you can refer to this thread on how to test if the pins on the pi are working as they should. But I wouldn't spend any time on that before you have a Duet board with a steady 1hz flashing red DIAG LED.