Show Posts
Pages: 1 ... 1171 1172 [1173] 1174 1175 ... 1910
17581  Using Arduino / Programming Questions / Re: limits on delay() ? on: January 28, 2012, 07:29:08 am
The compiler only knows of your intent in those cases by automatic type promotion to the type specified by the function prototype.
"Littering" your code with UL will save a lot of grief when it comes to arithmetic.
17582  Using Arduino / Motors, Mechanics, and Power / MOVED: I need help with Servo Code on: January 28, 2012, 04:45:24 am
This topic has been moved to Programming Questions.

http://arduino.cc/forum/index.php?topic=89209.0
17583  Using Arduino / Programming Questions / Re: I need help with Servo Code on: January 28, 2012, 04:43:00 am
Why have you got a prototype for "loop()" inside "loop()"?

You also need to decide if you need {} braces around the body of your for loops. Your indentation is ignored by the compiler.
17584  Using Arduino / Programming Questions / Re: Help with an immediate Interrupt on: January 28, 2012, 04:36:33 am
It isn't normal to specify delays in octal - are "0500", "0060", "0120"  really what you want?
I doubt you really need interrupts, and if you got rid of of all the delays, you'd probably manage it.

Please use CODE TAGS when posting code.
17585  Topics / Robotics / Re: 5 Servo Control for Robot ARm on: January 27, 2012, 05:52:17 pm
The servo library doesn't require you to use PWM pins.
In fact, you should read the documentation for the library regarding the use of the library and PWM on pins 9 and 10 on boards other than the Mega.
17586  Using Arduino / Motors, Mechanics, and Power / Re: Servo problem, scope verified on: January 27, 2012, 05:43:46 pm
Sp. "Mnemonic", nothing to do with air.
17587  Using Arduino / Motors, Mechanics, and Power / Re: servo problems on: January 27, 2012, 05:34:58 pm
@permnoob, are your earlier replies in any way tainted by your other post regarding servos and arrays?
17588  Using Arduino / Project Guidance / Re: What could I be doing wrong? on: January 27, 2012, 05:17:40 pm
That depends on the relay contact specification, and the applied load.
17589  Topics / Robotics / Re: 5 Servo Control for Robot ARm on: January 27, 2012, 04:36:10 pm
 Does it work?
If yes, no worries.
Otherwise, what does it do that it shouldn't, or what doesn't it do that it should?
17590  Using Arduino / Programming Questions / Re: Weird math errors on: January 27, 2012, 03:32:52 pm
Thirty one and a half million is a good long way from four billion, where years since 1972 are involved.
17591  Using Arduino / Motors, Mechanics, and Power / Re: Servo problem, scope verified on: January 27, 2012, 01:24:39 pm
Look at your array RCin, and the "for" loop you use to write past the end of it.
17592  Using Arduino / Programming Questions / Re: Programming help in LOOP function on: January 27, 2012, 10:59:18 am
Quote
edit: Why FORTRAN? It used parentheses for subscripts. Maybe APL?
No, because of the FORTRAN convention for variables with initial letters "I" to "N" being implictly INTEGERs, and hence used as subscripts.
17593  Using Arduino / Programming Questions / Re: Confusing code! Please help! on: January 27, 2012, 08:50:54 am
Quote
I got confused by the pin=0
It's a fairly common construct in a for loop.

http://arduino.cc/en/Reference/For
17594  Using Arduino / Project Guidance / Re: 3d printer using arduino uno on: January 27, 2012, 06:05:34 am
Quote
don't see any difference between an Uno and a Mega except from the number of i/o ports and flash memory involved.
...and the amount of UARTs, EEPROM, PWM, analogue inputs and RAM.
Other than that, they're identical.   smiley

Quote
s it possible to use an arduino uno (or an ATMega328 @ 16MHz board) for a 3d printer project i have in my mind?
We're not mind-readers.
17595  Using Arduino / Programming Questions / Re: Programming help in LOOP function on: January 27, 2012, 06:00:04 am
Code:
  {  if (a == 0)                      /* Did you really mean this? */
It's OK - a side-effect of not posting code correctly between CODE TAGS.
(But then, the highlighting wouldn't have worked)

It actually does read
Code:
  {  if (a[i] == 0)                      /* Did you really mean this? */
which is why italics appear when you don't post correctly.


Personally, I blame FORTRAN
Pages: 1 ... 1171 1172 [1173] 1174 1175 ... 1910