Skip to content

Wiznet/WizFi360_arduino_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with WizFi360 Arduino Library & Examples

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.

Development environment configuration

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.

  1. Run the Arduino IDE

  2. Open Preferences

  3. Add next link to Additional Boards Manager URLs

https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

  1. Open Boards Manager

  2. 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

Hardware requirements

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

Examples are available at WizFi360_arduino_library/examples/ directory. As of now, following examples are provided.

Example testing

This section will guide through testing with ConnectWPA example as an example using WizFi360-EVB-Shield & Arduino Mega 2560 or WizFi360-EVB-Pico.

Using WizFi360-EVB-Shield & Arduino Mega 2560

Step 1: Prepare software

The following serial terminal program is required for example test, download and install from below link.

Step 2: Prepare hardware

  1. Combine WizFi360-EVB-Shield with Arduino Mega 2560.

  2. Setup DIP switch on WizFi360-EVB-Shield.

  • SW1 : Off
  • SW2 : Off
  • SW3 : On
  1. 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

  1. Connect Arduino Mega 2560 to desktop or laptop using USB type B cable.

Step 3: Setup Example

To test the example, minor settings shall be done in code.

  1. 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
  1. Setup Wi-Fi configuration.
/* Wi-Fi info */
char ssid[] = "wiznet";       // your network SSID (name)
char pass[] = "0123456789";   // your network password

Step 4: Build and Upload

  1. After completing the configuration, click Verify button.

  1. When the build is completed, click Upload button to upload the firmware to the Arduino Mega 2560.

Step 5: Run

  1. Connect to the serial COM port of Arduino Mega 2560 with Tera Term.

  1. If the example works normally on Arduino Mega 2560, you can see the Wi-Fi connection log and information such as SSID, BSSID, etc.

Using WizFi360-EVB-Pico

Step 1: Prepare software

The following serial terminal program is required for example test, download and install from below link.

Step 2: Prepare hardware

  1. Connect WizFi360-EVB-Pico to desktop or laptop using 5 pin micro USB cable.

Step 3: Setup Example

To test the example, minor settings shall be done in code.

  1. 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
  1. Setup Wi-Fi configuration.
/* Wi-Fi info */
char ssid[] = "wiznet";       // your network SSID (name)
char pass[] = "0123456789";   // your network password

Step 4: Build and Upload

  1. After completing the configuration, click Verify button.

  1. When the build is completed, click Upload button to upload the firmware to the WizFi360-EVB-Pico.

Step 5: Run

  1. Connect to the serial COM port of WizFi360-EVB-Pico with Tera Term.

  1. If the example works normally on WizFi360-EVB-Pico, you can see the Wi-Fi connection log and information such as SSID, BSSID, etc.