Adapting a 3D Printer for Use as a Test System

I’d like to build an automated test system and I am thinking a low cost 3d printer (Ender ?) could be modified for that purpose. Basically, I need X an Y motion with limit switches and the following:

  • Serial and USB host to interface to the device under test

  • USB host to interface to a bar code scanner

  • Output to vacuum pump Input for fixture contact switch

The components would need to be open source so I can modify the code to run the tests and report the results. I’ve attached a first pass block diagram. Any advice would be appreciated.