Archive

Posts Tagged ‘xbee’

Serial Interface Between PIC and PC – PR4

October 4th, 2011 2 comments

This one is really useful.

Most of the times you are developing a project, you will need some sort of monitoring or visual output to understand the status of your program. Sure some LEDs blinking are great but some times you need more. This is where the good old serial communication comes in. Through this communication you will be able to send information in the form of data or text, to and from your computer. You can use it as a debugging tool to monitor what is going on in your microcontroller during execution time. Or you can use this communication to send data to the PIC for processing and then receive the result back. I am sure you will appreciate the usefulness of this as soon as you implement it.

And all this happens by sending a sequence of zeros and ones… Read more…

Incoming search terms:

  • cp2102 (76)
  • cp2102 pic (24)
Categories: electronics, projects Tags: , ,

XBee Dropping Bytes – My Solution

April 29th, 2011 1 comment

Hey guys a quick post here.

Since the first time I used XBees (2 years back?) I noticed that they were dropping bytes. This is quite annoying as it disturbs the normal flow of your device. What I did fixed it for good and I never had a single bit dropped from XBees ever again, and let me tell you I sent many thousands bytes so far 🙂

Anyway, what you need to do is really simple. You need to assign a destination to your transmission. You do that by first  entering the command mode (when using the AT firmware). To do that you need to enter the “command sequence character” three times in a row i.e. for the default settings enter “+++” (without the quotes) to the terminal. The XBee should reply with “OK” and you have a short period of time to enter an AT command. Next you need to send the destination XBee by entering “ATDN<DESTINATION ADDRESS HERE>”. And that’s it 🙂

Let’s do an example. You have two XBees, one is called BASE and the other one is called HELI. Oh make sure you name your XBees by changing the Node Identifier in the settings. If HELI wants to talk to BASE it will

  1. Enter “+++”
  2. Wait for “OK”
  3. Enter ATDNBASE

Now you can send as much data as you want and you wont loose a byte. This is so simple. Do the opposite i.e. BASE->HELI and you will have a pretty good two way communication.

Let me know if you need any help

Categories: electronics Tags:

Zigbee Networks – PIC Xbee project

April 1st, 2009 13 comments

Hello again,
Long time no see huh! Well I was pretty busy with many many things. I hope I can find more time to write more posts here. Today we are going to talk about PIC Zigbee projects.

Last year I was working on a PIC project that needed wireless communication and I made a little research on the internet where I came across ZigBee networks. Zigbee specification is ideal for low power applications. It is actually an offspring of the IEEE 802.15.4-2003 standard which is aiming low power wireless communications. Read more…

Incoming search terms:

  • pic zigbee project (14)
  • zigbee interfacing with pic16f877a (14)
  • pic zigbee (12)
  • pic16f877a interface with zigbee (10)
Categories: electronics Tags: ,