Arduino Code and Video for a Dual-Channel 5V Relay

Video thumbnail for How to use 2 channel relay to control AC and DC loads in Arduino RJT34

Arduino Code and Video for a Dual-Channel 5V Relay

We have two codes on this page. Please see below. This code is a little cleaner, with each pin defined at the top of the code to make it easy to change the pins. Just change the pin at the top, and all the pins will be changed.

Code Snippets

Comments will be displayed here.