Go Down

Topic: resetbutton (Read 893 times) previous topic - next topic

khaledop

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

JimboZA

How do you know it's doing nothing?- what do you expect to see?
Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

khaledop

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

nordemoniac

#3
Sep 27, 2014, 08:57 pm Last Edit: Sep 27, 2014, 09:10 pm by nordemoniac Reason: 1
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.

JimboZA


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.

Code: [Select]
// test

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

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

void loop(){}

Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

khaledop

thanks that was helpful .

Santiago2314

e

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???

Go Up