hi
i am new in arduino community. i am working on a project where i use
1 arduino nano
2 channel ssr
1 touch sensor
1 rgb 4 pin led
1 2 amp ac motor
now i successfully made a sketch which can make this machine reverse and forward when i touch the sensore
with delay function. the timing is 2,5 second. but in this time i cant take next action even touch the sensor because of delay call. i want to put in this mills or interrupt kind of function so i van change the direction of motor any time but till now no success,,,,,,, please help me its urgent pasting the code with this.
Study the "blink without delay" example that comes with the Arduino software development package (the IDE), in order to learn how to use the millis() function.
Always use unsigned long integers for variables associated with millis().
dear i am new. i want to solve this problem asap.i read timers millis & blink also as u said but cant setup these functions perfectly in this. so can you plese give me any hint about it according to do some change in my sketch. pls. i will be thankful to you
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
whats the weak points in this . i want that when ever i touch button during running loop. the first relay time canceled and second relay time starts without any waiting for touch the button.