Smoke from the motor shield

Sorry

There was an error with the 2nd diagram. Here is the updated one

And here is my motor driver.

I haven't measure the voltage yet from the 5V output of the motor board. But when I connect 5V of mega and 5V of shiled together according to the first diagram, the board will not power on if i didn't connect the shield to the PC