Using a menu system with a relay?

Hi,just a noob starting off in the world of arduino :slight_smile:

I was wondering how you could link up a menu system with a keyboard+lcd module,like this one
( http://rlx.sk/5280-tm_thickbox_default/lcd-keypad-shield-for-arduino-er-mcs01602m.jpg )
to a relay so that you could navigate through the menu and turn the relay(s) on or off.

I have got some form of menu drawn up but how I could implement the relay truly puzzles me.

Thanks in advance!

You can find some inspiration in the many LCD menu libraries.

In general the menu activation should set a global variable, which subsequently can be inspected and reset by the relay control code.