Show Posts
Pages: 1 ... 8 9 [10] 11 12 ... 43
136  Using Arduino / Programming Questions / Re: Non-loop programming problem on: April 27, 2014, 05:36:59 pm
First time I did this was with a 6502 processor. Machine code. Not assembly!
137  Using Arduino / Programming Questions / Re: Non-loop programming problem on: April 27, 2014, 04:48:35 pm
April? Traffic lights? Home work?
138  Using Arduino / Programming Questions / Re: GPS Help - Not Getting Expected Data Out on: April 27, 2014, 02:55:35 pm
Perhaps I'm missing it, but where do you connect to the monitor? If you mean Serial Monitor, then you need Serial.begin(), Serial.print(), etc.
139  Using Arduino / Project Guidance / Re: Controlling phone with arduino on: April 27, 2014, 12:55:46 pm
In that case you are probably looking at Bluetooth and then a phone will always have to be in range. Or wi-fi?
140  Using Arduino / Project Guidance / Re: Controlling phone with arduino on: April 27, 2014, 12:41:40 pm
Why not use a GSM shield to send you a text?
141  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Shield - EiFi [Urgent] on: April 27, 2014, 05:06:51 am
Try this:

Code:
#include <SoftwareSerial.h>

#define rxPin 2
#define txPin 3

SoftwareSerial mySerial(rxPin, txPin);

void setup()
{
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  mySerial.begin(9600);                             // setting baud to 9600
  Serial.begin(9600);
}

void loop()
{

  mySerial.write("AT\r\n");

  char rcv;
  while (mySerial.available()==0) // Sit in a loop awaiting some input
  {
  }

  if(mySerial.available()) // Which it will be
  {
    rcv = mySerial.read();
    Serial.print(rcv);
  }

  delay(1000);
}


It's just a modification of your code, not the way I would do it. It will only print out the first character of any response. You might also wish to consider printing out the ASCII value of what is received just in case it's a control character.
142  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Shield - EiFi [Urgent] on: April 26, 2014, 03:41:17 pm
Which Arduino are you using?
143  Using Arduino / Programming Questions / Re: No GPS signal via SoftwareSerial on Mega... but works on Uno. on: April 26, 2014, 01:22:16 pm
I don't know of this might be the cause of your problems, but from the page on SoftwareSerial:

Quote
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
144  Using Arduino / Programming Questions / Re: Print Fails on: April 25, 2014, 04:04:08 pm
If you want more help then provide more code. All of it for instance.
145  Using Arduino / Programming Questions / Re: FESTO pneumatic programming on: April 25, 2014, 03:29:53 pm
Would you care to provide us with a link to said item?
146  Using Arduino / Networking, Protocols, and Devices / Re: gps track on: April 25, 2014, 03:18:36 pm
I buy bandwidth at so much a month. I'm not going to waste nearly 2 megabytes downloading your photo.

And I asked for links to the hardware, not a photo. If you can't provide links then I can't help you.
147  Using Arduino / Networking, Protocols, and Devices / Re: gps track on: April 25, 2014, 02:53:55 pm
Links to the hardware you are using?
148  Using Arduino / Project Guidance / Re: Smallest arduino possible - Tilt sensor on: April 25, 2014, 09:48:07 am
For this scenario there aren't too many options, but I'm just trying to think of the most vulnerable parts. A traditional aerial could also be broken off, rendering the system useless. I've not had a play with the newer 'flat' aerials yet so that may be one avenue to explore.

Is there a reason you aren't going for a straight forward bike alarm?
149  Using Arduino / Networking, Protocols, and Devices / Re: Wifi Shield - EiFi [Urgent] on: April 25, 2014, 08:14:26 am
Typically, ΓΏ (char 255) means nothing to read.

You might want to think about how your sketch is arranged. Send command to device, declare variable, see if anything on serial (the response might not have arrived yet?), print out contents of variable regardless? Wait, and then repeat, and repeat...
150  Using Arduino / Project Guidance / Re: Smallest arduino possible - Tilt sensor on: April 25, 2014, 05:01:41 am
Assuming you want to continue down the GSM modem route, where would the aerial go? Even on modern bikes there's a lot of metal around there to block the signal.
Pages: 1 ... 8 9 [10] 11 12 ... 43