Show Posts
Pages: 1 ... 102 103 [104] 105 106 ... 110
1546  Using Arduino / Sensors / Re: PWM in arduino on: January 11, 2012, 01:48:31 pm
I know what heart rate is but what is GSR - gun shot residue??  smiley-lol


Quote
Could you explain to me if PWM can affect the way that the arduino is functioning?
Could you explain how and why you used PWM?

Pete
1547  Using Arduino / Project Guidance / Re: Beginner help with IR and Motors on: January 11, 2012, 01:22:48 pm
Weird. The syntax has changed between 22 and 1.0.
I compiled it with double quotes and that also compiles but it is much smaller.
What is the difference between a string in single quotes and a string in double quotes? Perhaps that would explain your problem.

Pete
1548  Using Arduino / Project Guidance / Re: Beginner help with IR and Motors on: January 11, 2012, 01:07:00 pm
I type your "code" into a sketch:
Code:
String ir_code_left = '417841215';
void setup()
{
}

void loop()
{
}
And you know what? It doesn't compile because you don't even know the correct syntax of a string. So it can't possibly "output" anything.

Pete
1549  Using Arduino / Project Guidance / Re: analyze .jpeg and send to Motors help! on: January 11, 2012, 12:38:47 pm
Quote
my motor projects
What do they do?

Quote
I hope that makes sense.
Nope. None at all.

Pete
1550  Using Arduino / Audio / Re: quantizing midi notes on: January 11, 2012, 11:18:22 am
Quote
I did write some comments to the code, hope thats enough.
Well, DUH! If those comments had been enough I wouldn't have asked you to explain the code.
Let's put it this way. The comments do not make clear what the code is doing so if you wrote that code you can explain it.

Pete
1551  Using Arduino / Project Guidance / Re: As fast as an NFL player? on: January 10, 2012, 01:45:45 pm
Quote
Pete - don't want to get in a pissing contest.
Caution and sagacity in equal measure.

Quote
I'm a qualified timekeeper
I'm a qualified brainsurgeon.

Quote
, and the typical error with a novice timer is at least 0.5sec.
OK, I'll bite. What is a "novice timer" and what causes the errors?

Quote
I accept the possible limitations of the IR system,
but hope to mitigate [...] by a) using modulated IR
Why will this mitigate the limitations?
Quote
by use of directional tube on the receiving side (and possibly the sending side too)
What is a directional tube?

Quote
This is part of the point of my project - research as well as implementation.
Ah yes, your project. About that. Which university assigns such a trivial project to "an electronics novice" for a "final Uni project"? Surely not Oxford?

Quote
If you have any helpful advice to share based on your experience in this area I would be grateful.
I have been beaten to it, but a small red laser that you can buy at places like Radio Shack will give a beam that has a negligible spread over the distances required by this "project". I'm surprised that a "qualified timekeeper" wouldn't know this.

But why on earth does timing an 8-year old boy (assuming he exists) require such incredible accuracy? One of the arts of being a parent is in creative lying. Use a stopwatch and keep telling him he's doing great.

Quote
Thanks
You're welcome.

Pete
1552  Using Arduino / Programming Questions / Re: Understanding << and pstr() in serial I/O on: January 10, 2012, 12:42:37 pm
That construct is part of the C++ language. Google will find you any number of webpages which explain it.

Pete
1553  Using Arduino / Programming Questions / Re: calculating XOR checksum problem on: January 10, 2012, 12:40:32 pm
A zero byte in a checksum doesn't matter but you are printing the checksum as a byte which isn't correct. It has to be a 2-digit hex value.
So use:
Code:
Serial.print(getCheckSum(Output),HEX);  // or use println

It would be best if you changed the getCheckSum routine to return the checksum as an unsigned char.

Pete
1554  Using Arduino / Project Guidance / Re: How to control a Ceiling Fan? (edit!) on: January 10, 2012, 12:19:34 pm
Quote
I've never worked with 220 volts "devices" before
Meddling with 220Vac isn't safe.
You need help from a qualified electrician. If the fan speed can be controlled, they can install a switch with a "dimmer" kind of control that will set the speed. An Arduino, or other microcontroller is not the way to go.

Pete
[edit] P.S. Like your name
1555  Using Arduino / Project Guidance / Re: As fast as an NFL player? on: January 10, 2012, 11:40:43 am
Try being "consistent" in broad daylight with an IR emitter that has a 15 degree beam angle.

Pete
1556  Using Arduino / Audio / Re: Decoding FSk with SoftModem Arduino on: January 10, 2012, 11:27:39 am
OK post V2 of your code. I'd like to try it.

Pete
P.S. I was talking about V1.0 of the IDE. The library doesn't compile.
1557  Using Arduino / Project Guidance / Re: As fast as an NFL player? on: January 10, 2012, 11:21:13 am
It would be whole lot easier to use a thing called a stopwatch.

Pete
1558  Using Arduino / Audio / Re: quantizing midi notes on: January 10, 2012, 10:57:48 am
Quote
Right now I only take the analogvalue and send that to the midi device:
Your code makes no sense whatever. Explain what it does.

Quote
this time i would like to quantize the note/pitch/frequency,
And nor does this. Explain what you mean.

Pete

1559  Using Arduino / Audio / Re: Decoding FSk with SoftModem Arduino on: January 10, 2012, 10:53:52 am
V2 of what?

Pete
1560  Using Arduino / Project Guidance / Re: Young, dumb, and full of...questions. on: January 09, 2012, 09:49:45 pm
It looks to me like the OP's code works, therefore it's a hardware problem.

Pete
Pages: 1 ... 102 103 [104] 105 106 ... 110