XBee and the UART

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've been known to get things like this backwards, so let's see if I got it right this time

XBee Module              UART
DOUT (pin 2) ----------> RXD
DIN  (pin 3) <---------  TXD

Right?

It doesn't work to whisper secrets into its nose.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, depending on the actual pin configuration, it looks OK. (I did see a part once where the RX was an output and the TX was an input. FAE told us it was to eliminate confusion! We eliminated them as a vendor we used. AFTER we laid out the board incorrectly. Sigh.)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SPI eliminates that confusion by labeling pins MISO (Master In Slave Out) and MOSI (Master Out, Slave in). You connect all the MISO pins together and all the MOSI pins together.

But, that is contrary to what you do with a UART.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Usually I use SPI to talk to NRFs, but my rather unscientific test for this application found the NRFs didn't quite go far enough. I had a couple XBee Pro modules laying around, so I thought I'd try them.

You may recall, however, that I once has SI and SO backwards on SPI

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you TRY it?

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Not yet. Waiting for money to order the boards. Was SUPPOSED to come this week. Of course, if I have it wrong.... (I just rechecked all the layouts.) I might not do elecfreaks as I don't really need 10 copies of each of these 3 boards. But then, their price on 10 copies seems be beat most outfit's price on 3.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sparkfun said they have an excess inventory of xbee pro modules and are having a sale on them.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Alas. Have to wait till at least next week. Thanks.

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Torby wrote:
I've been known to get things like this backwards, so let's see if I got it right this time

XBee Module              UART
DOUT (pin 2) ----------> RXD
DIN  (pin 3) <---------  TXD

Right?

It doesn't work to whisper secrets into its nose.

Ground is missing.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes.

You have it correct.

Micro's USART TxData goes to the XBee's Din, (Pin3).

Micro's USART RxData goes to the XBee's Dout, (Pin2).

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cool. That's what I thought, but I thought I'd check before I got one etched in copper ;)

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut.