Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 748
61  Using Arduino / Project Guidance / Re: interfacing Jpeg colour camera C329 with Arduino mega 2560 on: April 16, 2014, 05:10:57 pm
a quick search here turned up several promising-looking projects and you should be able to find them as easily as I did.

Is Google broken where you are?
62  Using Arduino / Programming Questions / Re: Webcam on: April 16, 2014, 05:09:27 pm
connecting the webcam to the mifi is of no point, so, correct me if I understood it wrong

You understood it wrong. The point of the MiFi is to act as a gateway between the local area network where the camera is, and your GPRS network. It's how you make your mobile IP camera accessible via the internet.
63  Using Arduino / Programming Questions / Re: Serial communication does not work correctly between Arduino and Processing on: April 16, 2014, 05:06:37 pm
Your sketch will only call detachServos() if pos equals one. I see no way to guess what value it has when you're running your test, but if it wasn't one then that would explain your symptoms. It would be a lot easy to understand what was going on if your sketch printed status messages back to the serial port and you enhanced the Processing application to read and display them somewhere.
64  Using Arduino / Programming Questions / Re: Error: com port X already in use on: April 16, 2014, 05:00:14 pm
I haven't seen that problem. If it keeps happening, it would be possible to identify which process has the COM port open. As a first step, I suggest you check whether you have any applications installed which scan for serial devices. Cellphone manager applications often do this sort of thing.
65  Using Arduino / Programming Questions / Re: multiple buttons on analog input on: April 16, 2014, 04:56:42 pm
I think the problem you want help with is that you want to work out which button was pressed, when you have multiple buttons connected to an analog input via a resistor circuit.

Some circuits enable you to handle the case where multiple buttons are pressed simultaneously. Some don't. From you comment about analogRead ranges, I guess you aren't trying to do that. In that case all you need to do is a sequence of range checks on the value to see which range it falls in, and identify the corresponding button. Relating that button to a character code is a very simple, but completely separate, problem. I suspect you also want some logic to let you work out when the key press occurs. You can do that by recording the previously-pressed button and test whether the currently-pressed button is the same.
66  Using Arduino / Project Guidance / Re: Real Time Image processing timing problem on: April 16, 2014, 04:46:13 pm
Sorry if my english is bad I hope I'm clear.

Your English is fine but it sounds like a complicated system and it is unclear exactly how you intend it to work.

I assume you're asking about the Arduino part of your solution. Can you describe what the Arduino does currently (in terms of the sequence of inputs it receives and actions it takes) and then describe what you want it to do in the same terms?
67  Using Arduino / Project Guidance / Re: send url using a switch.? on: April 16, 2014, 04:43:09 pm
If you post your code, perhaps somebody will be able to spot the cause of your problem.
68  Using Arduino / Project Guidance / Re: Blocking -VDC on: April 16, 2014, 04:41:01 pm
I need to read what direction a shaft is spinning ... I have found some information on rotary encoders but have not found one that seems like it will be durable enough

A rotary encoder seems like a much more obvious solution than a motor/dynamo etc. What environment will it be in? I would have thought that even simply putting an encoder wheel wherever you were proposing to put the motor would give you a simpler and more reliable solution, but depending what you are trying to measure the rotation of there may be even better possibilities open to you.
69  Using Arduino / Project Guidance / Re: Speed Calculator Project on: April 16, 2014, 02:26:54 pm
I could tell where the vehicle is coming from (i.e which direction), the speed, and vehicles/min

Will the above code do this? 

No, I don't think so.

I think you want to detect the initial rising edge for each input, and record the time it happens, and then when you have seen both rising edges compare the two times to work out direction and speed. Then wait for long enough for both inputs to settle, and finally go back to the idle state where you're looking for the next rising edge. It could look roughly like this:

Code:
// incomplete, uncompiled

int leftValue = analogRead(leftSensorPin);
if((leftTime == 0) and ((leftValue < 400) or (leftValue > 600)))
{
   // left pulse detected
    leftTime = millis();
}
if((rightTime == 0) and (digitalRead(rightSensorPin) == HIGH))
{
    // right pulse detected
    rightTime = millis();
}
if((leftTime > 0) and (rightTime > 0))
{
    // both signals detected, determine direction and speed
    speed = distance / (rightTime - leftTime); //positive speed means left-to-right, negative means right-to-left
    count++; // I don't know whether you want to count each direction separately

    delay(500); // wait long enough for both sensors to settle down
    leftTime = 0;
    rightTime = 0;
}
70  Using Arduino / Project Guidance / Re: send url using a switch.? on: April 16, 2014, 11:13:23 am
Create a function containing the client logic from your example client sketch. (Leave out the exit() call at the end of the function.)

Put the function (and any global data it requires) in your web server sketch.

Make any changes you need to that so that it carries out the HTTP request that you want.

Call that function at the point you want that request to be performed within your web server sketch.
71  Using Arduino / Project Guidance / Re: Log FuelFlow -Reading 4 frequency inputs (digital on/off) and logging to SD card on: April 16, 2014, 11:07:40 am
EDIT: added updated sketch

Are you sure you attached the right version? I don't see the changes you described above.
72  Using Arduino / Programming Questions / Re: Boat autopilot - PID not centralizing rudder. on: April 16, 2014, 08:57:24 am
As long as the wind vane (PIDInput) is a bit in front of the jib (and the rest of the boat), it should not be affected by the boat itself.

See Robin2's first paragraph in Reply#24.
73  Using Arduino / Programming Questions / Re: Pulse train comparrison/matching on: April 16, 2014, 08:54:06 am
Are you saying that when there is no smoke detection there is no signal, and when there is smoke detection there is the signal you displayed above?

Does the device also put put any other signals that you need to identify as NOT being a smoke detection signal?
74  Using Arduino / Programming Questions / Re: multiple buttons on analog input on: April 16, 2014, 08:51:39 am
Look at the StateChangeDetection example sketch.
75  Using Arduino / Programming Questions / Re: Webcam on: April 16, 2014, 08:49:54 am
Well, to be more precise, I can't use wifi because my project is a boat or ship, and I'm using GPS, so, I'll need an open area for it, and most likely, I might not find a wifi in that area, so, what's the plan in this case ?!!.

Did you read the second paragraph in my reply, that started "If that isn't possible ..."?
Pages: 1 ... 3 4 [5] 6 7 ... 748