I have this diagram, now the arduino uno output pin (microcontroller) is 5 volts, what is the value of resistor R1 and R2 ?

Because some people think the flyback resistor needs to handle high voltage spikes. In reality, it does not, it only sees the same voltage as is applied to the relay coil.Why are D3 and D4 different? I would keep a stock of 1N2007 for all situations such as this.
Bob, can you elaborate on this?Because some people think the flyback diode needs to handle high voltage spikes. In reality, it does not, it only sees the same voltage as is applied to the relay coil.
Bob
When flyback sets in, the diode is forward biased, therefore limniting the flyback voltage to ~ 0.7 V
No, it never becomes a high voltage. The voltage only rises to the level that will allow the current flow, in the case of the diode, that is between about 0.6 and 1V. I don't consider that a high voltage.
It if was otherwise, what voltage would it rise to, 100V 1000V, 100 MV?
If you scoped it you would not see any high voltage.
Bob
The 1N4000x diodes are not particularly fast with reverse recovery times in the µs range (link). Therefore your assumption is not completely wrong. There will be a rising voltage across the diode until conduction sets in. A scope measurement as suggested by Hop could sort this out.Ok, I was thinking a voltage spike could happen before the diode switches on to do its job of snubbing it.