Arduino triggers all pins at powerup

So it is not a problem with the arduino itself but your external drivers. You need to post a schematic of what you have in order for us to help you from here.