---
title: "WizFi360 LED Controller Board"
url: "https://maker.wiznet.io/durairaj/contest/wizfi360-led-controller-board/"
markdown_url: "https://maker.wiznet.io/durairaj/contest/wizfi360-led-controller-board/md"
type: "Contests"
author: "durairaj"
author_url: "https://maker.wiznet.io/durairaj/"
original_author: "Durairaj"
license: "MIT license (MIT)"
published: "2022-10-21"
language: "en"
tags: ["wizfi360-contest-submission", "wizfi360-contest-winner", "Internet of Things", "Lights"]
hardware: ["WIZnet WizFi360", "Seeed Studio Grove - Relay", "SparkFun Breadboard Power Supply 5V/3.3V"]
likes: 9
views: 2690
comments: 4
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# WizFi360 LED Controller Board

> Hi, I would like to make a WizFi360 LED controller PCB that can be controlled using a mobile application or using sensors & edge AI.

Original author: Durairaj

## Components

- **WIZnet WizFi360** x 1 ([docs](https://docs.wiznet.io/Product/Modules/Wi-Fi-Module/WizFi360))
- **Seeed Studio Grove - Relay** x 2 ([docs](https://wiki.seeedstudio.com/Grove-Relay/))
- **SparkFun Breadboard Power Supply 5V/3.3V** x 1 ([docs](http://www.sparkfun.com/tutorials/297))
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))

## Documents and links

- [AT commands](https://maker.wiznet.io/_lib/download.asp?path=project/7503&downfile=AT%5Fcommands%2Etxt) (code)
- [Schematics](https://maker.wiznet.io/_lib/download.asp?path=project/7503&downfile=SCH%5FWizFi%5F2022%2D08%2D06%2Ejson) (schematics)

## Article

### **WizFi LED controller PCB**

We will be making a LED controller using WizFi. We will be designing the PCB using easyeda. The generated Gerber files are fabricated them. Firmware for WizFi360 is also written.

![PCB img](https://hackster.imgix.net/uploads/attachments/1506060/dsc00443_EzXUjJQ2mg.JPG?auto=compress%2Cformat&w=740&h=555&fit=max)

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

### Demo video

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

### **Hardware**

We received a WizFi360-PA module from Wiznet. WizFi360 is a low-cost Wi-Fi solution that not only is Azure Certified and supports AWS SDK examples, but also is the official Wi-Fi Shield for Arm Open-CMSIS-pack and Keil Studio Cloud; lastly, comes in a Raspberry Pi Pico compatible board form-factor

![WizFi360-PA](https://hackster.imgix.net/uploads/attachments/1481682/ss1dsc00320_e8NF69nQ43.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

WizFi360-PA

The Pin Definition is given below

![Pinout](https://hackster.imgix.net/uploads/attachments/1469342/a3_VQz2a23HAJ.png?auto=compress%2Cformat&w=740&h=555&fit=max)

Pinout

**Schematic of WizFi360 LED Controller**

The WizFi360 is powered by the WizFi360-PA module. The relays are connected to the pins PB6 and PB8.

![Sch](https://hackster.imgix.net/uploads/attachments/1481686/sch_i2F5VPlbnZ.png?auto=compress%2Cformat&w=740&h=555&fit=max)

Sch

**How does the electronic circuit work?**

The electronic circuit is formed by a group of relay circuits that will be turned on/off using a mobile phone or using AT commands. This will be done by controlling the PB6 and PB8 pins.

Each led will be connected to the output port of the relays and will be connected to the circuit on the board through wires.

**What logic was implemented?**

The WizFi360 module makes use of AT commands to control the relay ports. The AT commands are sent to the module from a PC using a USB-to-Serial converter.

![Serial port](https://hackster.imgix.net/uploads/attachments/1491506/sch1_fuqHNbYEZn.png?auto=compress%2Cformat&w=740&h=555&fit=max)

Serial port

The relay is turned on and off by pulling the relay pin's **HIGH** or **LOW.**

- When PB6 is HIGH, Relay 1 output switches from NC to NO.

- When PB6 is LOW, Relay 1 output switches from NO to NC.

- When PB8 is HIGH, Relay 2 output switches from NC to NO.

- When PB8 is LOW, Relay 2 output switches from NO to NC.

![relay port](https://hackster.imgix.net/uploads/attachments/1491507/sch2_PVAogpTtDw.png?auto=compress%2Cformat&w=740&h=555&fit=max)

relay port

We have a DC connector for powering the electronic project with a +5V adapter. The other 2 connectors will be used to connect the output loads to the relays.

Finally, we finalized the electronic schematic design and developed the layout of the printed circuit board. See the result in the figure below.

![PCB](https://hackster.imgix.net/uploads/attachments/1491508/pcb-2d_pf9sDflj5a.png?auto=compress%2Cformat&w=740&h=555&fit=max)

Two mounting holes were inserted in the electronic board to facilitate the fixing of the board to the desired place.

The following is the full 3D view of the board.

![3D model](https://hackster.imgix.net/uploads/attachments/1491509/ss3_vHrUBkGYfp.png?auto=compress%2Cformat&w=740&h=555&fit=max)

3D model

The boards were fabricated by an Indian company [SAKTHICADD](http://sakthicadd.com/index.php), which helped me fabricate high-quality PCBs within a few working days.

![PCB](https://hackster.imgix.net/uploads/attachments/1491510/dsc00439_n5yisPcVJo.JPG?auto=compress%2Cformat&w=740&h=555&fit=max)

![](https://hackster.imgix.net/uploads/attachments/1491511/dsc00436_3jzNTL61nT.JPG?auto=compress%2Cformat&w=740&h=555&fit=max)

1 / 2 • PCB

The components were purchased and assembled as shown below.

![DSC00443.JPG](https://maker.wiznet.io/upload/ckeditor5/922729894%5F1665117645%2Epng)

**Testing**

We will be testing this board with AT commands directly from the PC and configuring the WizFi360 to Wi-Fi and controlling it using mobile.

**Output connections**

Connect the LEDs to the relay port as shown below. We will be connecting a 230V bulb to the relay to check the operation.![](https://maker.wiznet.io/upload/ckeditor5/913350391%5F1666238508%2Epng)

We have made a 230V bulb setup with a holder as shown. Connect the phase to the relays and bulb to the relay's common.

**Using AT commands**

Connect the USB-Serial converter to the Programmer port on the board.

Open a Serial monitor and select the baud to 115200. I'll be using putty to send the AT commands.

From the documentation, we use the following AT commands to turn ON/OFF a light (relay) from the PC.

```plaintext
AT
AT+SYSIOSETCFG=6,1,0
AT+SYSIOGETCFG=6
AT+SYSGPIODIR=6,1 //DIR OUTPUT
AT+SYSGPIOWRITE=6,0 //OP OFF
AT+SYSGPIOWRITE=6,1 //OP ON
```

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

You can see the relay switching in the image below.

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

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

### Demo video

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

Thanks wiznet for the free hardware and all the best to all the participants.

---

Source: https://maker.wiznet.io/durairaj/contest/wizfi360-led-controller-board/
