user16336: I am trying to make a robot turn (dc motors are being used) back 180 degrees. So I used an l289n for it and made one wheel turn clockwise and vice-versa. 
But as I wan't it to make only a 180 degrees turn, I wanted to set an amount of time for it to turn.  Is there any other way to do the same thing, if yes, please tell, if no, help me...

user10003: Use the delay() function.
Pseudo code as follows:
1) Turn clockwise motor on;
2) Turn counterclockwise motor on;
3) delay(<time>);
4) Turn CW motor off;
5) Turn CCW motor off.


16336: <p>I am trying to make a robot turn (dc motors are being used) back 180 degrees. So I used an l289n for it and made one wheel turn clockwise and vice-versa. 
<br><br>But as I wan't it to make only a 180 degrees turn, I wanted to set an amount of time for it to turn.  Is there any other way to do the same thing, if yes, please tell, if no, help me...</p>
 10003: <p>Use the <a href="https://www.arduino.cc/en/Reference/Delay" rel="nofollow">delay()</a> function.</p>

<p>Pseudo code as follows:</p>

<pre><code>1) Turn clockwise motor on;
2) Turn counterclockwise motor on;
3) delay(&lt;time&gt;);
4) Turn CW motor off;
5) Turn CCW motor off.
</code></pre>
