system
April 7, 2012, 1:06pm
21
using just this, i was able to make an LED blink connected to pin 7.
analogWrite(ledPin, 255);
delay(2000);
analogWrite(ledPin, 0);
delay(2000);
I shouldn't use the flush() ?
To send over serial, is it just using the "print" command or the "write" command?
system
April 7, 2012, 1:16pm
22
on the TX side: the TX led on the arduino board is blinking.
on the RX side: the TX led on the arduino board is blinking?
system
April 7, 2012, 1:34pm
23
This is the setup.
the Arduino to the Xbee shield connection is made like this:
Arduino TX(1) --> XbeeSheild RX
Arduino RX(0) --> XbeeSheild TX
correct?
this is for both the receiving pair and sending pair, is this correct?
system
April 8, 2012, 1:34am
24
I shouldn't use the flush() ?
In general, no. If you know what is does, when, and you really have a good reason to use, you can. 99.9% of the code posted on the forum that contains Serial.flush() should not be calling it.
To send over serial, is it just using the "print" command or the "write" command?
Use print() to send ASCII data. Use write() to send binary data.
system
April 9, 2012, 12:56am
25
Does the serial monitor print anything that is being transmitted?
if I use Serial.println(num);
will it transmit (via TX 1) as will as print on serial monitor or just serial monitor?
system
April 9, 2012, 9:33am
26
Does the serial monitor print anything that is being transmitted?
if I use Serial.println(num);
will it transmit (via TX 1) as will as print on serial monitor or just serial monitor?
The XBee will transmit the data and the serial monitor will print it.
system
April 10, 2012, 6:12am
27
still nothing.
I've tried a simple transmit:
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.print('H');
delay(100);
Serial.print('L');
delay(100);
}
but not receiving anything.
Maybe I configured the radios wrong?
this is the transmitter radio
system
April 10, 2012, 6:58am
28
The setup is correct?
Arduino TX(1) --> XbeeSheild RX
Arduino RX(0) --> XbeeSheild TX
?
system
April 10, 2012, 7:28am
29
Is it weird that only the TX led on both arduino's are only blinking? not the RX
system
April 10, 2012, 10:34am
30
The setup is correct?
No. You bought shields. Now buy, and install, the header pins and USE THEM AS SHIELDS!
system
April 10, 2012, 11:48am
31
That shield has a 3.3V regulator on it. Maybe try hooking the shield up to 5V instead of 3.3V? Probably reaching here, but since you're manually connecting it to the arduino instead of using headers it could be a factor.
system
April 11, 2012, 11:01am
33
can I use this?
Sure.
You can use the shields you had, if you simply connected them correctly.
system
April 12, 2012, 4:09am
34
how do i connect these shield properly?
I ordered the headers from sparkfun, but they could take weeks.
is there wiring schematic for the shield to connect to the uno?
system
April 12, 2012, 12:52pm
35
should the baudrate be 9600 or 57600 ?
system
April 12, 2012, 1:26pm
36
how do i connect these shield properly?
With the XBee side of the shield up, there is only one way the shield will for on the Arduino. The holes where the pins will go need to be connected to the pin locations on the Arduino IN THE SAME ORDER.
system
April 12, 2012, 1:26pm
37
should the baudrate be 9600 or 57600 ?
Or 19200, or 38400, or whatever your application needs.
system
April 13, 2012, 1:08am
38
First of all thanks for putting up with all my newbie questions. I definitely appreciate it! THANK YOU ALL, mainly Paul!
secondly the headers came early! Just soldered it to the shield.
system
April 13, 2012, 1:41am
39
the coordinator xbee when connected to x-ctu, I press "+++" but no response. I tried with the router/end device xbee and it gives the "OK"
?
system
April 13, 2012, 1:30pm
40
The CH "Operating Channel" on one is 0 (end device) the second one is 13.
does this matter?