Show Posts
Pages: 1 ... 2148 2149 [2150] 2151 2152 ... 3234
32236  Using Arduino / Programming Questions / Re: getting arduino's to talk to each other on: November 26, 2011, 08:37:54 am
one more thing though, make sure you know what PaulS looks like so you can frisk him for 'free beer' RFID tokens if he ever comes to Barnsley
Hey, I'd send all the tokens back. The ones I could find, anyway...
32237  Using Arduino / Programming Questions / Re: Graphing using serial monitor on: November 26, 2011, 08:35:45 am
That compiles and runs for me, on Win7 64 bit, using Processing 1.2.1. What OS are you using? What version of Processing?
32238  Development / Other Hardware Development / Re: tone() with sanguino on: November 26, 2011, 08:29:16 am
There is considerable difference between the WProgram.h file delivered with the Arduino IDE and the WProgram.h file delivered with the Sanguino package. Almost like the Sanguino package is not being maintained.
32239  Using Arduino / Programming Questions / Re: Moving Return Stack Pointer? on: November 26, 2011, 08:09:35 am
If you are running a stepper motor back to home position, until it hits a limit switch, it seems like a while loop that steps once then checks the limit switch state, until the limit switch is pressed would eliminate the need for the interrupt, and accomplish the same goal.
32240  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino, XBee-API, Maxbotix sensor and trying to measure water ! on: November 26, 2011, 08:00:29 am
Now, I am not a Java developer - I am in learning mode so brear with me here !
No problem, since the Arduino is not programmed in Java.

You are trying to build a PC application, it appears, using Java. Not really an Arduino question. Well, OK.

Code:"/dev/tty.usbmodemfd1321", 9600);
Here, you are trying to call the open method of the xbee object. Where is this xbee object created?
32241  Using Arduino / Programming Questions / Re: h bridge with relay help me for the delay on: November 26, 2011, 07:48:14 am
So, now you have a bunch of functions. Call them in the proper order, with whatever delay you want between them.
void loop()
32242  Using Arduino / Programming Questions / Re: getting arduino's to talk to each other on: November 26, 2011, 07:43:00 am
So back to my original question can anyone give me a price to write this code please
Post a complete description of what you want done in Gigs and Collaborations. If you provide the hardware to build and test the code on, I'd be interested.
32243  Using Arduino / Programming Questions / Re: Creating a variable length array in a c++ Arduino Class on: November 26, 2011, 07:40:31 am
I get the "array bound is not an integer constant" error.
A little hint. Also, let's see some code.
32244  Using Arduino / Programming Questions / Re: Read .CSV file on: November 26, 2011, 07:33:40 am
Extra character on end. Should be:
32245  Using Arduino / Interfacing w/ Software on the Computer / Re: Reading Serial Data from an Arduino in C# on: November 25, 2011, 06:11:16 pm
I have one that I send to anyone that asks. It posts a Windows form and has proper threading to deal with the serial port in one thread and the user interface in another thread. It's a bit long to post here, and requires a number of files that in general don't need to be looked at but do need to be present. Getting them all in the right place from a series of forum posts is challenging.

I've attached it to this post.
32246  Using Arduino / Programming Questions / Re: Moving servos with LDR except each waiting for other to stop on: November 25, 2011, 05:47:04 pm
Ah yes, but so much easier to explain how to get one working.
I think that, in this case, the idea to get two to work is smart, as all the problems are with getting two to move at the same time. Getting just one working by itself is what leads people to use delay() when they know they shouldn't, and causes major restructuring of the code to then not use delay.

In general, though, I agree with your "make it work for one, then expand to more than one" approach.
32247  Using Arduino / Storage / Re: SD card influences sampling rate after "restart" on: November 25, 2011, 05:42:38 pm
Or would it do the trick, if I would properly close the file at the end of each loop and re-open it again (and how DO I close it properly)?
Whether it would "do the trick" or not, it should be done.

- there is no "logfile.close()" line in the example sketch (or however the file might be closed). I understand that this is not a problem in an endless loop, but...
I think you know HOW to do it.

- What exactly happens if I close the file, is there some kind of end tag or so?
A number of things happen, not the least of which is that any pending (buffered) data is actually written to the file.

You can then open the file for append, and the SD library figures out where to write to the file.

Be aware, though, that opening and closing the file are not terribly fast operations. Buffering data, and opening the file when the buffer is (nearly) full and writing the whole buffer will reduce the number of times that you need to open and close the file. On the other hand, it increases the risk of lost data. How much data might get lost depends on how big the buffer is.
32248  Using Arduino / Interfacing w/ Software on the Computer / Re: Simple problem connecting to a windows .c program... not simple for me :( on: November 25, 2011, 05:24:37 pm
and all works now
Great. Thanks for posting your solution.
32249  Using Arduino / Programming Questions / Re: Moving servos with LDR except each waiting for other to stop on: November 25, 2011, 05:12:28 pm
Treat that as an outline, not THE way to do things. Some functions, like motorOneForward(). would be better as motorForward(int whichOne). The time variables should be arrays, as should the booleans. Lots of stuff should be done in loops.
32250  Using Arduino / Programming Questions / Re: noob programming help on: November 25, 2011, 05:03:22 pm
but i think ill have to start at the start again.
That would be one approach. The other would be making sure functions are not nested.
void setup()

void loop()

void inAndOut()
Pages: 1 ... 2148 2149 [2150] 2151 2152 ... 3234