WiFi to GPIO/Relay and DAC outputs board
A GPIO/Relay/DAC card controlled by WIzFi360 module using MQTT.
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
The GPIO extender library used is located here
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.
circuitpython and Flask App sources
Source for testing the Relay board using MQTT and Flask.
Schematics PDF files