Or perhaps the relay machine might be happier becoming interfaced with parallel discretes, so you are aware of, stick a gpio card on the Pi or a little something. I will consider to search out you some data on this. A great deal of YouTube videos on this subject http://commercialvideo34000.blogsmine.com/1791417/the-2-minute-rule-for-commercial-product