Atmega162 interfacing with Xbee which sometimes transmits some time dont.

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

Hi,
I am using ATmega162 with Xbee Series2.

 

But I have got an issue to discuss

I setup my xbee project on breadboard, It was all working perfect,
But since I made it on PCB, Xbee is behaving strange and on PCB neither its receiving nor its transmitting data.

However when I extend Din,Dout of xbee with wires and place my xbee on breadboard it starts working perfect.
I dont know Why its happening.

Could you please tell me the issue.

My PCB is all fine I have checked it many times.

I have checked:
->With multiple Xbees , they all are behaving same.
->PCB its all Fine.
->My AVR is also working fine with other circuits.
 

Awaiting your replay.

Regards,

Last Edited: Fri. Oct 16, 2015 - 12:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

this is your own PCB design?

what does your power supply look like?

An Xbee pro will draw 250miliamps during transmit.

 

Do you have a scope to look at your signal levels?

 

Ground loops?

Keith Vasilakes

Firmware engineer

Minnesota

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

keith v wrote:
what does your power supply look like?

An Xbee pro will draw 250miliamps during transmit.

Yes, that would be the first thing to look at!

 

Note that this is common to any form of radio transmitter - not unique to Xbee - they all tend to take large current peaks/surges when they transmit...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using 12v 1A DC adapter.
12V-> connected to 7805 for 5v supply to AVR,
and 12V is also connected to LF33CV  to supple 3.3V to Xbee series 2

I am not using any capacitor or resistor.

 

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

naqirizvi wrote:
I am not using any capacitor

Quite possibly why it "sometimes" doesn't work, then!

 

You really need to look at the voltage with a scope to see what's going on...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Xbee is transmiting but not receiving

In the case above.
Xbee is transmitting data but not receiving.

In case below
Neither Xbee is transmitting, nor Receiving.

But when I put 1uf capacitor in between GND and 3.3V, Transmission Works but receiving still is a problem,
do tell if this capacitor connection is right? and Also tell how Could I make receiving to Work ??

Neither Xbee is transmitting, nor Receiving.
Regards,

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

Is there any one who could answer me?

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

Nobody else has your hardware; Nobody else has your code - so it's up to you to give us something to go on!

 

Have you looked at your supply using an oscilloscope yet?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...