arduino xbee shield


Now there’s, not a whole lot of tutorials out there for this. So that is why I’m being the better human here and trying to put out some kind of knowledge for those people that are just getting into the field? I’M, new at electronics, myself, I’m, a senior citizen at C so I’m, going to be using my common language to let you understand how things work in very layman terms. Basically, these two things are hex beads. They send RF signals back and forth to each other at a great distance. Those are 900 megahertz R max piece. They can be found at Sparkfun calm and I will be putting the part list in the actual show notes. This is an adrenal. If I was a kid okay, I would be wanting that for Christmas and, if you’re a parent, you should buy one of your kids one of these for Christmas Christmas. Now this little guy, he is basically a seat for this dxb sits on top of it and it plugs into your USB Drive that way. You can program these two chatter back and forth next xB shield. This sits on top of the Arduino and I’ll semble. All this here in a second and allows the XP to seat itself on top of the Arduino. The one thing they you should know about. This is the fact that these little XPS have very small pins. Okay and the small pins, usually they’re standard. They come standard to breadboard size, but these do not.

They do not fit in bread boards at all. So that is why you have to buy a tenner or o XB explorer, because you can mount pins at the bottom by soldering them. These are pins header pins. So a little soldering is required and what happens is these now can sit on top of a breadboard? Do you need it mounted breadboard? No, in fact you do not, but if you want to further your science, you will need it on a breadboard. Now this little XP sits on top just like that, alright, so that that one basically goes on the computer, and I can use my computer to send a code to this hot mess. Well, let’s assemble this. I could take this now a side note. This shield did not come with these headers at Sparkfun comm. You also have to get the headers and you also have to solder them in again, very rudimentary soldering. Anybody can do it. Okay, we’re going to put these two together just like that, and then the XP sits on top just like that in this practical application, we’re going to be lighting, this LED at a great distance, and that sounds like a very small task, but in all practical application. What happens is you’re initializing? This LED delight from a great distance. That means this LED can be replaced with anything a relay a motor anything. So when you’re looking at electronics at a very elementary state, you got to understand it all comes down to.

Can you make this LED light or not like okay, now, I’m going to be seeing a couple things in the video, so I want to explain them now before we hop into the video the other video, this Explorer I’m going to have to program both these X B’S, so in the video you’re not going to be seeing these I’m just going to be saying, you need to mount the xB on top of the Explorer, so that means you’ll have to take this xB and put it on the floor. Pretty simple right: okay, we’re going to have to program both of these to talk and then we’re going to look at the code, two right on top of the Arduino, so that the computer can understand the code in the light the LED also when you’re programming, the Arduino you can’t have the X beat in its little seat. It will not work so a lot of times you’re going to have to take the xB off program it and then put it back on. Will this were down the pins? I haven’t experienced that yet and trust me when I was looking into this and learning it for the very first time I must’ve took this thing off about a thousand times it felt like so all right. This is the equipment. You’Ll need pay, no attention to these chips or the regulator. You do not need those and we will jump into now. The software application alright, because I don’t believe in show notes I’m going to be using a shopping, cart to kind of show you what products you’re going to be needing I’m going to be using Sparkfun comm.

But certainly you can use any site for these parts, which is the fact that it’s all located at sparkfun and their website is super easy to navigate. So you add me at that: there’s also Adafruit, which is a good place. Also they don’t carry the 900 megahertz. So that’s kind of why they were my second choice. Now let’s start out with this: the Arduino itself. So if you’re new at Arduino and you’re looking for an Arduino, you need the Arduino Uno if you’re really new, because it really is a nice package so located here, the Arduino Uno, 29.95. Okay, I’ll, add that to cart! Incidentally, we’re going to be looking at something on here. As far as the picture is concerned, I want to show you what pins it we’re going to be using for the LED. So if you look here, we have 13 and ground, so the short lead of the LED fits into ground and the long leads fits into 13 I’ll close that out. Okay. So I got that in my cart next xB now, if you’re new and broke to electronics, you can get the XP wire antenna series, 120, 295 and we’ll. Do the exact same thing, the difference between the 900 megahertz and this one is the range I really wanted. Something to go a long long way because you know being a dude and also the fact that you know what the biggest baddest thing on the planet and I found the 900 mega it’s pretty easy to set up so that’s the alternative.

