background preloader

XBee

Facebook Twitter

Arduino Test Program For XBee - XBEE Tutorial. The combination of Arduino and XBee is a very popular option for a electronics project. People can use it to remote control a robot. Here demonstrates the test program on Arduino for communicating with XBee. [ Arduino XBee Communication Test Program ]A simple program (with the great help from NewSoftSerial to make it happen) on Arduino. This program can collect signals from XBee , then transfer them back to Serial Port which connected to a PC. The original official softserial library of Arduino , can only use the default pins ( Rx pin0 and Tx pin1 ) for serial communication.

That's only one set for Arduino duemilanove , while the other IO pins are doing nothing over there. In reality , you will need more than one UART interface for Arduino to communicate with other microcontroller unit in the same time. NewSoftSerial allows you talk to other device which comes with UART. The usage of NewSoftSerial is quite similar as the official one , see the source code below. [ Test Result ] Xbee Tutorial - TristanTech.net. This article is a step-by-step guide to help get started using the Xbee wireless modules. You should already be familiar with computer serial ports, microcontrollers, UARTS, and etc. We will learn how to configure Xbee modules (set the baud rates, PAN ID, serial settings, etc) on your computer using X-CTU. What is Xbee? Xbee modules are bidirectional 2.4 GHz digital radios targeted towards hobbyists.

The modules have selectable baud rates (1200-230400 bps) and a 3.3 volt serial interface. The Xbee modules offer pretty good reliability. Another plus is that the newer Xbee modules also have built-in ADC's and digital I/O's so you can communicate simple information (like the output of a sensor) without bothering with a microcontroller. However, the coolest thing about Xbee is that it allows multi-point networks. Getting Started Now that you know a little bit more about Xbee, we can get started. To get started, I recommend that you buy these three things: Configuring the modules Comments.

XBee adapter - Simple wireless communication. XBee modems are one of the easiest ways to create a wireless point-to-point or mesh network. They have error correction, are configured with AT commands, come in multiple flavors and can create a wireless serial link out of the box! I wanted to make a wireless Arduino project but all the adapter boards on the market made me unhappy. So I designed what I think is an excellent low-cost adapter board. Yes it can act as a breakout board, but it also has.... Perfect for wirelessly communicating with a microcontroller project. The DTR, RTS, RESET and RX pins (going into the XBee) pass through a level converter chip that brings the levels to 3.3V.

Digi.com - Search "xbee" Configure Xbee via Linux - Documentation - OpenPilot Wiki. Linux: Using the Sparkfun XBee Explorer USB on Linux See also this related bug report. The sparkfun xbee to usb carrier board uses USB VID/PID = 0403:6001 which is the generic VID/PID for "Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC". This particular ID is auto-matched by upowerd (previously devkit-power) as a "Watts Up? Pro" via a specific udev rule: /lib/udev/rules.d/95-devkit-power-wup.rules (old)/lib/udev/rules/d/95-upower-wup.rules (new) Because of this, upowerd takes over /dev/ttyUSB0 as soon as it is detected resulting in "Cannot open /dev/ttyUSB0: Device or resource busy" errors when trying to open the device in other applications.

You can see this happening in a couple places: upower --monitor-detail (or devkit-power --monitor-detail)This will show a "Watts Up? " To fix this: In order to access serial ports directly in Linux, you'll need to be a member of the dialout group. Note: Do NOT run this as root. sudo adduser ${USER} dialout Install and Configure Wine. How To Configure XBee & XBee Pro Series 1 on Linux | Cameri's Workbench. How To Check and Use Serial Ports Under Linux. How do I check and configure serial ports under Linux for various purposes such as modem, connecting null modems or connect a dumb terminal? Linux offers various tools. Linux uses ttySx for a serial port device name. For example, COM1 (DOS/Windows name) is ttyS0, COM2 is ttyS1 and so on.

Task: Display Detected System's Serial Support Simple run dmesg command $ dmesg | grep tty Output: [ 37.531286] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 37.531841] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 37.532138] 0000:04:00.3: ttyS1 at I/O 0x1020 (irq = 18) is a 16550A setserial command setserial is a program designed to set and/or report the configuration information associated with a serial port. /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS1, UART: 16550A, Port: 0x1020, IRQ: 18 /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4 /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3 setserial with -g option help to find out what physical serial ports your Linux box has.

Downloads - python-xbee - Python tools for working with XBee radios. The Negawatt » XBee. Tweet-A-Watts: Wireless logging of point of consumption electricity data he Tweet-A-Watt DIY wireless power monitoring project is the brainchild of the generous Limor Fried (Lady Ada), of Adafruit Industries and ladyada.net. The mail-order electronics kit provides everything you need to modify a Kill-A-Watt power monitor to wirelessly record its data to a local computer via XBee RF modules. The project is called “Tweet-A-Watt” because it comes with open-source code to tweet the data to a Twitter account, but once you’ve got the unit working you can do whatever you’d like with the data. In order to drive my energy use feedback prototypes for my research with live data, I bought the parts to build a pair of Tweet-A-Watts.

So far I’ve built one of them. The instructions from ladyada.net are top-notch, and the kit provides everything you need. With a few tools and some good music, I was contentedly soldering away for hours. Here are some photos and notes about the process. XBee Receiver. Tutorial: How to Setup configurate Xbee Devices (Hard and Software) with an Arduino HQ Part 1.