Show Posts
Pages: 1 ... 1069 1070 [1071] 1072 1073 ... 1863
16051  Using Arduino / Project Guidance / Re: ARDUINO HC SR04 AND SERVO MOTOR HAPTIC FEEDBACK on: March 18, 2012, 12:36:58 pm
You should be careful when choosing vibra motors; the simple DC motor types are easiest to drive, but the linear ones generally need AC.
16052  Using Arduino / Programming Questions / Re: Simple code, must be a simple fix! need help!! on: March 18, 2012, 12:33:05 pm
No, you need to post your updated code
16053  Using Arduino / Programming Questions / Re: Simple code, must be a simple fix! need help!! on: March 18, 2012, 12:27:27 pm
Also please go back to your original post, click on "modify", then highlight the code, click on the # icon on the editor's toolbar, then click on "save".
16054  Using Arduino / Audio / MOVED: Help needed merging code on: March 18, 2012, 10:06:02 am
This topic has been moved to Project Guidance.

http://arduino.cc/forum/index.php?topic=97218.0
16055  Using Arduino / Project Guidance / Help needed merging code on: March 18, 2012, 10:03:18 am
The idea is that you show us what you have done, and we try to help you with any problems.
Any more than that, and it looks like we're writing it for you, and that would be no fun for you.
16056  Using Arduino / Project Guidance / Re: Help: Arduino and analog output on: March 18, 2012, 09:27:37 am
Quote
My question is: I need to add a low pass filter to the PWM output?
Yes, that is correct.
16057  Community / Bar Sport / Re: Every so often I am stunned by a post. on: March 18, 2012, 05:29:07 am
It's pretty much the core of strcpy.
The thing to remember is that in C, every expression evaluates to true or false, even assignments.
True is non zero, false is zero, so the assignment of the terminating zero of the string terminates the loop.

For me, the most peculiar thing about C is that the missing condition in
Code:
for(;;)
evaluates to true.
16058  Using Arduino / Project Guidance / Re: Please help: Pins are not functioning! on: March 17, 2012, 05:38:32 pm
But unlike that example, make sure you put a delay after turning the pin LOW in the for loop, otherwise you might think your LED isn't turning off
16059  Using Arduino / Programming Questions / Re: switch case on: March 17, 2012, 05:15:58 pm
Hah!
Correct, in which case, (no pun intended) ignore reply#2
16060  Using Arduino / Programming Questions / Re: switch case on: March 17, 2012, 04:56:00 pm
I think you've missed the point - there are no "case"!
In effect, the statement reads something like
Code:
switch (x) {
0: break;
1: break;
}
16061  Using Arduino / Project Guidance / Re: Capturing jpeg from camera to sd card on: March 17, 2012, 01:50:11 pm
Quote
Someone can help me to figure out what is wrong on my code?
I can't see your code, so no, I think it unlikely.
16062  Using Arduino / Programming Questions / Re: while loop delay the serialEvent function? on: March 17, 2012, 01:42:45 pm
No, not dead, just not called.

Quote
serialEvent should be based on interrupt,
I don't think it should; if it were people would just do daft things like call delay, or do serial I/O in it.
16063  Using Arduino / Programming Questions / Re: Newbie Question: Make a servo turn 90 degrees and stop. on: March 17, 2012, 01:18:43 pm
A proper servo will only cost a few dollars from a good model shop.
16064  Using Arduino / Programming Questions / Re: Newbie Question: Make a servo turn 90 degrees and stop. on: March 17, 2012, 01:07:55 pm
The problem with that code is, as the battery fails (as it will, rapidly), the amount of time the servo takes to turn 90 degrees will change.
This may or may not be important to you.
16065  Using Arduino / Programming Questions / Re: Newbie Question: Make a servo turn 90 degrees and stop. on: March 17, 2012, 12:44:54 pm
Quote
How about I control the postion as stated in one of the comments.
You have no positional feedback from that device unless you add your own potentiometer, or somehow enable the one that has been disconnected.
That comment relates to the fineness of control using the "writeMicroseconds" method instead of "write"
Pages: 1 ... 1069 1070 [1071] 1072 1073 ... 1863