Show Posts
Pages: 1 ... 1070 1071 [1072] 1073 1074 ... 1906
16066  Community / Bar Sport / Re: So many members... on: April 22, 2012, 02:44:58 pm
Yes, that's what moderators do.
Sometimes, you never even see the spam.
16067  Using Arduino / Project Guidance / Re: Changing the if() statement to use five LEDs on: April 22, 2012, 02:38:46 pm
RunawayPancake, No, you're still missing the point.
The preprocessor has no knowledge of any context of analogRead, it blindly replaces A0 with 14.
However, in the particular context of analogRead, zero and fourteen are equivalent.
Obviously, in any other context, the equivalence would not hold, you could not, for instance, write "A0 == 0" and expect it to be true.
16068  Using Arduino / Programming Questions / Re: What is wrong with my program?? on: April 22, 2012, 02:27:36 pm
Now there, I'd say there are too many parentheses.
16069  Using Arduino / Project Guidance / Re: Changing the if() statement to use five LEDs on: April 22, 2012, 02:24:55 pm
I still don't see what point you are trying to make; in this context (analogRead), zero and fourteen are completely interchangeable.
16070  Using Arduino / Programming Questions / Re: What is wrong with my program?? on: April 22, 2012, 02:21:56 pm
See reply #44
16071  Using Arduino / Programming Questions / Re: What is wrong with my program?? on: April 22, 2012, 02:17:51 pm
You must have enough parentheses, and they must match.
Your code fulfils only one of those conditions.
16072  Using Arduino / Project Guidance / Re: Changing the if() statement to use five LEDs on: April 22, 2012, 02:16:33 pm
The IDE has nothing to do with it; the preprocessor simply replaces A0 with the literal 14.
16073  Using Arduino / Project Guidance / Re: Changing the if() statement to use five LEDs on: April 22, 2012, 02:08:01 pm
@runawaypancak,
A0 is 14.
What point are you trying to make?
16074  Using Arduino / Programming Questions / Re: What is wrong with my program?? on: April 22, 2012, 01:59:02 pm
You may, but I doubt the compiler does
16075  Using Arduino / Programming Questions / Re: What is wrong with my program?? on: April 22, 2012, 01:53:15 pm
Code:
(currentTime) - (timeAtReset) < (timeB) {
Brackets should match and be of sufficient quantity
16076  Using Arduino / Programming Questions / Re: An easy-to-use code flow diagramming tool? on: April 22, 2012, 01:02:35 pm
Few people flowchart these days.
You could try Visio
16077  Using Arduino / Project Guidance / Re: MHz Speed Analog Reading + High Quality 40kHz Square Wave on: April 22, 2012, 12:56:35 pm
With phase comparison, I can see displacement measurement of ± 8mm or so with good accuracy (with proper temperature, humidity and pressure/altitude compensation), but with commonly available piezo ultrasonic transducers with their resonances, relying on absolute amplitude will be trick.
Or so I imagine.
16078  Using Arduino / Project Guidance / Re: code check for me please on: April 22, 2012, 03:02:31 am
You are using C++
16079  Using Arduino / LEDs and Multiplexing / Re: What hardware can drive one long row of 100 LEDs on: April 21, 2012, 04:33:30 pm
Quote
All the tutorial are for a matrix but that's not what I'm doing.
What if you think of your 100 LEDs as a 10x10 matrix, unravelled into a thread?
Does that help?
16080  Using Arduino / Project Guidance / Re: MHz Speed Analog Reading + High Quality 40MHz Square Wave on: April 21, 2012, 04:20:04 pm
Quote
no ultrasonic transducer can respond to a frequency that high.
I think medical ultrasound goes up to around 20MHz, but you're unlikely to want to afford one of those.
Pages: 1 ... 1070 1071 [1072] 1073 1074 ... 1906