Use a switch on the digital input

i bought my KA05 last week and I tried to command Relay with a switch on the digital input but… it doesn’t work, just for the first impulsion and then nothing, it’s impossible to change the relay position (for exemple, i plug a 12V lamp on the relay and the switch to the digital input, and i switch , the light is on and I let the switch and the light is always on, )
How can i do this? maybe there’s something wrong in my scketch, but what?
thanks

Have you tried the example code provided by Velleman?
It looks like it should turn the relays on then off.
This should tell you a lot.

You can download it from this link.
http://www.vellemanusa.com/support/downloads/?code=KA05

[quote=“Wrong Way”]Have you tried the example code provided by Velleman?
It looks like it should turn the relays on then off.
This should tell you a lot.[/quote]

Yes, the velleman’s sketch work very well with 6 lights or solenoid.
I create pilot an old 6 disco light, and the relays work well.

Thanks every one, i found my error, the jumpers were in a wrong link.
I can continue to work on my mini pinball project with an arduino!!!