Program xbee explorer




















For example, if you want to measure climate data in a harsh enviroment. This would require you to seal your device, and make it combursome to program.

However, with this rig not only can you still program the Arduino inside from over 90m away, but also recieve data from your sensor wirelessly too. Its my first Instructable so any feedback would be much appreciated!

In order for you to accomplish this you will need to: 1 Have two XBees. They can be any series I believe, but they have to be a pair of the same series 2 Have an appropriate method of connecting one XBee to your computer, and another to a circuit. Can be a standard board such as the UNO or solely the microcontroller with accompanying crystal and capacitors.

This will be the Arduino that is programmed wirelessly. For example, I used: 1 Two series 2 modules. Here we are going to program our XBees to the right communication settings for the project. I was using series 2 modules so as far as I know these steps work for series 2, but should be able to be adapted for any module. The end goal here is to setup a wirless transparent serial link operating at 57, buad. Just load the file and click write.

If you cannot access the file, then just program it as a Router in AT mode, and change the serial interface baud rate to 57, Remember to change your destination address accordingly.

You want your detination address to be all zeros, indicating that you are transmitting to the cordinator. This program can be found on the sparkfun link to the XBees I attached on the previous step. If you cannot access the file, then just program it as a Coordinator in AT mode, and change the serial interface baud rate to 57, You want your destination adddress to be the address of your reciever.

Now pop back your "reciever" XBee into your explorer regulated and wait for the next step to plug it into the circuit.

This is the circuit that will handel the programming of the Arduino Duemilanove. Funny enough, its based on an Arduino microcontroller itself. I attached a picture of the schematic in case you cannot open the eagle file. A background on the circuit: The most unique thing about this circuit is probably the fact that it uses an interrupt on digital pin 2 that is connected to the RX pin of the destination Arduino the Arduino that is destined to be programmed.

This is to detect the first low bit of serial data, which will be the IDE trying to reset the arduino for a sketch upload. However, the IDE cannot reset the destination Arduino directly, but that is why I included the intermediary Arduino The Arduino that will reset the destination Arduino. Once a interrupt is triggered a timer, really a delay function, will start that triggers a low to high pulse on D8. In turn, D8 is connected to the destination Arduino's reset line and will cause it to reset.

I chose to use the SoftwareSerial library and Arduino pins 2 and 3 rather than the default pin 0 and 1 for serial communication , so that I could use the default serial pins for printing debug statements to a serial monitor.

Connect your button to the Arduino as shown in the diagram above. I wanted the button to default to logic low when not pressed, so I added a pull-down resistor to my circuit. Your first Arduino is now set up!

Make sure that the LED is in the right orientation. At this point, I like to debug my circuit by writing a quick Arduino sketch to make sure that my LED and button are functioning as expected.

Otherwise, I might conflate a communication issue with a simple wiring or port setting issue. Using Arduinos makes the demo code fairly simple, although the final Callaloo will be a custom PCB design, not a pre-made development board i. On the input button side, we are checking for a button input and writing a character to the XBee via a serial connection. On the output side, we are checking if we received a certain character, and if so, turning on the LED by setting that bit high.

Now you should have a basic XBee network up and running! The next step for the Callaloo system is to expand the XBee network with more modules and prototype the bathroom door sensors.

Hello Jaime, This is great tutorial and I appriciate you. When I select transparent mode none of the symbols for C,R,E are not appear. And I can not establish communication between two antennas. The loggs that I entered from the console,appear in the same console with different color.

What the problem is in your point of view? Thank you Jamie, I got some idea on X bee and I am trying on x bee pro bhp modules for water tank automation , kindly share your ideas for communication between the said modules!

Its really very informative article. I found answer to a lot of my questions about xbee. Now its time to connect my recent bought xbees to explore their world.

Many thanks Jamie. Can you explain the configuration settings of using 3 xbee one coordinator and 2 End points. End point Xbee will be Sending information to the Coordinator. Please can u write a blog on it. Not that it is not impossible but you will need patience because the connectors are smaller. You also will have to regulate voltage from 5 volts to 3. Depending on witch way you go with this here is something that will likely be of some use should you chose to venture down that road.

Of course the ones used or not used depend on your config but the main ones you would need to set that up are there. How do I transfer these values? Question 3 years ago on Step 5. Question 3 years ago on Step 1. I am doing a project based on ZigBee on both the sides transmitter and receiver but m not using arduino instead of that m using micro controller so plz can u help me in coding.

I want to know if I can be able to understand by learning a zigbee thermostat and be able to send commands to it? More by the author:. About: Arduino Tutorials by Codebender. You can see the result of this tutorial on the below video : So, let's get started! Now click the "Write" button to save the changes in your xBee module. Disconnect the xBee explorer board from your computer and connect the other xBee module on it. Here's the "xBee Transmitter" code, embedded using Codebender!

The connections are pretty easy, see the above image with the breadboard circuit schematics. Power on both Arduino uno boards and try to fade the led by turning the potentiometer. I hope you liked this, let me know in the comments. There will be more of them, so make sure to click Follow button!

Did you make this project? Share it with us! I Made It!



0コメント

  • 1000 / 1000