Show Posts
Pages: 1 ... 42 43 [44] 45 46 ... 236
646  Using Arduino / Programming Questions / Re: PORT outputs going LOW unexpectedly on: February 07, 2014, 02:04:34 am
What devices are you driving from the pins ?
647  Using Arduino / Programming Questions / Re: Displaying Alarm Times from other functions on: February 07, 2014, 02:01:35 am
I don't know enough about HTTP to give you detailed advice on its use, but if you are worried perhaps that data sent in the way you are doing it will involve several HTTP requests then why not collect  all the data  in an array before sending it in bulk ?
648  Using Arduino / Programming Questions / Re: Displaying Alarm Times from other functions on: February 06, 2014, 05:53:06 pm
Quote
So if I have to do 3 times of each with the digitalClockdisplay() and the showAlarmTime all within my Trial function as you suggested, would this be the most practical and efficient way of doing this?
I don't agree that it is either practical or efficient but if that is the way you want to do it then it is, of course, OK with me.
649  Using Arduino / Programming Questions / Re: Using client.print in multiple functions within the same call on: February 06, 2014, 01:15:57 pm
I have replied to the specific question in the other thread.
650  Using Arduino / Programming Questions / Re: Displaying Alarm Times from other functions on: February 06, 2014, 01:14:47 pm
It sounds like you want everything to happen in the Trial() function.  You can do that if you really must, but it will mean putting the code currently in the showAlarmTime() in the function 3 times along with the code from digitalClockDisplay() 3 times.  Do you really want to do that, and if so, why ?
651  Using Arduino / Programming Questions / Re: Using client.print in multiple functions within the same call on: February 06, 2014, 12:46:00 pm
Is this the same question as your last one in http://forum.arduino.cc/index.php?topic=215704.0 ?
652  Using Arduino / Programming Questions / Re: Average coordinate points on: February 06, 2014, 12:26:07 pm
Add them up and divide by the number of readings I would think.

A question for you.  How long does the program stay in this while loop ?
Code:
    while(1)
    {
    }
653  Using Arduino / Programming Questions / Re: Displaying Alarm Times from other functions on: February 06, 2014, 12:18:33 pm
Quote
1. Why must I have one function call another function to call another function to print these times?

2. Can I call  one function that identifies the ID of the alarm and prints the time in that same function without having to call multiple functions?
1. You don't need to do that.  You choose how to structure your program and using functions with parameters is a good idea.  The easiest way to simplify things would be to put the code from the digitalClockDisplay() function in the showAlarmTime() function.

2. Yes.  Move the code that you have into a single function if that is what you want to do.
654  Using Arduino / Project Guidance / Re: Project image elaboration on: February 06, 2014, 11:59:57 am
It may be better if you post this in the Italian section of the forum http://forum.arduino.cc/index.php?board=34.0 in order to avoid problems with language preventing understanding your problem and giving advice.
655  Using Arduino / Programming Questions / Re: Servo rotation help on: February 06, 2014, 10:41:14 am
Well, I could just tell you what the problem is but, as the old saying goes, "fix a bug for someone and they will make the same mistake again, but lead someone to a bug that they fix themselves and they will remember it for ever"
656  Using Arduino / Programming Questions / Re: Save data and send to serial port on: February 06, 2014, 09:24:39 am
Once you have learned to write to EEPROM and read it back be very careful how often you do it because the EEPROM can only be used for a relatively small number of write and read cycles to each of its memory locations. 

Are you sure that you need to write to the EEPROM ?  Could you not send the data as it is read from the accelerometer ?
657  Using Arduino / Programming Questions / Re: Compile two sketches on: February 06, 2014, 09:16:22 am
A test for you to do.  Take everything out of the loop() function and run the program.  Does the LCD display anything ?

The image that I assume you posted is not visible but if you have removed some links to the LCD then all bets are off.
658  Using Arduino / Programming Questions / Re: Servo rotation help on: February 06, 2014, 09:10:38 am
The problem is not with the for loop itself but with the value of pos after it.  Try this
Code:
int pos;
void setup()
{
  Serial.begin(115200);
  for (pos = 0; pos <=90; pos +=1)
  {
    Serial.println(pos);
  }
  Serial.print("pos after the for loop is ");
  Serial.println(pos);
}

void loop()
{
}

Will this line ever be true after the for loop from 0 to 90 ?
Code:
if ( (digitalRead(button2) == HIGH) && (pos == 90) )
659  Using Arduino / Programming Questions / Re: how to read data from serial port on: February 06, 2014, 06:38:54 am
Have you tried the link I gave in a previous post or searched for "Arduino SoftwareSerial" either using Google or in this forum ?

http://arduino.cc/en/Reference/SoftwareSerial
660  Development / Suggestions for the Arduino Project / Re: IDE tab bar not enought wide for big sketch. on: February 06, 2014, 06:33:59 am
Quote
when you have too many tabs open in the IDE you cannot select the off-screen tab buttons. There is no shift left/right button like most standard tab bars.
True, but the drop-down lets you select any tab in the project and make it the current one being edited.  If you prefer not to take your hands from the keyboard then Ctrl/Alt/Left-Right arrows do the same thing.
Pages: 1 ... 42 43 [44] 45 46 ... 236