This is the one I bought xB Pro 9 under wire antenna you’ll need two of these 40 to 95, each back out next XV Explorer, you must be. This is the little seat at which the XP can be programmed notice. It does not have the headers at the bottom, so we’re going to have to shop for those two, but I will need one of these in the future. You should buy another one just say: ok, now, we’ll need the arduino shield XP shield, and is that again no headers at the bottom, but here’s the shield itself. I need one of those alright headers, oh that’s, the right angle, one sorry! This is a set arduino. Stackable header kit we’ll need one of those. This fits on the shield, okay, next breakaway headers, long these fit on the bottom of the Arduino it’s or the xbx for those need to be soldered in these are valuable by the way, so just saying that you might get a couple of these alright um, if You don’t have a breadboard; they have bud boards here, I’ll throw one of those on just for entertainment. Again I just like that because it actually makes it so. You don’t the XP explorer doesn’t slip off the table every two seconds. I like this clear one myself. I have one of these and, if you’re totally new to this knot, I guess I can show you an LED all right price. It.

A shopping, cart so far to get started with RF communication it’s going to cost you 100 70 seven dollars. But these essentially are the parts that you’re going to be needing for the project. Alright, now that we have our shopping cart done and over with and our parts list built, let’s go on with the video programming, the XPS okay, so let’s get started with this. If you type in X, CTU in Google that’s, of course, let me put that a little bit bigger, so you don’t go blind X C. You and Google you’ll come across the very first website, which is diticom. Ok from here. If you go to the bottom, you’ll go click here to go to the download page there. We are the download page and I can then download through the Installer, save it to my hard drive now I’m, not going to walk you through installing the software that’s. Pretty easy once you install it, you have this X CTU all right now to do this first off you’ll need one of those USB 2.0 wires that come with many of different things on your computer in order to plug in the XP. If you want that on your shopping list, you should put that on your shopping list. If you don’t have one, I have quite a few of those laying around so I didn’t add it to my shopping list. You’Re going to take and you’re going to put the XP on its seat.

Let me explore and then you’re going to hit test query! Ok, it’s, going to give you a quite a bit of hassle at first. So what we’re going to do is close out of the program and open them back up because they just stuck it on there, and this should show up whatever comport you’re using I’ll test query and there we go alright. Now that we have a good test, we’re going to go over to modem configuration and we’re going to do and always update firmware and a read now by nature, this XP comes as the XP, ah it’s, a mesh network. We don’t want that. We want the XP Pro so a lot of times. You’Ll see this happen, did you mesh? So the did you match. We do not want. We want the XP Pro. So what you could do here is drop this down to xB p08 DP we’s, update, firmware and download newest version on the web jump again, of course, so I’ll hit read, download or put this at XP Pro 900. We don’t want to 232 adapter and I want the latest variation, which is 1061. Also, this modem VI D is how the to communicate. So, for instance, mine, is going to be 1001. Of course, if I had another variation out there, they’d have to have two pairs of 1002 s, so 2x B’s having the same V ID number, can communicate without that V. Id number matching you’ll be dazed wondering why they don’t communicate all right now.

With that checked I’m just going to hit right all right, there’s one XP down one to go so I’m unplugging the USB right now, unseating the unit seating, the new xB into place and then plugging in the USB cord. Okay, again I’ll go over to PC settings. It tests query see that it does in fact grab on to it and do the very same process so in this case I’m going to download new versions – and I think I already did this. In fact, you know I don’t think I want to do this with the other XP, but just in case I do it anyway. I guess he update a lot so hey whatever it works. Okay, little read again, I want the XP p. O9 DP, I want X, be pro 900 and I want the latest variation and again I want to change this. The ID to match the other one I’ll hit right all right now that we’re done with that we’re going to move on to the next stage, which is mounting one of them on the the Arduino and the other one on the breadboard. Slash explore alright. Now that we have the two XP hooked up, it looks like this, so how do we know that they are communicating with each other? Well, if you look right here, I have a few lights. Okay, when I’m over here in terminal on X, CT, you basically what’s happening, is it’s going to be using this and sending a signal over to that.

