Go Down

Topic: Voice recognisation, Need help in changing a code (Read 1 time) previous topic - next topic

tahmod

Aug 27, 2013, 01:13 pm Last Edit: Feb 08, 2014, 07:15 pm by tahmod Reason: 1
In this code when I say forward the robot go forward for 3 second, what can I do that when I say forward it goes forward until I say stop?


robtillaart

PLease modify your post and replace [ quote] tags with [ code] tags (without the spaces)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

PaulS

Code: [Select]
          delay(3000);              // wait for a second
Useless comments really should be accurate.

Quote
In this code when I say forward the robot go forward for 3 second, what can I do that when I say forward it goes forward until I say stop?

Take out the delay and the stop!
The art of getting good answers lies in asking good questions.

Go Up