![]() On your XBee shield you have a switch where you can choose between DLINE and UART. Place one of the XBee’s on the shield and place the shield on the Arduino.In this tutorial we will make this light up when the Arduino receives a wirelessly signal. This pin is placed different on the UNO and Leonardo, see picture above. On the Arduino there is a built-in LED (digital pin 13). Close CoolTerm and remove the XBee Explorer from the USB port.Repeat the steps 5 to 10 for the second XBee (the only difference on the second XBee is: write ATMY5678 and ATDL1234 (In other words, the opposite of XBee 1)).If you don’t type in a command within 10 seconds, the state will change and you have to write +++ again.) (The ‘OK’ means that the XBee is ready to receive commands. Don’t press enter, just wait a second and you will see ‘OK’. Hit the “Connect”-button and write +++.We are going to setup the XBee’s like this:.This needs to be the same on both XBee’s. ATID: The PAN ID – this is the network the XBee’s will communicate in.ATDL: The destination address (the other XBee’s ATMY address).This needs to be different on the two XBee’s. There are the four commands you need, to setup the XBee’s:.Hit the (3) “Ok”-button and get ready for some quality time with the XBee.(Still can’t see it?: Are you sure you have installed the FTDI drivers?) If you can’t see it there, press the “Re-Scan Serial Ports”-button. The name is something like usbserial-AD025ES5. Under “Serial Port Option” (2) press the “Port”-dropdown menu and choose your Explorer. Open CoolTerm and (1) press the “Option” button.Place one of your XBee’s in the Explorer board, and connect it to your computer with a USB cable.There are different ways to do this, but I found the easiest way is to use CoolTerm. The first thing we need to do is to setup the XBee’s so they talk to each other. On the other hand, Sparkfun is a great place for beginners and prototypers (as myself).) Step 1: Program the XBee’s The downside is that they are more expensive than for example Digi-Key. (Yes, I am a Sparkfun whore, but hey – they have a good community, good customer service and short delivery time. ![]() (1x 9V to Barrel Jack Adapter ) optional.1x Arduino Leonardo or UNO (I’ll provide code for both).FTDI Drivers (used to communicate with the XBee Explorer).What you will use the wireless link to make is up to you – be freakin’ creative! Pre requirements Software: We will make a very simple program, because this tutorial will focus on setting up the communication. I will use OSX 10.8, but you could easily adopt this method to Windows or Linux. Wireless communication is still one of the coolest things I know of, and it opens up for so many possibilities! I will therefore, in this tutorial, show you how to setup and communicate wirelessly between two XBee’s Series 1. There may be some tutorial out there now, but with this I want to give back to the internet what it has given me almost every time I can’t figure something out a tutorial. I used a lot of time searching the web for a good tutorial, just to find out there wasn’t any. I remember when I first was trying to setup wireless connection between two Arduino’s back in 2010.
0 Comments
Leave a Reply. |