محافظ بی سیم آردوینو به برد آردوینو شما اجازه می دهد تا با استفاده از Zigbee به صورت بی سیم ارتباط برقرار کند. این مستندات استفاده از شیلد را با ماژول XBee 802.15.4 توصیف می کند (گاهی اوقات برای متمایز کردن آنها از ماژول های سری 2 "سری 1" نامیده می شود، اگرچه "سری 1" در نام رسمی یا توضیحات محصول ظاهر نمی شود).
یک مثال ساده
شما باید بتوانید دو برد آردوینو با سپرهای بی سیم که بدون هیچ گونه پیکربندی با یکدیگر صحبت می کنند، فقط با استفاده از دستورات سریال استاندارد آردوینو (شرح داده شده در مرجع ) دریافت کنید.
برای آپلود طرح روی برد آردوینو با محافظ بیسیم، Xbee را حذف کنید. سپس، می توانید یک طرح را به طور معمول از محیط آردوینو آپلود کنید. در این صورت، Communication | طرح پیکسل فیزیکی روی یکی از تابلوها. این طرح به برد دستور میدهد تا هر زمان که یک «H» روی اتصال سریال خود دریافت کرد، الایدی متصل به پین 13 را روشن کند و زمانی که «L» گرفت، LED را خاموش کند. می توانید آن را با اتصال به برد با مانیتور سریال آردوینو (مطمئن شوید که روی 9600 baud تنظیم شده است)، تایپ یک H، و فشردن enter (یا کلیک کردن بر روی ارسال) تست کنید. LED باید روشن شود. یک L ارسال کنید و LED باید خاموش شود. اگر هیچ اتفاقی نیفتاد، ممکن است یک برد آردوینو داشته باشید که LED داخلی روی پایه 13 نداشته باشد (به نمایه برد مراجعه کنید برای بررسی مطمئن)، در این صورت باید خودتان را تهیه کنید.
![](https://i.ytimg.com/vi/WTnC1bHoaDM/hqdefault.jpg)
برای جزئیات بیشتر: راه اندازی بی سیم آردوینو و Xbee
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
The Arduino Wireless shield allows your Arduino board to communicate wirelessly using Zigbee. This documentation describes the use of the shield with the XBee 802.15.4 module (sometimes called “Series 1” to distinguish them from the Series 2 modules, although “Series 1” doesn’t appear in the official name or product description).
A Simple Example
You should be able to get two Arduino boards with Wireless shields talking to each other without any configuration, using just the standard Arduino serial commands (described in the reference).
To upload a sketch to an Arduino board with a Wireless shield, remove the Xbee. Then, you can upload a sketch normally from the Arduino environment. In this case, upload the Communication | Physical Pixel sketch to one of the boards. This sketch instructs the board to turn on the LED attached to pin 13 whenever it receives an ‘H’ over its serial connection, and turn the LED off when it gets an ‘L’. You can test it by connecting to the board with the Arduino serial monitor (be sure it’s set at 9600 baud), typing an H, and pressing enter (or clicking send). The LED should turn on. Send an L and the LED should turn off. If nothing happens, you may have an Arduino board that doesn’t have a built-in LED on pin 13 (see theboard index to check for sure), in this case you’ll need to supply your own.
![](https://i.ytimg.com/vi/WTnC1bHoaDM/hqdefault.jpg)
For more detail: Arduino and Xbee wireless setup