Hi Rob
If you do not have any experience in electronics better buy ready-made breakout board with optoisolation - that thing separates driver boards (high voltage and current) and expensive "guts" of your computer
You did not wrote how much do you know about electronics, if the answer is "nothing" - buy a book ("The Art of Electronics" for example).