---
title: "WizOnOff"
url: "https://maker.wiznet.io/nk_maker/contest/wizonoff/"
markdown_url: "https://maker.wiznet.io/nk_maker/contest/wizonoff/md"
type: "Contests"
author: "nisarg k bhatt"
author_url: "https://maker.wiznet.io/nk_maker/"
original_author: "Nisarg Kuntal Bhatt"
license: "Creative Commons Attribution CC BY version 4.0 or later (CC BY 4+)"
published: "2022-09-25"
language: "en"
tags: ["AIoT", "MQTT", "wizfi360-contest-ref"]
hardware: ["WIZnet WizFi360"]
likes: 20
views: 7378
comments: 9
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# WizOnOff

> WizOnOff is WizFi360-PA module based Opensource standalone multicloud supported device for automation with 4 relay and 1 temperature sensor

Original author: Nisarg Kuntal Bhatt

## Components

- **WIZnet WizFi360** x 1: WizFi360-PA (as standalone IoT controller) ([docs](https://docs.wiznet.io/Product/Modules/Wi-Fi-Module/WizFi360))
- Software: **Arduino IDE**: With Arduino IDE Support for WizFi360-PA standalone controller (W600 Winner Micro) ([docs](https://www.arduino.cc/en/software))

## Documents and links

- [WizOnOff Sketchbook](https://maker.wiznet.io/_lib/download.asp?path=project/7988&downfile=WizOnOff%5Fsketchbook%2Erar) (code): WizOnOff Arduino Sketchbook contains WizOnOff Sample codes, custom MQTT library and DS18B20 Library
- [WizOnOff Board package](https://maker.wiznet.io/_lib/download.asp?path=project/7988&downfile=wizonoff%2Ezip) (code): WizOnOff Board package
- [WizOnOff Schematic](https://maker.wiznet.io/_lib/download.asp?path=project/7988&downfile=WizOnOff%5FSchematic%2Epdf) (schematics): WizOnOff Schematic
- [3D rendering images](https://maker.wiznet.io/_lib/download.asp?path=project/7988&downfile=3d%5Frendering%5Fwizonoff%2Ezip): 3D rendering images
- [WizOnOff Board Gerber Files](https://maker.wiznet.io/_lib/download.asp?path=project/7988&downfile=NKB%5FGRB%2Ezip): WizOnOff Board Gerber Files for Board manufacturing

## Article

**Objective of Designing WizOnOff Project is to develop Wiznet WIZFI360-PA module based Standalone IoT platform to explore various use case of WIZFI360-PA without use of any extra micro controller. github Repo : **[**https://github.com/nkmakerin/WizOnOff**](https://github.com/nkmakerin/WizOnOff)

**Features of project :**

1. Fully standalone **IoT development platform** with only **WIZFI360-PA** module as main controller for WiFi and User application.

2. Fully Programmable with custom firmware developed using **W600 SDK** or **Arduino IDE with W600 package**.

3. Onboard **4 Relay **for automation, Port for DS18B20 Temperature Sensor

4. External header for extend **GPIO/UART1/I2C** to interface various Sensors/actuators.

5. Onboard **HiLink AC-DC module** as utility power supply (110V-230V AC) to 5V 3 AMP DC converter.

**WizOnOff MQTT Test : ** MQTT Sample Arduino Sketch in documentation section configure WizFi360-PA as MQTT Client using modified PubSubClient library (Also Available in documentation)

Desktop or smartphone MQTT Client applicantion can be used for test, BTW I have used this [MQTT Client Android Application](https://play.google.com/store/apps/details?id=net.routix.mqttdash&hl=en_IN&gl=US) in video.

[Embedded media](https://www.youtube.com/embed/8UP_8SQ3LN0)

**WizOnOff ThingSpeak Test : **Thingspeak Sample Arduino Sketch in documentation section sends temperature readings to thingspeaks server, specific thingspeaks library not used in video, simple HTTP get request used in sketch.

[Embedded media](https://www.youtube.com/embed/IpnjSeCnKnM)

**WizOnOff DS18B20 Temperature Sensor Test : **Custom made DS18B20 header file uses bit banging to implement one wire transfer protocol. Sample Arduino sketch with DS18B20 header file available in documentation section.

[Embedded media](https://www.youtube.com/embed/VUses487foU)

**WizOnOff Board Test : ** WizOnOff board testing sketch to test each led and relay switch.

[Embedded media](https://www.youtube.com/embed/6ZwkqxDpPLw)

**W600 SDK and Arduino Package Resources :**

1. <https://w600.chip.haus/>

2. <https://www.winnermicro.com/en/html/1/156/158/497.html>

3. <https://github.com/w600/arduino>

4. <https://www.winnermicro.com/en/html/1/162/163/535.html>

**Setup WizOnOff with Arduino IDE:Step-1** Download **w600-arduino-InnerIDE-0.2.6.zip **from this [Winner Micro Website](https://www.winnermicro.com/en/html/1/162/163/535.html) as shown, this zip file includes W600 SDK also,

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667250118%2EJPG)

**Step-2** unzip **w600-arduino-InnerIDE-0.2.6.zip **and copy paste W600 folder inside Packages folder of arduino installation as shown (Package path in your system may vary so do accordingly)

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667250405%2EJPG)

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667250405%5F0%2EJPG)

after copying file structure should be as above

**Step-3** download, unzip and paste **WizOnOff Board package** folder provided with this document to ..\packages\w600\hardware\w600\0.2.7-rc1\variants path as shown below

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667250657%2EJPG)

now Arduino IDE is all set to write and upload code to WizOnOff board and you should find WizOnOff Board in Board manager as below

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667250856%2EJPG)

**WizOnOff upload firmware from Arduino IDE:**

Download, unzip and move contents of **WizOnOff Sketchbook** folder provided with this document to your arduino sketchbook , now sample codes of wizonoff board available directly to load in your sketchbook for quick start.

**Provided Sketchbook contains Modified MQTT pubsubclient library to work with WizFi360-PA and DS18B20 library I have developed from scratch as ready made DS18B20 temperature sensor library not competible with WizFi360-PA arduino Package.**

Attach wizonoff board to USB-UART converter module as shown and attach it to USB port of your host system, as shown below, install driver if from website of USB-UART chip you are using.

![](https://maker.wiznet.io/upload/ckeditor5/1010955697%5F1667268004%2Epng)

make sure to select correct COM Port and Board in tools menu as shown below

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252403%2EJPG)

hit upload button, If all went good than you should see successful upload message like below

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252428%2Epng)

**Pin Mapping for WizOnOff Board used in Arduino IDE:**

```plaintext
#define DS18B20_DAT_PIN 7 // PB8 Data pin of DS18B20 temperature Sensor
#define LED_OB  6  // PB7   Active High on WizFi360-PA module
#define LED_1   9  // PB10  Active High Blue LED on WizOnOff mounted PCB
#define RELAY_1 10 // PB15  Active Low
#define RELAY_2 11 // PB18  Active Low
#define RELAY_3 18 // PB14  Active Low
#define RELAY_4 13 // PB16  Active Low
```

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667253868%2Ejpg)

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667253889%2EJPG)

**WizOnOff Board pcb layout and assambly : Gerber files of WizOnOff PCB Board is provided with this document,**

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252926%2EJPG)

**Top Side**

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252926%5F1%2EJPG)

**Bottom Side**

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252926%5F0%2EJPG)

**Board dimensions**

![](https://maker.wiznet.io/upload/ckeditor5/1010955163%5F1667252988%2EJPG)

**Assembled Board**

![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809543%2Ejpg) ![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809618%2Ejpg)

![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809564%2Ejpg)![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809564%5F0%2Ejpg)

![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809564%5F1%2Ejpg)![](https://maker.wiznet.io/upload/ckeditor5/281304537%5F1664809564%5F2%2Ejpg)

**WizOnOff Board Schematic :**

![](https://maker.wiznet.io/upload/ckeditor5/927424774%5F1664638793%2Epng)

**Bill of Material :**

![](https://maker.wiznet.io/upload/ckeditor5/927424774%5F1664638675%2Epng)

**Developed Board Renderings :**

![](https://maker.wiznet.io/upload/ckeditor5/939630997%5F1664127492%2Epng)![](https://maker.wiznet.io/upload/ckeditor5/939630997%5F1664127501%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/939630997%5F1664127511%2Epng)![](https://maker.wiznet.io/upload/ckeditor5/939630877%5F1664122462%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/939630877%5F1664122494%2Epng)

---

Source: https://maker.wiznet.io/nk_maker/contest/wizonoff/
