This document will guide through a series of steps from configuring development environment to running Arduino library and examples using the WIZnet's Wi-Fi product - WizFi360.
To test the WizFi360 Arduino library & examples, the development environment must be configured to use Arduino platform.
Please note that in this guide examples were configured and tested using Arduino IDE in Windows environment.
Before starting, download and install the Arduino IDE from the link below.
Additionally, if you are using WizFi360-EVB-Pico rather than WizFi360-EVB-Shield & Arduino Mega 2560, minor settings are required in the Arduino IDE and use branch WizFi360-EVB-Pico which supports WizFi360-EVB-Pico.
It is necessary to add a package to use the evaluation board based on RP2040, and follows below steps to setup.
-
Run the Arduino IDE
-
Open Preferences
-
Add next link to Additional Boards Manager URLs
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
-
Open Boards Manager
-
Install board support package
Search and install Earle F. Philhower's Raspberry Pico/RP2040 board support package.
※ The evaluation board supported by each branch is different, so refer to the following and use the branch.
Evaluation board | Branch |
---|---|
WizFi360-EVB-Shield & Arduino Mega 2560 | main |
WizFi360-EVB-Pico | WizFi360-EVB-Pico |
WizFi360 Arduino Library & Examples supports two boards: WizFi360-EVB-Shield & Arduino Mega 2560 and WizFi360-EVB-Pico.
With the WizFi360-EVB-Shield & Arduino Mega 2560, WizFi360-EVB-Shield is a evaluation board for experiment, test and verification of WizFi360. WizFi360-EVB-Shield can also be used as an Arduino shield.
The other board, WizFi360-EVB-Pico, is based on Raspberry Pi RP2040 and adds Wi-Fi connectivity using WizFi360. It is pin compatible with Raspberry Pi Pico board and can be used for IoT Solution development.
For detailed information about each board, refer to the links below.
Examples are available at WizFi360_arduino_library/examples/
directory. As of now, following examples are provided.
- ConnectWPA
- MqttClient
- ScanNetworks
- Thingspeak
- UdpNTPClient
- UdpSendReceive
- WebClient
- WebClientRepeating
- WebClientSSL
- WebServer
- WebServerAP
- WebServerLed
This section will guide through testing with ConnectWPA example as an example using WizFi360-EVB-Shield & Arduino Mega 2560 or WizFi360-EVB-Pico.
The following serial terminal program is required for example test, download and install from below link.
-
Combine WizFi360-EVB-Shield with Arduino Mega 2560.
-
Setup DIP switch on WizFi360-EVB-Shield.
- SW1 : Off
- SW2 : Off
- SW3 : On
- Connect WizFi360-EVB-Shield and Arduino Mega 2560 with jumper cable.
- WizFi360-EVB-Shield : D7 - Arduino Mega 2560 : 18
- WizFi360-EVB-Shield : D6 - Arduino Mega 2560 : 19
- Connect Arduino Mega 2560 to desktop or laptop using USB type B cable.
To test the example, minor settings shall be done in code.
- Setup device setting according to device you use.
Serial port configuration is different depending on the board used.
- Arduino Mega 2560 : ARDUINO_MEGA_2560
- WizFi360-EVB-Pico : WIZFI360_EVB_PICO
// setup according to the device you use
#define ARDUINO_MEGA_2560
- Setup Wi-Fi configuration.
/* Wi-Fi info */
char ssid[] = "wiznet"; // your network SSID (name)
char pass[] = "0123456789"; // your network password
- After completing the configuration, click Verify button.
- When the build is completed, click Upload button to upload the firmware to the Arduino Mega 2560.
- Connect to the serial COM port of Arduino Mega 2560 with Tera Term.
- If the example works normally on Arduino Mega 2560, you can see the Wi-Fi connection log and information such as SSID, BSSID, etc.
The following serial terminal program is required for example test, download and install from below link.
- Connect WizFi360-EVB-Pico to desktop or laptop using 5 pin micro USB cable.
To test the example, minor settings shall be done in code.
- Setup device configuration according to device you use.
Serial port configuration is different depending on the board used.
- Arduino Mega 2560 : ARDUINO_MEGA_2560
- WizFi360-EVB-Pico : WIZFI360_EVB_PICO
// setup according to the device you use
#define WIZFI360_EVB_PICO
- Setup Wi-Fi configuration.
/* Wi-Fi info */
char ssid[] = "wiznet"; // your network SSID (name)
char pass[] = "0123456789"; // your network password
- After completing the configuration, click Verify button.
- When the build is completed, click Upload button to upload the firmware to the WizFi360-EVB-Pico.
- Connect to the serial COM port of WizFi360-EVB-Pico with Tera Term.
- If the example works normally on WizFi360-EVB-Pico, you can see the Wi-Fi connection log and information such as SSID, BSSID, etc.