Wiznet makers

mhanuel

Published October 30, 2022 © GNU Lesser General Public License version 3 or later (LGPL3+)

0 Projects

0 Resellers

1 Contests

WiFi to GPIO/Relay and DAC outputs board

A GPIO/Relay/DAC card controlled by WIzFi360 module using MQTT.

COMPONENTS Hardware components

WIZnet - WizFi360-EVB-Pico

x 1

Software Apps and online services

mqtt - MQTT

x 1


PROJECT DESCRIPTION

The project is a GPIO /Relay and DAC board using WIzFi360.

The board has 8 relays outputs connected to an 8-bit GPIO extender controlled by I2C bus from Raspberry Pi PICO.

The board has an advance GPIO IC P/N CY8C9520A-24PVXIT controlled as well by I2C.

There is a 8 channel DAC by Microchip P/N MCP48CMB28-E_ML controlled by SPI interface.

To test the WizFi360 I decide to use circuitpython. I was trying to get websockets working but looks there is not a library yet for WizFi360, so in the meantime I use MQTT.

Here is a video controlling an LED using the Relays from an HTTP page hosted by Flask framework. There are a couple of LED,  one is connected to a DMM for easy viewing the voltage level. 

The Flask app connects to a mosquitto MQTT server and publish changes to Relay states. The WizFi360 is connected and suscribed to relay topic. It received notifications and change Relay states.

The MQTT circuit python library used is 

https://github.com/ronpang/WizFi360-cpy

The GPIO extender library used is located here

https://github.com/milador/Community_CircuitPython_TCA9534

The board presented a couple of issues that were fixed by prototyping it. The design was made under KiCAD and here is a 3D view.

The project is a work in progress to provide functionality to the rest of the components in board as well as new connectivity options.

 

Documents
  • circuitpython and Flask App sources

    Source for testing the Relay board using MQTT and Flask.

  • Schematics PDF files

    Board schematics

Credits
mhanuel

0 Projects

0 Resellers

1 Contests

Comments Write