Looking for Example code for the Relay Board Shield


anyone have example code use relay board shield? perhaps code switch each of 4 relays on 1 @ time 5 seconds , off again.

thanks.

there many "relay board shields".
link 1 have.

did go through examples come ide.
activating relay (writing pin high or low) basic task, switching led on/off.
covered in several examples.

you can first use delay() turn relays on/off 5 seconds apart.
but if program has else (delay blocks), use millis() timing.
the "blinkwithoutdelay" example shows how.
leo..


Arduino Forum > Using Arduino > General Electronics > Looking for Example code for the Relay Board Shield


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???