---
title: "Intelligent fish tank"
url: "https://maker.wiznet.io/mingkeyu/contest/intelligent-fish-tank/"
markdown_url: "https://maker.wiznet.io/mingkeyu/contest/intelligent-fish-tank/md"
type: "Contests"
author: "mingkeyu"
author_url: "https://maker.wiznet.io/mingkeyu/"
original_author: "ming liang"
license: "Apache License 2.0 (Apache-2.0)"
published: "2022-10-31"
language: "en"
tags: ["C/C++"]
hardware: ["WIZnet WizFi360"]
likes: 5
views: 2527
comments: 1
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Intelligent fish tank

> The fish tank is connected to the Internet through wifi to realize remote monitoring and control.

Original author: ming liang

## Components

- **WIZnet WizFi360** x 1: 1 ([docs](https://docs.wiznet.io/Product/Modules/Wi-Fi-Module/WizFi360))
- Software: **WIZnet WizFi360-EVB-Pico-C**: 1 ([docs](https://github.com/Wiznet/WizFi360-EVB-Pico-C))

## Documents and links

- [FishTankController](https://github.com/mingkeyu/fish-tank-control-system) (code): https://github.com/mingkeyu/fish-tank-control-system
- [FishTankController](https://github.com/mingkeyu/fish-tank-control-system) (schematics): https://github.com/mingkeyu/fish-tank-control-system
- [FishTankController](https://github.com/mingkeyu/fish-tank-control-system): https://github.com/mingkeyu/fish-tank-control-system

## Article

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

ST7789 (240 * 240) display and control backplane PCB

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

![](https://maker.wiznet.io/upload/ckeditor5/797178817%5F1667174616%5F1%2Ejpg)

The plastic shell is handmade

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

3D model

![](https://maker.wiznet.io/upload/ckeditor5/797178817%5F1667174616%5F0%2Epng)

QT TCP Server program

![](https://maker.wiznet.io/upload/ckeditor5/797178817%5F1667174616%5F1%2Epng)

Display screen PCB 3D model

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

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

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

Display effect after installing plastic shell

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

Fish tank at home

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

Mind map of fish tank controller

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

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

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

Hardware connection diagram

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

Qt TCP server development interface

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

Using WizFi360-EVB-Pico--C and rp2040 SDK library rapid development

Features:

6-way IO port (Control relay)

1-way serial port(wizfi360)

2-way ADC(temperature,Battery voltage)

1-way spi(st7789)

hardware GPIO mapping table:

| SPI | Fish tank IO | *WizFi360-EVB-Pico pin number* |
| --- | --- | --- |
| FSO | GP16 |  |
| CS2 | GP14 |  |
| CS1 | GP17 |  |
| BLK | GP21 |  |
| RES | GP13 |  |
| DC | GP15 |  |
| SCL | GP18 |  |
| SDA | GP19 |  |
| EC11 | ECA | GP10 |
| ECB | GP11 |  |
| ECD | GP12 |  |
| ADC | ADC0 | GP26 |
| ADC1 | GP27 |  |
| UART1 | RXD1 | GP4 |
| TXD1 | GP5 |  |
| OUTPUT | OUT1 | GP2 |
| OUT2 | GP3 |  |
| OUT3 | GP8 |  |
| OUT4 | GP9 |  |
| INPUT | INPUT1 | GP21 |

The hardware development tool is Altium Designer,Software development tools use Qt,CLion,Cmake.

Hardware and software download address:

<https://docs.wiznet.io/Product/Open-Source-Hardware/wizfi360-evb-pico>

gitee:https://gitee.com/mingkeyu/fish-tank-control-system

<https://github.com/mingkeyu/fish-tank-control-system>

Project introduction:

The fish tank system will continue to update functions. At present, the data communication between wizfi360 and server has been realized. The electrical appliances (water pump, oxygen pump, fill light, heating rod) on the fish tank can be controlled by the rotary encoder at the end of the fish tank to obtain the temperature of the fish tank. You can also remotely control the electrical appliances on the fish tank through the TCP server, and the status and temperature of the fish tank can be displayed on the TFT display. The functions to be added in the next step are that the TFT display and rotary encoder on the fish tank end will be modified to configure Wifi information, the server will be ported to the web end, data and control status will be transmitted through MQtt, and Android App will be added to remotely control the fish tank and obtain the fish tank information.

Video:

<https://v.youku.com/v_show/id_XNTkxNDQzMjcwOA==.html?x&sharefrom=android&sharekey=3dbd7374f7a31e873bf44aadc738bb213>

---

Source: https://maker.wiznet.io/mingkeyu/contest/intelligent-fish-tank/
