The code given in #3 i want it to start when i press the pushbutton but i gets reads pushed at the first time even when the push button is not pressed for the first time. The serial monitor reads pressed for the first time even if the pushbutton is not pressed for the first time. PLEASE SUGGEST ME CHANGES TO BE MADE IN THAT PROGRAM.
Or can you please try it out on your arduino. So that if my arduino is damaged then changing program wont be efficient.
PLEASE HELP. THANX IN ADVANCE.
Shreyas_Bhavsar:
The code given in #3 i want it to start when i press the pushbutton but i gets reads pushed at the first time even when the push button is not pressed for the first time. The serial monitor reads pressed for the first time even if the pushbutton is not pressed for the first time. PLEASE SUGGEST ME CHANGES TO BE MADE IN THAT PROGRAM.
Or can you please try it out on your arduino. So that if my arduino is damaged then changing program wont be efficient.
PLEASE HELP. THANX IN ADVANCE.
so help yourself, in advance.
Confirm the exact sketch you are using and answer the question:
How is your pushbutton switch wired to your arduino?
The answer may depend on that.
Shreyas_Bhavsar:
The code given in #3 i want it to start .
This is just wasting everyone's time. You have posted new code since Reply #3 and several people have made suggestions.
If you want help post the latest version of your code AND use code tags.
...R