This is actually part of a five video course which I will teach you all about. Xps there’s, actually many things that XP can do. However, I’m only gon na teach you the most common uses for the XP. Here is a summary of each lesson lesson one has general information about X, B’s and covers initial setup in lesson two. I show you how to create a simple chat using 2x, B’s and 18 mode lesson. 3 gets us into API mode where we will gather digital input from a remote XP lesson: 4. We stay with using the API mode and gather analog data from a remote XP. Lastly, with less than 5, we finish with sending digital output to her room or XP. Throughout these video lessons, I will be relying heavily on the XP, quick reference guide that I created. I made this to save myself a lot of time instead of searching all over the internet for common information on X B’s. I put everything in one spot. I highly recommend you go to my blog, which the link is down below and download this print it out and have it with you throughout all the lessons. It’Ll make things a lot easier. I actually teach from this, so you don’t have to keep no. So you just have to reference this next time. You need to learn something next time. You need to remember anything about X, P’s. If you do find it to be useful and handy.
All I ask is that you donate a dollar or two on my blog to show your things. I really appreciate it now. Let’S get into XP XP is a wireless microcontroller made by digi it utilizes the ZigBee 802 14.5 protocol to communicate between two wireless radios. It consists of 20 pins and a little antenna, whether it has 11 digital io, pins and 4 analog pins in this video we’ll cover the s2 model. However, these concepts can also be applied to other xB models. The XPS 2 requires 3.3 voltage to operate. It has an indoor range of 40 meters and a line of sight range of 120 meters. It uses the 2.4 gigahertz frequency. The X B’s pen spacing it’s just a little bit too small to fit into a normal bread board. It also uses 3.3 volts because of this I recommend getting an adapter kit. These kits on this one I got from Adafruit there’s many to choose from it allows you to plug the xB straight into the board, which then allows you to plug it right into a breadboard, and because of that things become finally useful. Even more so, it allows for you to use five volts or 3.3 volts, and it has a couple LED lights to indicate the status of the XP. These little boards are very handy. Another popular kit is the XP Explorer found on Sparkfun. Another great feature about xB is that it interfaces with Arduino very easily and because of that I’m gon na be using Arduino pretty heavily with throughout these video courses.
Now let’s talk about how xv’s are networked, one XB is called the coordinator one and only wine coordinator can be in each network. If the coordinator goes down, the network goes down. The coordinator is in charge of setting up the network and it can never sleep. The next one we have our routers, we can have multiple routers in a network. They can relay signals from other routers or from an end point to a router and so forth. They can never sleep either. Lastly, we have end points. End points. Can there could be multiple end points in the network? They cannot relay signals from other end points or other routers. They are at the endpoints and they can go to sleep to save power when creating your XP project, you’re going to have to decide on what kind of device the XP is going to be. There are two modes: the XP can be in a T or API mode in eighteen mode. The communication goes through the XP in API mode. You can interact with an XP to send a commands or received a data directly from the XP itself. Now let’s start setting up the XP in each project that we’re going to do. We need to actually adjust the settings on XP itself in order to do that, we need to connect it to a computer. There are a couple ways to do. That. First is the easiest method which is getting an FTDI cable.
This is what the cable looks like it’s USB on one side and on the other side has six pins that allow you to plug straight into an XP kit. This allows you to plug straight into a computer, and it allows you to have a serial connection to your XP. Another method is to get an adapter that goes into a breadboard here’s. What it looks like you can see here: it’s an FTDI adapter. This allows you to plug it into the board itself and then plug the correct pins into the ports needed on the XP. Then you can use a USB cable to plug into this adapter and then the other side goes into the computer. This again will allow you to use the serial connection to your XP. If you don’t have any of that, and you have an Arduino, you can actually hack the Arduino to get it to work as well. If you have an Arduino with the removable chip, you can pry that out, but I recommend not doing that. Instead take the reset pin on the Arduino and pull that to ground like so when you do that on the Arduino, it actually bypasses the chip completely. So now we want to set it up on the board, so we put the XP in there and in this case, we’re going to connect the TX pin to the TX port on Arduino and the RX pin to the our export. This is the only time you’re willing to connect TX to TX and rx to rx and all other video lessons.
It’S going to be switched, TX will go to our X and our X will go to TX. Then, of course we just need some power. 5 volts goes to 5 volts on the xB, and ground goes to ground on the XP. Now, when we put this into laptop, it will become a serial device that we can communicate to it to the XP. Once you have your serial connection established it’s time to download some software, digi has created a program called X CTU, which you can download from their site. Unfortunately, it’s only available for Windows machines. At this time. It is also possible to use a terminal emulator to get into the XP using command line. This is limited and difficult to use so only be covering how to configure the xB using the X CTU software. Ok, so now that you have connected your XP up using the serial connector and you’ve downloaded a software let’s load up the software upon loading it, you should see a comport is available, and this is the the settings here. Baud rate is 9600. You can actually increase that to make the communication to the XP faster, but I wouldn’t mess with that leave it at 9600 it’s. Fine. You can click test to make sure you communicating to your XP. It actually displays the serial number so that’s good that’s. What you want let’s go over to motor mode of configuration and I’ll click read so the modem we want to be xB, which is xB that’s.
What we’re, using and ZigBee some of these other ones. Zb, is what you want. Some of the other ones are for other devices that digi makes but we’re going to be utilizing, ZB only the function set. This is where you can change between coordinator and end device and router. We covered that already between 80 and API. You also have more options as well, in which we’ll we will cover more later versions later lessons. The version here is what version of software you’re running let’s always keep the latest version of software. So, in order to do that, you to upgrade your firmware click download new versions, click web, that I’ll go out to Dizzy’s website and look for any files that you don’t already have and download them. And then you can look at the version and you’ll see there’ll. Be a new version here that you don’t that isn’t applied, so you would click that click always update, firmware and then click write, and that was that will update your XP with the latest firmware. Ok, so now I want to take you through some of the settings on the XB. First is the most important pan ID. This is the personal area network and you can set this to whatever you want, but make sure that all of the X B’s in your network have the same setting here so now scrolling down, you can see there’s the serial number of this device. This you can’t change, but it’s nice to be able to see what it is now the destination address.
If you want to send communication to just one xB, you can put its serial number in here, both the high and the low serial numbers required. However, if you put in a zero ffff like it is in here, it actually sends a broadcast to all of the devices within the network. That’S really cool. The other option is to make it all zeros, which means that you’re just going to send communication to the coordinator, ok. Lastly, I want to show you down here by the pin settings. Let’S choose one of these. You can say this is where you can indicate whether a pin should be an analog input, pin or a digital input pin or you can just set the pin to low or high. So this is. This is really cool to be able to control these settings and we’re gon na get much more into that in later videos. But I just wanted to give you a taste of what you can do. Ok, so that was a lot to cover just to get us started with the xB. And that concludes this lesson now. You know what it can do: how to connect it to a computer and how to change the settings. So we can now start building some cool projects in the next lesson.
arduino xbee Video
arduino xbee news
Posted on Wednesday September 11, 2019How to Build a Low-Frequency Theremin With the Evive DesignNewsThe project explores the evive, an all-in-one electronics prototyping device for makers and engineers, by using it to build a theremin. … Continue Reading »
Posted on Tuesday April 25, 2017Intro to the Arduino XBee Shield – News All About CircuitsThe XBee Shield provides an interface to the XBee which adds wireless communication to an Arduino project. … Continue Reading »
Posted on Wednesday November 29, 2017Zigbee-Based Wireless Arduinos, Demystified HackadayHackday regular [Akiba] is working on a series of video tutorials guiding newbies into the world of the 802.15.4 wireless protocol stack — also known as ZigBee. … Continue Reading »
arduino xbee Social