Show Posts
Pages: 1 ... 1069 1070 [1071] 1072 1073 ... 1843
16051  Using Arduino / Programming Questions / Re: Inputting a number greater than 9 to the Uno through Serial Com on: March 02, 2012, 03:38:29 am
Storing the digits is trivial; what is more difficult is deciding which digit is the first, and which is the second.
16052  Using Arduino / Programming Questions / Re: Inputting a number greater than 9 to the Uno through Serial Com on: March 02, 2012, 02:47:41 am
Code:
val = (firstDigit * 10) + secondDigit;
16053  Using Arduino / Programming Questions / Re: Arduino Tvout on: March 02, 2012, 02:46:59 am
You're going to need more output bits and a simple D/A to get more grey scales.
16054  Using Arduino / Programming Questions / Re: Inputting a number greater than 9 to the Uno through Serial Com on: March 02, 2012, 02:35:10 am
Multiply the first digit by 10 and add the second digit.
Rinse and repeat.
16055  Using Arduino / General Electronics / Re: schematic for ultrasonic transducer, binary data transmission ?????? on: March 01, 2012, 03:35:41 pm
Rangefinders typically drive the transducer for about eight cycles, or about 200 microseconds.
However, the transducers may ring for another ten or twelve cycles, so stretching the transmitted  pulse train and lowering the data rate achievable.

Give your keyboard a shake - looks like your question mark key is stuck.
16056  Using Arduino / Programming Questions / Re: Serial1.write shows in console on: March 01, 2012, 03:27:23 pm
Is there a good reason not to use an array and a for loop, or do you just enjoy typing?
16057  Using Arduino / Programming Questions / Re: Trying to compare strings on: March 01, 2012, 03:09:45 pm
"master" is an eleven element array, with the last element set to zero by the compiler.
This is how C defines a string, so functions like strcmp know when to stop.
"code" is not long enough to contain a zero, and you don't provide one.
16058  Using Arduino / Programming Questions / Re: Trying to compare strings on: March 01, 2012, 02:56:48 pm
Where do you terminate your input string?
16059  Using Arduino / Programming Questions / Re: 2 buttons pushed down to execute a command. on: March 01, 2012, 02:12:58 pm
See reply #3
16060  Using Arduino / Programming Questions / Re: 2 buttons pushed down to execute a command. on: March 01, 2012, 02:05:45 pm
goLeft without brackets is simply a function pointer - it is always non zero, therefore always true
16061  Using Arduino / Programming Questions / Re: newbie on: March 01, 2012, 12:43:33 pm
Show us what you've already done
16062  General Category / General Discussion / Re: Please delete my account on: March 01, 2012, 12:13:57 pm
...no, you hang up...
16063  Using Arduino / Project Guidance / Re: how to enable and disable signal coming from sensor using keypad on: March 01, 2012, 05:27:56 am
I don't see any debug code.
Quote
think thrs something wrong of my codes???
I think you're asking why the compiler is complaining about your code.
Mostly, it doesn't like executable code that isn't in a function.
But that's just a guess, because you haven't provided any detail, and I'm not about to bother putting it through a compiler.

Edit: The code does after all look to be in functions - the formatting threw me.
16064  Using Arduino / Project Guidance / Re: problems with the simulation using arduino target on: March 01, 2012, 05:07:46 am
I am unable to find any details. Please help.
16065  Using Arduino / Project Guidance / Re: how to enable and disable signal coming from sensor using keypad on: March 01, 2012, 05:06:43 am
When is our assignment due?
Pages: 1 ... 1069 1070 [1071] 1072 1073 ... 1843