Sorry I don't speak french, but hopefully you'll get enough out of this answer in english.
I believe I understand what you are trying to do. The connections are a little different than the drawing in your readme document, but I think I follow the idea.
Please give the attached code a try. Let me know if you still get the error.
Hope this helps!
gus....