Finished2Andrew writes- “I started this project when I had an idea to use a Mac to switch a solenoid on/off to control sprinklers around the house. Unfortunately I never took it that far, but I have been able to control a few other things, like a model train around the Christmas tree. Here I have documented how I did it.” Link.