Thank's Gene,
This works correctly. Only has some ports didn't work.
The port 21, in RasPI V2 the number is 27.
The ports 17 and 18 are reserved by something. I think the LIRC.
pi@raspberrypi /sys/class/gpio $ echo 17 > export
-bash: echo: erreur d'ecriture : Peripherique ou ressource occupe
pi@raspberrypi /sys/class/gpio $
I find the informations in the screenshot joigned.
So we must replace 21 by 27 for RasPI V2.
We can add : 7, 8, 9, 10, 11 if we don't use SPI control.
And we can add : 28, 29, 30, 31 with RasPI V2.
And I use the output card with 8 relais link here. Only around 10 ? on Amazon.
http://www.amazon.fr/relais-module-canaux-Arduino-Electronique/dp/B00GSY3XGAOnly I need to reverse the control On Off, Send 1 to Off and 0 to On.
Cheers.
Dani