Loading...
  Show Posts
Pages: [1] 2 3 ... 93
1  Using Arduino / Programming Questions / Re: delay() & equivalent not working. on: May 17, 2013, 03:45:23 pm
What I was really querying was did that line compile ?
2  Using Arduino / Programming Questions / Re: Get steering and drive servos to work at the same time on: May 17, 2013, 02:11:09 pm
The delays stop anything happening until the delay is finished.  Does that explain why your problem is happening ?
3  Using Arduino / Programming Questions / Re: delay() & equivalent not working. on: May 17, 2013, 02:05:26 pm
Code:
unsigned long int=now;
Is that really part of your code ?  Please post all of your code.
4  Using Arduino / Programming Questions / Re: [Help] Hold Position Sytem Use Servo, IMU and PID on: May 17, 2013, 10:11:13 am
The rollServo value sounds like it is the centre point between 1000 and 2000 when using the writeMicroseconds() method from the servo library.  Using that method allows finer control of the servo position, 1000 steps instead of 180 using the write() method from the library.

http://arduino.cc/en/Reference/ServoWriteMicroseconds
5  Using Arduino / Programming Questions / Re: Arduino PreProcessing. on: May 17, 2013, 05:55:32 am
Turn on verbose compilation in File/Preferences and see what that reveals.
6  Using Arduino / Programming Questions / Re: Same code works and it doesn't on: May 17, 2013, 04:58:14 am
Can you explain what you mean when you say that things don't work ?
What does happen when you try ?
7  Using Arduino / Programming Questions / Re: 3 little problems in my program! on: May 17, 2013, 02:29:05 am
To stop multiple SMS messages, set a boolean variable to true when you have sent the first one the, if it is true, don't send the second and subsequent messages.

I don't understand the second question

You cannot combine text and a variable in a single Serial.print() statement.  Do this
Code:
Serial.print("Temperature : ");
Serial.println(CurrentTemp);
or use sprintf(), but you can do your own research on that.

Put your code posted here in code tags to stop the forum software interpreting your code as smileys.  See the stickies at the start of this forum section for advice on how to post.
8  Using Arduino / Programming Questions / Re: SoftwareSerial strange behaviour on: May 17, 2013, 01:47:21 am
The documentation says
Quote
If using multiple software serial ports, only one can receive data at a time.
Have a look at the listen method.  This allows you to control which port is receiving data.  However, it has its downsides
Quote
Enables the selected software serial port to listen. Only one software serial port can listen at a time; data that arrives for other ports will be discarded. Any data already received is discarded during the call to listen() (unless the given instance is already listening).
Depending on what you are doing this may or may not be a problem.

The Arduino Cookbook has this on the subject
http://my.safaribooksonline.com/book/hardware/arduino/9781449321185/discussion/id3260287
9  Using Arduino / Programming Questions / Re: How to save 9600 port to text file on: May 17, 2013, 01:34:05 am
This looks good but I have no experience of it
http://www.eltima.com/products/rs232-data-logger/
10  Using Arduino / Programming Questions / Re: Difficulty understanding Arduino programming language on: May 17, 2013, 01:30:48 am
Have a look at the Jeremy Blum tutorials on YouTube
http://www.youtube.com/results?search_query=jeremy+blum+arduino
They are an excellent introduction to programming and using the Arduino.
11  Using Arduino / Programming Questions / Re: Programing Problems on: May 17, 2013, 01:25:47 am
The confusion is that there are 2 folders called libraries associated with the Arduino.  One holds the libraries that are installed with the Arduino IDE and the other is for user contributed (add on) libraries.  The one that you should be putting the library in is the latter.  It is situated in the same folder as your Arduino sketches (horrible word !).  Inside that folder you need another folder with the same name as the library which then contains the library files, usually a .h and .cpp file.

My add on libraries file is at C:\Users\Bob\Documents\Arduino.  Substitute your Windows username for mine and you should see your sketch folders and a libraries folder.  That is the one you need.

Do not put add on libraries in the libraries folder under the main arduino-1.0.4 folder.
12  Using Arduino / Programming Questions / Re: Programing Problems on: May 16, 2013, 04:51:53 pm
The message means that the library file are not where the compiler expects them to be so the code that they contain has not been compiled into the program so references to it fail..  Look at this page http://arduino.cc/en/Guide/Libraries for advice on where the library files should be installed.

The second paragraph that you quoted also explains very specifically where the library files should be and even the name of the folder in which they should be placed.
13  Using Arduino / Programming Questions / Re: I must be blind... don't see why it doesn't work on: May 16, 2013, 12:12:02 pm
Have you tried just printing 16 spaces to the line that you are about to print to rather than clearing the LCD as a whole ?
14  Using Arduino / Programming Questions / Re: boolean array question on: May 16, 2013, 12:02:39 pm
Do you have an array of 1000 booleans as the thread title implies or an array of 1000 bits as your question implies ?  If it is an array of 1000 bits what data type are the array elements ?

WARNING : You are very likely to short of memory with a 1000 element array.
15  Using Arduino / Programming Questions / Re: "blink without delay" in servo motors on: May 16, 2013, 02:52:20 am
You need to eliminate the delay() commands in your code and do the timing using the millis() command and change the program structure to avoid it staying in the turnRight() or turnLeft() functions.

Have a look at the BlinkWithoutDelay example to see how to time actions without blocking execution of other code such as, in your case, reading a sensor and acting on it.

Pages: [1] 2 3 ... 93