Arduino WiFI Shield Скачать руководство пользователя страница 1

Arduino WiFI Shield

The 

Arduino WiFi shield

 allows an Arduino board to connect to the internet using the 

WiFi library

and to read and write an SD card using the 

SD library

.

The WiFi Library is included with the most 

recent version of the Arduino IDE

The firmware for the

WiFi shield has changed in Arduino IDE 1.0.4. It is strongly recommended to install this update per

these instructions

The 

WiFI library

 is similar to the 

Ethernet library

 and many of the function calls are the same.

Connecting the Shield

Using the Shield With Older Boards

Ports on the WiFi Shield

Network Settings

Scan for available networks

Open network example

WPA network example

WEP Network example

SD Card and SPI

Updating firmware on the shield

Next steps

 Connecting the Shield

-

-

-

-

-

-

-

-

-

-

-

Содержание WiFI Shield

Страница 1: ...shield has changed in Arduino IDE 1 0 4 It is strongly recommended to install this update per these instructions The WiFI library is similar to the Ethernet library and many of the function calls are the same Connecting the Shield Using the Shield With Older Boards Ports on the WiFi Shield Network Settings Scan for available networks Open network example WPA network example WEP Network example SD ...

Страница 2: ... it with an external power supply Digital pin 7 is used as a handshake pin between the WiFi shield and the Arduino and should not be used Using the Shield With Older Boards If you are using the WiFi shield with an Arduino earlier than the Uno rev3 you need to make the connection below for the board to work The WiFi board uses the IOREF pin on newer Arduino pin layouts Uno rev3 Mega2560 rev3 and la...

Страница 3: ...ecting IOREF to 3 3V as shown in the photo below or by soldering the IOREF jumper on the bottom of the shield shown below WARNING If you use the solder jumper do not connect the shield to a rev3 or later board To be safe remove the IOREF pin on the shield Otherwise you will be shorting 3 3V to 5V through the IOREF pin Jumping 3 3V to IOREF recommended Soldering 3 3V to IOREF ...

Страница 4: ...Ports on the WiFi Shield ...

Страница 5: ...ion with the 32UC3 for debugging purposes A list of available commands can be found here Network Settings The shield will connect to open networks as well as those using WEP and WPA2 Personal encryption The shield will not connect to networks using WPA2 Enterprise encryption The SSID network name must be broadcast for the shield to connect Depending on your wireless router configuration you need d...

Страница 6: ...l attempt to connect using WEP encryption Serial println Initializing Wifi printMacAddress scan for existing networks Serial println Scanning available networks listNetworks void loop delay 10000 scan for existing networks Serial println Scanning available networks listNetworks void printMacAddress the MAC address of your Wifi shield byte mac 6 print your MAC address WiFi macAddress mac Serial pri...

Страница 7: ...pting to connect to open network status WiFi begin ssid if you re not connected stop here if status WL_CONNECTED Serial println Couldn t get a wifi connection while true if you are connected else Serial print Connected to the network void loop do nothing WPA network example The example below shows how to connect to a WPA WPA2 Personal encrypted network named yourNetwork with a password 12345678 in...

Страница 8: ...access to your router s administrative tools consult your network administrator Each key is 10 or 26 hexadecimal digits long 40 or 128 bits and paired with a key number For example a 40 bit key ABBADEAF01 will work but ABBADEAF won t work too short and ABBAISDEAF won t work I and S are not hexadecimal characters vFor 128 bit you need a string that is 26 characters long D0D0DEADF00DABBADEAFBEADED w...

Страница 9: ...i connection while true if you are connected print out info about the connection else Serial println Connected to network void loop do nothing SD Card and SPI The WiFI Shield includes a micro SD card slot which can be interfaced with using the SD library The SS for the SD card is pin 4 Arduino communicates with the shield using the SPI bus This is on digital pins 11 12 and 13 on the Uno and pins 5...

Страница 10: ...The text of the Arduino getting started guide is licensed under a Creative Commons Attribution ShareAlike 3 0 License Code samples in the guide are released into the public domain ...

Страница 11: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Arduino A000058 ...

Отзывы: