I was thinking of something like this to incorporate the diode to fix the problem that Jamie pointed out
I also looked into mini xlr plugs for the connection. They seem to be easy to get and they would fix the possible problem of a wrongful contact connection with a 3.5mm jack.