CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Xbee communication between two PIC Microcontrollers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
evaradharaj



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

Xbee communication between two PIC Microcontrollers
PostPosted: Thu Mar 04, 2010 12:46 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 04, 2010 9:28 am     Reply with quote

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. Twisted Evil

Ronald
evaradharaj



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

xbee communication
PostPosted: Thu Mar 04, 2010 8:37 pm     Reply with quote

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

View user's profile Send private message

Re: xbee communication
PostPosted: Fri Mar 05, 2010 11:15 am     Reply with quote

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.



evaradharaj wrote:

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.



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

View user's profile Send private message

PostPosted: Sat Mar 06, 2010 12:16 am     Reply with quote

http://hades.mech.northwestern.edu/index.php/XBee_radio_communication_between_PICs

here you find how to connect Xbee with microcontroller and with PC.

goto google and type
Quote:
Xbee communication with pic controller
here you find lot of links.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group