Low cost 3D printer control electronics