Show Posts
Pages: 1 ... 1182 1183 [1184] 1185 1186 ... 1917
17746  Using Arduino / Programming Questions / Re: DC motor Steering control through POT on: January 24, 2012, 03:26:13 pm
Is, as has been suggested, your processor resetting?
You'd know this, if you'd followed the suggestion to label your prints.
What is the battery thing doing in your circuit?
17747  General Category / General Discussion / Re: How does the Member Status system work in this Forum?? on: January 24, 2012, 02:39:26 pm
Some of us have blue stars.
Dunno why.
17748  Using Arduino / Programming Questions / Re: robot code issue on: January 24, 2012, 02:36:55 pm
Well, most (if not all) of the comments on the "for" loops are wrong.
That may be relevant.

Did you remember to wait long enough for the servo to move?
17749  Topics / Robotics / Re: material on: January 24, 2012, 12:29:53 pm
Your question doesn't make a lot of sense in English - is there a section for your native language in the International section?
17750  Using Arduino / Programming Questions / Re: What does * mean? on: January 24, 2012, 12:14:13 pm
The problem with declarations of the form "type* var", that whilst you can write "type* ptr0, ptr1;" only "ptr0" is a pointer, but "ptr1" is simply a variable of type "type".

The compiler will point out the error of your ways when you try to use "ptr1" as a pointer, but it can lead to confusion.
17751  Using Arduino / Programming Questions / Re: waitForKey() function on: January 24, 2012, 06:15:54 am
Quote
The question is "Am I using waitForKey() correctly?"
In the code you posted originally?
No.
See reply #1, second question.
17752  Using Arduino / Programming Questions / Re: Line Following Program on: January 24, 2012, 06:11:47 am
Or even encode the four sensor values into a single "int", and use a switch/case construct.
But whichever way, always with debug prints.
17753  Using Arduino / Programming Questions / Re: Line Following Program on: January 24, 2012, 02:43:45 am
Time to add some debug prints.

Quote
But still only one motor work ,, while the second is off all the time
We have a 50:50 chance of guessing which motor is working, and from that, we can infer which one isn't working.
Or, you could tell us.
17754  Using Arduino / Programming Questions / Re: Line Following Program (Please don't shout) on: January 24, 2012, 02:36:46 am
Well, you managed to write to "leftmotor" and "rightmotor".
Have a look over at the reference section on the Main Site for some clues.

Here's another hint:
http://arduino.cc/forum/index.php/topic,84249.msg631172.html#msg631172
17755  Using Arduino / Programming Questions / Re: sort order return on: January 24, 2012, 02:24:05 am
Code:
while(outIndexes[i]=len+1)
Nail-head contact point -  33 is ALWAYS true.
Did you mean == ?
17756  Using Arduino / Programming Questions / Re: Line Following Program on: January 24, 2012, 02:21:35 am
Code:
if (R == HIGH && LR == LOW && LL == HIGH && L == HIGH)
You need to read R LR, LL and L, before you can test them

(and there's probably no good reason for them to be globals either.)
17757  Using Arduino / Programming Questions / Re: Arduino Noob Needs help using code from an Instructable on: January 23, 2012, 06:22:34 pm
Did you restart the IDE?
17758  Using Arduino / Programming Questions / Re: DC motor Steering control through POT on: January 23, 2012, 06:03:55 pm
You've been given a lot of advice on this thread, much of which you have chosen to ignore.
Why should we continue to waste our time trying to help you, if you won't help yourself?
17759  Using Arduino / Programming Questions / Re: [Chill ] Arduino Noob Needs help using code from an Instructable [Chill] on: January 23, 2012, 05:59:15 pm
Relax - April 1st is a couple of months off.

(Besides, who would trust code from someone who can't spell "receive"?   smiley-wink
17760  Using Arduino / Programming Questions / Re: DC motor Steering control through POT on: January 23, 2012, 04:12:24 pm
What's that thing labelled "Heavy Duty"?
Pages: 1 ... 1182 1183 [1184] 1185 1186 ... 1917