potresti, nell'onclick del button "GIRA", far partire un timeout di X millisecondi che richiama la funzione stop, per esempio così:
codice:
<div><button id="pulsante" type = "buttom" onclick = "run();setTimeout(function(){ stop() }, 3000);">GIRA</button></div>