View previous topic :: View next topic |
Author |
Message |
evaradharaj
Joined: 15 Jan 2009 Posts: 60
|
Xbee communication between two PIC Microcontrollers |
Posted: Thu Mar 04, 2010 12:46 am |
|
|
Hi,
I am using PIC16f877a microcontroller. I need to transmit the temperature from one PIC to another PIC by Xbee. I tried with PIC to PIC wired communication. If common ground is there, its working. If there is separate supplies, its not working. I don't know the reason. I want to connect the Xbee also to the both PIC microcontrollers.
Can you suggest me any idea? _________________ embedding innovation in engineers
Last edited by evaradharaj on Fri Mar 05, 2010 12:23 am; edited 1 time in total |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Thu Mar 04, 2010 9:28 am |
|
|
A common ground is required when using separate power supplies. If you don't have a common ground then there will not be a return path for the signal being sent. I have done projects, in the past(one just this week), where I was trying to use the RS232 adapter circuitry from another project and forgot to attach a ground wire between the two circuits (both powered by separate supplies). I would get part of the data and a bunch of garbage. When I realized I had forgotten the ground, and then attached it, communications worked.
Now, If you are going to be going wireless then you don't need any common grounding for it to work. XBEE's work quite well. Out of the box they work just like a wire that is attached between the two serial ports.
Remember to play, experiment, try new things, blow stuff up, fry components.... This is what makes it FUN.
Ronald |
|
|
evaradharaj
Joined: 15 Jan 2009 Posts: 60
|
xbee communication |
Posted: Thu Mar 04, 2010 8:37 pm |
|
|
Thanks for your reply.
So there is no need to connect the common ground when it goes to wireless. Is it correct ?
Can anyone give schematic to connect the xbee with pic microcontroller ?
The datasheet is given below,
http://nskelectronics.in/xbee_transreciver.html
Please see the link and give the suggestions for connecting the pic with Xbee. _________________ embedding innovation in engineers |
|
|
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
Re: xbee communication |
Posted: Fri Mar 05, 2010 11:15 am |
|
|
evaradharaj wrote: | So there is no need to connect the common ground when it goes to wireless. Is it correct ? |
Then it wouldn't be wireless.... no?
evaradharaj wrote: |
Can anyone give schematic to connect the xbee with pic microcontroller ?
|
Simple, if you're using the XBee module on your board. Four pins minimum, PWR, GND, TX and RX.
Or, are you trying to connect the board shown in your link to a PIC? (through a DB9/RS232 connector?) |
|
|
hayee
Joined: 05 Sep 2007 Posts: 252
|
|
|
|