resetbutton

I have a problem with the reset button when i press it ;
it does nothing;
so i wondered if there any solution for it

How do you know it's doing nothing?- what do you expect to see?

i expect deleting the current program to overwrite a newer one.

Reset = restart. You'll see it blinking, and restarting the sketch.
Useful if you have a memory leak f.ex., after a month if the Arduino were to stop, you can reset it with a pin through a hole in whatever casing you have.

khaledop:
i expect deleting the current program to overwrite a newer one.

Well no, hitting Upload in the IDE overwrites an old program with a new one; how could reset do that?

Here's how I would test the reset button if I suspected it was faulty: upload a sketch which switches an led on then off in setup(), with nothing in loop(). Let it run until the led goes off, then hit reset and see if it goes on and off again. If it does, well then the program re-started so reset worked.

// test

void setup()
{
pinMode(13, OUTPUT);

digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, HIGH);
}

void loop(){}

thanks that was helpful .

e

nordemoniac:
Reset = restart. You'll see it blinking, and restarting the sketch.
Useful if you have a memory leak f.ex., after a month if the Arduino were to stop, you can reset it with a pin through a hole in whatever casing you have.

en que parte de la carcasa esta el reset???