Go Down

Topic: HOW TO CONTROL THE RESET BUTTON OF THE ARDUINO BY PROGRAMMING WITHOUT PRESSING (Read 5335 times) previous topic - next topic

UKHeliBob


I know how to collect data from dtmf but I dont know how to use it as a passcode

As a first step how about you post your program that collects data from dtmf ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

sayam_sethi

Well you are moving away from the topic........I had asked how to control the reset switch on the arduino board by a code in the script.

PaulS

Quote
I had asked how to control the reset switch on the arduino board by a code in the script.

A) You can't.
B) You don't need to.
The art of getting good answers lies in asking good questions.

AWOL

Quote
I had asked how to control the reset switch on the arduino board by a code in the script.

And we've told you to fix the problem that makes you think that that is what you need to do.



sayam_sethi

Ok....do u know how to go one instruction back on a command being pressed

sayam_sethi

Quote
Ok....do u know how to go one instruction back on a command being pressed

Or a step up

AWOL

If you can define some of the words you used in that sentence and what they mean to you, probably yes.

PaulS


I don't wish to sound patronising, but you don't.

Hey, I don't mind.

Suppose you get up in the morning, take a shower, get dressed, eat breakfast, and drive to work. On the way, you make a wrong turn. Do you drive around the block until you get back to just before where you made the wrong turn? Or, do you go home, get undressed, and get back in bed, and start over (with another shower, another breakfast, etc.)?

Dealing with a backspace key is far easier than resetting the Arduino.

But, if you insist, connect a transistor to a 120V DC power supply. Connect the gate to a digital pin, and the emitter to another digital pin. Make the first pin an OUTPUT pin and the second pin an input pin. When the backspace key is pressed, set the first pin HIGH. A reset is guaranteed.
The art of getting good answers lies in asking good questions.

sayam_sethi

my code would be an instruction one......so by chance if I give in a different instruction instead of the one I had intended and it is in a sequence and I can't change it after pressing the wrong one and I want to go back to the previous instruction. And I don't know how to instruct the arduino that I have given a backspace.

UKHeliBob

As PaulS suggested in reply #6
Quote
Typically, you'd store all the characters in an array, as they are entered, unless the character is a special character, like enter or backspace. If the character IS enter, you do something with the stored data. If the character IS the backspace, you replace the last character in the array with a NULL and decrement the index.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

PaulS

Quote
And I don't know how to instruct the arduino that I have given a backspace.

What DTMF tones ARE you able to decode? Presumably, you are able to deal with all 12 keys on the phone - 0 to 9 and # and *. Is that a correct assumption? If so, which one means enter and which one means backspace?
The art of getting good answers lies in asking good questions.

sayam_sethi

can u give me a sample program with the mentioned criteria. # means a backspace. And I have a decoder for the dtmf so I just have to read the values from it. But in the progrma the arduion will read it

sayam_sethi

I dont need to press enter arduino automatically interprets it.

Go Up