Show Posts
Pages: 1 ... 1886 1887 [1888] 1889 1890 ... 3365
28306  Using Arduino / Interfacing w/ Software on the Computer / Re: What's the simplest way to communicate between Arduino & a browser on: May 03, 2012, 05:40:24 am
Quote
So, will it be easier to either use an Ethernet shield or buy an Ethernet Arduino in order to communicate between it and the browser?
Easier that what? The web browser normally knows nothing about a serial port, so the ethernet shield, and Arduino-as-server, is the only way for a browser to communicate with an Arduino.

Quote
Is there a knack to serial communication between browser and board that I don't know about?
Since we have no idea what you do, or do not, know about serial communication between a browser and a board, how are we supposed to know?

Other, of course, than the fact that the browser doesn't communicate with the serial port.
28307  Using Arduino / Programming Questions / Re: AT Commands for BenQ M32 on: May 03, 2012, 05:32:17 am
Why did you buy this particular modem without getting these answers first?
28308  Using Arduino / Programming Questions / Re: Serial input manipulation on: May 03, 2012, 05:24:05 am
Did that mess that you posted even compile? I didn't think so. You can NOT nest one function (ph_convert) inside another one.

Code:
    for(i=1; i <= holding;i++){                 
      stamp_data[i]= Serial.read();     
Array indices start at 0, not 1.

Code:
          Serial.flush();
Get rid of this. Period. Clearly, you have no idea what this does.

Code:
          PH_V = stamp_data[i];
PH_V, whatever it is, will only ever contain one character.
28309  Using Arduino / Programming Questions / Re: Serial.write(ptr,len) ->increment ptr while applying a function on: May 03, 2012, 05:12:14 am
Code:
char * updatevalue(*char ptr){
uint8_t c = *ptr*2;
return &c;
}
Did you bother even trying to compile this?
28310  Using Arduino / Programming Questions / Re: Wave Shield Code Question on: May 03, 2012, 05:07:11 am
Is all that commented out code part of the problem, or not? If not, GET RID OF IT!.

Clearly, something you are doing is causing the Arduino to reset. Add more Serial.print() statements, to see where it is getting to/not getting to. The code between where it gets to and where it does not get to is the problem.
28311  Using Arduino / Programming Questions / Re: Arduino DAQ w/strain gage on: May 03, 2012, 04:46:18 am
Quote
Where in the code is it referencing pin 15 (that may or may not be a stupid question :/)?
A1 is an alias. On a 328-based Arduino, the alias has a value of 15.

It looks like whatever you have connected to analog pin 1 is not providing a voltage that the Arduino can read, so it appears that the pin is floating. You do have whatever is connected to analog pin 1 also connected to ground, right?
28312  Using Arduino / Programming Questions / Re: led on through sms using gsm shield sim900? on: May 03, 2012, 04:25:09 am
You want to use a shield to turn an LED on and off? The simplest, then, is to glue the shield to the end of a servo, and position it over a switch. Rotate the servo to one position to turn the LED on, and to another position to turn it off.
28313  Using Arduino / Programming Questions / Re: Varible Conversion & Serial question on: May 03, 2012, 04:16:11 am
Quote
any idea's?
As a matter of fact, yes. Add some serial output. Are you receiving what you think you are?

The move() function on the receiver is passed an array of chars. It expects a char. Fail!

Some of the motor control wires control direction, and should be connected to non-PWM pins, with digitalWrite() used to control them. Do the motors do what they are supposed to with a simple sketch on the receiver?

What, exactly, is connecting the two Arduinos?
28314  Using Arduino / Programming Questions / Re: Arduino DAQ w/strain gage on: May 02, 2012, 02:30:09 pm
If, instead of sending data to excel, you simply send the data to the Serial Monitor, do you still see the random data?

What is connected to pin 15? Why not use the correct number for the analog pin (1)?
28315  Using Arduino / Programming Questions / Re: Error with simple button code on: May 02, 2012, 02:20:16 pm
Code:
int counter = 0
You forget something? Like, oh, I don't know, maybe a ;.
28316  Using Arduino / Programming Questions / Re: Varible Conversion & Serial question on: May 02, 2012, 01:08:57 pm
The packet (r) needs to be between start and end markers. Try sending "<r>", instead of "r".
28317  Using Arduino / Interfacing w/ Software on the Computer / Re: Error with VB2010 on: May 02, 2012, 12:27:21 pm
Code:
            If recStr > 1000 Then
But, recStr is a String. What does a String greater than 1000 mean?

I think you need to convert the String to a number, if possible, and compare and manipulate that number.
28318  Using Arduino / Interfacing w/ Software on the Computer / Re: Error with VB2010 on: May 02, 2012, 12:18:10 pm
Quote
but when I try to display the variable on a label I get an error.
And that error is?
28319  Using Arduino / Programming Questions / Re: Serial.write command execution time variations on: May 02, 2012, 12:02:18 pm
Quote
PaulS, where do you get all those anwsers from?
I make them up as I go along. When that fails, I read the source code.
28320  Using Arduino / Project Guidance / Re: Potentiometer servo control through an XBee on: May 02, 2012, 11:51:12 am
Quote
get the functionality you want on a single Arduino
Agree that this should be the first step.

Quote
get radio comms working
I disagree with this as the 2nd step. Wired communication between two Arduinos would be my next step.

Then, add the complexity of radios.
Pages: 1 ... 1886 1887 [1888] 1889 1890 ... 3365