Post links to the specific datasheets or product pages for all the hardware you refer to, otherwise
we have no details to go on, and details are always vital.
In general powering motors and logic with the same supply is bad news, well worth avoiding,
but without those details there's little constructive to recommend.