what weapon made the ottomans so powerful in wars?
The cannon. Both the Ottoman and Safavid Empires were called "Gunpowder Empires". Their success was in large part due to the advancement of firearms and cannons.