Okay, so xp1 sends it to XP you’ll notice. That in here I have us serial port five, which is the small XP now hooked up to the Arduino. When I go to terminal, I can go in here and type anything I want, and you can see on the right hand, side all red light is now blinking, as I type located here. Okay, that is telling me that the communication tunnel between the two is correct. All right, well that’s, one thing to kind of show: the combination of the two and how they communicate, but now we’re going to be looking at how we can send code from here to light this LED okay, software you’re, going to be needing one program that you’re Going to be required to have no matter what, when dealing with our drain, oh is the Arduino program itself. So our dream – oh let’s, go to here: Google, okay and then we’re going to go over to our dream. No CC go to the download section and then we’re going to download it for Mac or Windows. I would highly suggest Windows right now because again the other program xct, you only runs in Windows, but once we get everything programmed it doesn’t really matter. If you’re running Mac or Windows it’s all the it’s all the same, because you got the code on the actual thing itself, then you can use like a terminal program if you really wanted to we’ll get into that later.

But for right now, just just know that to set these up, you should probably have a Windows machine, okay! Well, when you download that you can put anywhere on your hard drive that you want, I put mine in program 86, Adreno card Reno and I’m, just going something all right. So this is how it works. Let’S make a new one and first off we have to write some code. We have to write this code. Okay, it’s, not that much. So what I’m going to do is copy and paste it over and talk you through it as I do it. So the first section of code is this: we have to disc Lear some things. We have to declare that my data and we have to declare an LED pin again. The LED pin is 13 so that’s, where we’re going to get started. Okay, after we declare those, we have a setup to do. Setup looks like this B 600 now later on. You will probably want a bigger baud rate, but for right now, beginning out 9600 it’s really good, because you can least see the code fly and understand. What’S going on so 9600 is good, and here I also have to declare my LED pin 13 to be an output okay. Next, the loops now loops is one of those things that you really should practice at there’s. No doubt about it. If you can write a good loop, so I had to handwrite this loop in here.

Okay, now let me talk you through this, so void loop. What I’m doing here is looking at the serial code and if any time the serial code is greater than nothing it’s going to go into its thing. In other words, if I go typing and then hit enter in the terminal, it’s going to see that code immediately click on and go into action, then it’s going to read my data that’s, a serial, read and it’ll. Take my data and look for a1 I’m going to send it a 1 and any time I send a 1 and it has to be an Apps two, absolute one, it’s going to fire the LED, pin, hi and it’s also going to type out my code. Okay, now, if that doesn’t work or if it sees another number like two so now, I have another one. If data is the absolute of two did you write led pin low, so this will turn the pin to a negative and turn the light off again. It will write that bit of code and if anything else happens to parse through, like let’s, say I type in ham, cheese sandwich and then hit enter it’s just going to print ham, cheese sandwich now, of course, with any good loop comes brackets. So if you look at here bracket to the words at so make sure you have an even amount of bracket to make sure all your brackets are in line, so I have an opening and then I have an equal closing.

Then I have an opening closing opening. Closing opening closing – and this last one closes from here to here over there – okay, now I’ll try to put this somewhere in the show notes. Of course, I don’t believe in show notes, but after you get that all done, what you’re going to do is take the XB off of your Arduino and then you’re going to write the code to it. So we’ll do that right now, we’re going to go sketch, verify on the pile and then after which we’re going to be doing an upload to io board. Now we can set the xB back onto its seat all right. So how do we know it works? Well, this is how it works. If I open the serial monitor up and then I also get XT you open now, I think I have it open twice, so you can’t have that you only have it open once now, i’ll plug in back my XP explorer into the USB. I might have to close this program out to see it perfect. So basically, what happens is here is I have my X px4 on kompot and I have my Arduino on comm 3 here’s comm, three open here’s, comm 5, open. Ok, that means in terminal. I should be able to type in something like hello and instantly it pops over to comm 3. Now, how is that traveling wirelessly, of course, so that means, if I send it a 1 or a 2, it turns on and off the XP.

Ok, so I’m, just going to kind of record that with my other camera here, ok, so here we are and I’m just going to hit 1 2. 1. 2. 1. 2. So that’s Wireless! Now, even though there is wires attached to the XP module in the Arduino, there will always have to be a wire attached to this one, because the computer is actually sending the code. This one we’re going to unhook here in a little bit and set it into a very far spot in the universe, and then I will type in 1 here and it will fire that just to prove that it works on a greater scale. But for right now we have successfully made the LED go on via a wireless signal. Alright, so let’s go on the rest of the video all right now for the test. So what we’re going to be doing is looking at changing out. First, the LED that’s. What you’re seeing me do here again we’re putting the long part of the LAV into 13 and the short into the ground, and next to it, you can see the Arduino at this point is not connected to be any wires, except for the battery pack. We’Ll, give it a little test, one two one, two one, two just to make sure it’s working, my laptop, then we’re, going to take it off to the backyard of course carrying a camera and the small little device is not working.

