1
\$\begingroup\$

I have an application that sends data from 1 XBee connected to a computer to another Xbee connected to a microprocessor(ATMEGA328P-PU). I programmed the program into the microprocessor using a arduino board and everything work as programmed on the board itself. However, when brought over to connect everything on the breadboard, it is not working as programmed. I tried loading the microprocessor with a simple blink led program and it works on the breadboard. What is wrong?

What I've connected to the microprocessor on the breadboard: pull up resistor between pin 1 and vcc DataOut and DataIn to rx and tx of microprocessor VCC to pin 7,20 and 21. Gnd to 8 and 22 20Mhz crystal with 2 22pF capacitors to pin 9 and 10.

Thanks in advance for your help!

asked Dec 20, 2012 at 4:29
\$\endgroup\$
2
  • \$\begingroup\$ What is your energy supply on the breadboard? Schematics of the breadboard ATMEGA/ XBee combination would help. \$\endgroup\$ Commented Dec 20, 2012 at 6:34
  • \$\begingroup\$ Thanks for your help! The problem lies with the frequency of the crystal. Arduino board uses 16 Mhz I'm using 20Mhz and thus the data rate between the two device is incorrect. \$\endgroup\$ Commented Dec 20, 2012 at 7:02

1 Answer 1

1
\$\begingroup\$

I've never used Xbee modules in particular but with RF modules in general make sure you have some decoupling caps near the power supply for the module, maybe try a 10uF and 0.1uF in parallel. I also found the following list of common XBee mistakes that may be useful:

http://www.faludi.com/projects/common-xbee-mistakes/

answered Dec 20, 2012 at 4:45
\$\endgroup\$
2
  • \$\begingroup\$ Thanks for your help! The problem lies with the frequency of the crystal. Arduino board uses 16 Mhz I'm using 20Mhz and thus the data rate between the two device is incorrect. \$\endgroup\$ Commented Dec 20, 2012 at 7:02
  • \$\begingroup\$ @cwh Why not write an answer explaining how you fixed it? \$\endgroup\$ Commented Dec 23, 2012 at 17:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.