Show Posts
Pages: 1 ... 1071 1072 [1073] 1074 1075 ... 1740
16081  Using Arduino / Programming Questions / Re: if statement problem! on: November 23, 2011, 05:53:40 am
It is a very useful and effective way of doing what you want, however, as I pointed out above, putting an infinite loop in any of your sub-menus will lock your system solid.
16082  Using Arduino / Programming Questions / Re: =( Please Help me =( on: November 23, 2011, 05:51:54 am
Why do you want to make an aerial vehicle less reliable?
16083  Using Arduino / Programming Questions / Re: =( Please Help me =( on: November 23, 2011, 05:33:52 am
Quote
Now I want to do it with Arduino
If only we knew what "it" was, maybe we could help you.
16084  Using Arduino / Programming Questions / Re: Reading values from string and split in commands on: November 23, 2011, 05:32:56 am
Code:
  if(Serial.available() > 0){
    delay(10);
    int z=0;
    char *str;
    while(z<19){
      sBuffer[z] = Serial.read();
      ++z;
    }
I think your understanding of serial comms needs some realignment too.
Look what happens here: At 9600, one character takes just over a millisecond to transmit, so the chances that there are 19 characters in the buffer after a delay of only 10 milliseconds are quite low.
16085  Using Arduino / Programming Questions / Re: if statement problem! on: November 23, 2011, 05:16:28 am
Quote
, i exit the while statement by calling another void function
You don't exit the while loop like that; when the function returns, you're still in the loop.

Code:
  while(looper == 5); {
BZZZZT!
16086  Using Arduino / Programming Questions / Re: if statement problem! on: November 23, 2011, 02:57:11 am
My eyes hurt trying to read that.
Can you use the Auto-format tool (ctrl-T) in the IDE before posting code, please?
Also, when posting code, please use the # icon on the toolbar to put the code in a code box.
16087  Using Arduino / Project Guidance / Re: working with LDR on: November 22, 2011, 05:42:34 pm
Read reply #16 and get back to us.
16088  Using Arduino / Programming Questions / Re: digitalRead/if error: runs through code, despite if's on: November 22, 2011, 05:30:43 pm
I think I'm pretty much with PaulS on this.

Why is 150 30% of anything? (except for 500)
Start putting Serial debugging in your code and reporting the results - we can't see your LED.
16089  Using Arduino / Project Guidance / Re: GPS+Compas+accelerometer to track Polaris star on: November 22, 2011, 04:59:15 pm
The resolution of 0.05 degrees is dead easy, it just depends over what range you need this resolution.
16090  Using Arduino / Project Guidance / Re: working with LDR on: November 22, 2011, 04:48:35 pm
I can't see from that sketch how the serial monitor shows anything.
16091  Using Arduino / Programming Questions / Re: dec2bin and bin2dec on: November 22, 2011, 04:42:48 pm
Is there one of the International Forums that is better suited to your native language?
16092  Using Arduino / Project Guidance / Re: Basic "Timer" on: November 22, 2011, 03:53:29 pm
Yes, something like that.
Depends what your code looks like.
16093  Using Arduino / Programming Questions / Re: dec2bin and bin2dec on: November 22, 2011, 03:50:11 pm
A look up is just a table of values.
Code:
const byte LUT [] = {
0,8,4,12. etc
  }
See the pattern?
(Can you explain where your 13 variables come from?)
16094  Using Arduino / Project Guidance / Re: Basic "Timer" on: November 22, 2011, 03:45:29 pm
You don't reset the counter, you use your own"zero"
16095  Using Arduino / Programming Questions / Re: two tasks at the same time on: November 22, 2011, 03:43:28 pm
Looking hopeful, but there's no need to set the pinMode for an analogue pin.
Sorry, I'm not sure, is your language Dutch or Flemish?
Pages: 1 ... 1071 1072 [1073] 1074 1075 ... 1740