Arduino Forum

Topics => Robotics => Topic started by: tahmod on Aug 27, 2013, 01:13 pm

Title: Voice recognisation, Need help in changing a code
Post by: tahmod on Aug 27, 2013, 01:13 pm
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?

Title: Re: Voice recognisation, Need help in changing a code
Post by: robtillaart on Aug 27, 2013, 01:31 pm
PLease modify your post and replace [ quote] tags with [ code] tags (without the spaces)
Title: Re: Voice recognisation, Need help in changing a code
Post by: PaulS on Aug 27, 2013, 02:02 pm
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!