You might want to post the brand of machine with some pics. There may be someone here that has already done some of this and can save you some time.
Other than controlling it, what is the ultimate goal for the machine. If it is a school project, 'nuff said. Lord knows I've had plenty of those!