Reading Hex/Binary from PC serial then output

Seems workable. You should figure out the level shifting specs and schematic before you hook anything to 12v.

Maybe take a look at: