Pages: [1]   Go Down
Author Topic: Using two serials with wireless shields  (Read 491 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I know the official wireless shield (xbee) is connected to the first port of ATmega328P (PD[0..1]). This is the same port where is connected the ATmega16 for USB connection.
Obiouvsly, if we want communicate to the xbee and send data to the pc at the same time we can't.

Well, I don't know why they don't put the xbee serial on other pins  smiley
Anyway, the only way to the the things work is to hack the PCB and move a couple of traces.

My question: do you all do this hack?

My suggestion: provide a simpler way to change the "USB" serial pins on Arduino board (eg. 0-ohm resistors)
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 548
Posts: 46030
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I know the official wireless shield (xbee) is connected to the first port of ATmega328P (PD[0..1]). This is the same port where is connected the ATmega16 for USB connection.
Obiouvsly, if we want communicate to the xbee and send data to the pc at the same time we can't.
Not using that shield, with no other hardware, you can't.

Sparkfun sells a much better shield that allows you to switch which pins the XBee is connected to - 0 and 1 in one position, 2 and 3 in the other position.

You could use an FTDI cable to connect to two pins, like 2 and 3, and use SoftwareSerial to talk to the PC via those pins and the FTDI cable.

Quote
eg. 0-ohm resistors
They sell them by the spool at Radio Shack. They are called wires.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately, I've already bought some official wireless shields. So I hacked the PCB and put the xbee serial on pin 3 and 4.
I don't understand your second answer. I'm talking about solder jumpers (or similar) to get Arduino board more flexibile. At least with official shields.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 548
Posts: 46030
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I don't understand your second answer. I'm talking about solder jumpers (or similar) to get Arduino board more flexibile. At least with official shields.
You suggested a 0 Ohm resistor. What is that if it isn't just a wire?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wires connect two fixed points and it's hard to change them on a PCB.
Using 0 ohm resistors you can easily change the route of your signals. It's a cheaper (and smaller) alternative to jumpers.
Logged

Pages: [1]   Go Up
Jump to: