You will need a VERY small relay. The coil has to trigger at about 4V and less than 30 mA. For any larger relay you will need a transistor driver.
I think your snubbing diode is wrong way around. It will short the input to Ground. It's supposed to be reverse-biased (not conducting) when the relay is ON.
johnwasser:
You will need a VERY small relay. The coil has to trigger at about 4V and less than 30 mA. For any larger relay you will need a transistor driver.
True... Well, allow me to make the following modification: I'm now going to power the relay on a different circuit like such:
my big question is what happens if both arduino do a digitalWrite on PIN 2 at the same moment? Can it be damaging?
johnwasser:
I think your snubbing diode is wrong way around. It will short the input to Ground. It's supposed to be reverse-biased (not conducting) when the relay is ON.