So if yep there we go it’s like RadioShack, nerd style, FPS, shooter, alright we’re going to just put it up on here on the top of this shed and then walk back to the house, all right so it’s dark outside. But I have to turn out the lights on the inside of the home. Just so you can see the actual light, so let’s do that. You look underneath the birdbath or bird house just get a little white light. Turning on and off I’ll circle it for you right there, so that is wireless communication over the span of probably good 30 yards, okay in a good go higher higher than attic. The specs on this thing said a mile so with a good gain antenna. But right now I just have the wired antenna. So that concludes my little mission of showing you the Arduino with XP. I hope you enjoyed the little series, the 20 minutes of it um, hopefully just skim through the parts that you actually needed, but other than that.


arduino xbee shield Video







arduino xbee shield news








arduino xbee shield Social






👋 Want to bring Tony Stark-like gesture control to your projects? Learn how with the BLE-enabled MKR WiFi 1010 and Nano 33 BLE Sense boards using the ArduinoBLE library.
safe image.php?d=AQDyi1ELcW4VGzhx&w=720&h=720& dChOhNMmeF - arduino xbee shield

Arduin-yo ho ho! A fairground favorite, the pirate ship is a fun way to explore the oscillation of a pendulum. How much fun, you ask? Access our Science Kit Physics Lab preview and see for yourself:

🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today:

70537898 550174072395145 8798850142103928832 n.jpg? nc cat=102& nc oc=AQmCfMPwMf1oPpYqFhzbxfnGdbrmsjZXrEEBy1ox5Z8EJtiYMADoFNZ5mnSNRgCCY74& nc ht=scontent - arduino xbee shield

#1: Gravity IO Expansion Shield for Arduino V7.1 Supports Arduino XBee Plug-in Sensor Module. 14 Digital Ports (6 PWM Ports), 6 Analog Ports WIFI, Bluetooth Module, APC and SD Card Expansion Interface

xbee arduino shields



(Visited 36 times, 1 visits today)

About The Author

You might be interested in

Comment (25)

  1. hi,
    thanks for the video it was very helpful, I am working on a project that use the Arduino and the xbee , the goal is for the xbee which is connected to an Arduino nano to read the date from the sensor and then send it to the xbee conected to Arduino yun. I am a bit confused about the code as I don’t want the resiver side do anything except reading the data. can u help me please?

  2. Serial.print(myData,BYTE);
    BYTE is no longer supported. What would you place for this line instead?

    1. +Sid Patel All I did in my comment was to give an updated version of this youtube video program Without the error. tell me how can I Help you.

    2. here is my code
      int myData = 0;
      byte ledPin = 13;

      void setup() {
      // put your setup code here, to run once:
      pinMode(ledPin, OUTPUT);

      void loop() {

      myData =;

      if(myData == ‘1’){
      digitalWrite(ledPin, HIGH);
      if(myData == ‘0’){
      digitalWrite(ledPin, LOW);
      else {

  3. I’m looking for help with integrating my old alarm system to my smartthings hub…… I bought the Arduino board and the smartthing shield but it’s to complex for me. would love help if and one has the time. Thanks,

  4. Hey,

    My scenario:
    1. COM5 setup on X-TCU (COM5 is xbee with explorer).
    2. Both xbee modules are setup with ID B135 and have the correct DH, DL, and MY values.
    3. COM3 setup on IDE (COM3 is xbee with arduino shield and arduino UNO)
    4. Upon plugin of both COM5 and COM3, PWR LEDs are solid.
    5. On COM3 setup, DIO5 LED is flashing constantly (indicating connection)
    6. Code uploaded to Arduino UNO successfully (xbee was removed during)
    *Note that I used updated code of Serial.write(mydata)
    7. Entering “1” in IDE serial terminal yields pin 13 LED on (vice versa for “2”)
    8. Entering “1” in X-TCU terminal yields… COM5 RX LED on and COM3 DOUT LED on. However, the IDE terminal does not print any values and the pin 13 LED does not come on. Everything else in the video seemed to work correctly.

    Please help!


Your email address will not be published. Required fields are marked *