Record your exertions on the Borg scale.
Project tutorial by Mr_Glenn
A bit more accurate than __TIME__.
Perhaps you could try some subliminal(?) learning.
Add in some code to print out the colour code underneath the numeric value and see if this improves your recognition skills over time.
If the reed switch has 1 pole and 2 contacts you could try an SR flipflop for the debounce.
You need a diode across the relay coil not a capacitor.
When you power off the relay coil the magnetic field collapses and induces a voltage into the wire, it is this spike which is probably causing your Arduino to reset.
Or connect with your social account:
New here? Create an account