I bought this ( https://www.amazon.co.uk/MAKEASY-Channe ... 16+channel ) relay board. I want to attach 5 electromagnets to it and 5 buttons. I know that I need to attach diodes to the magnets so the current surge doesn't damage the pi. The question is: Do I need to attach diodes to the buttons as well or is the relay board enough to protect the pi?
Thanks