Fish tank control system based on single chip microcomputer

By designing a fish tank control system based on a microcontroller, the automatic management of the fish tank is achieved, and the problem of manual control of the traditional fish tank management system is solved, ensuring the stability of the fish tank environment and the survival of fish.

CN119689940AInactive Publication Date: 2025-03-25NANTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411833744.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional fish tank management system requires manual control, which leads to the inability to take care of the fish tank regularly, resulting in the death of aquatic plants and ornamental fish.

Method used

A fish tank control system based on a single chip computer is designed, and the control module is electrically connected to the display module, heating module, oxygenation module, water change module, lighting module and feeding module are realized, including water change, oxygen replenishment, feeding, lighting and heating functions.

Benefits of technology

It realizes intelligent management of the fish tank without manual control, ensuring the stability of the fish tank environment and extending the survival time of the fish.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119689940A_ABST
    Figure CN119689940A_ABST
Patent Text Reader

Abstract

The invention discloses a fish tank control system based on a single-chip microcomputer, and the system comprises a control module which is electrically connected with a display module, a heating module, an oxygenation module, a water changing module, an illumination module, and a feeding module. The control module, the display module, the heating module, the oxygenation module, the water changing module, the lighting module and the feeding module are electrically connected with a power module. The invention solves the problem that a plurality of water quality purification and improvement devices, such as a water changing device, an oxygen adding pump, a feeding device and the like, are generally non-intelligent and need to be independently controlled manually in the market at present.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of fish tanks, and in particular to a fish tank control system based on a single-chip microcomputer. Background Art

[0002] With the fast pace of modern life, many families choose to keep small aquariums for viewing aquatic plants and fish. However, due to the fast pace of life and increasing pressures in contemporary society, people may not regularly maintain their aquariums, making it difficult for these small ecosystems to maintain balance. Over time, aquatic plants and ornamental fish may die. To address the challenges of traditional aquarium management, intelligent aquarium control systems have emerged. Currently, there are a variety of water purification and improvement devices on the market, such as water exchangers, oxygen pumps, and feeding systems, but these are generally non-intelligent and require individual manual control. Summary of the Invention

[0003] The purpose of the present invention is to overcome the existing defects and provide a fish tank control system based on a single-chip microcomputer, which can automatically perform water changing, oxygenation, feeding, lighting and heating functions.

[0004] The technical solution to achieve the above-mentioned purpose is: a fish tank control system based on a single-chip microcomputer, including a control module, which is electrically connected to a display module, a heating module, an oxygenation module, a water change module, a lighting module and a feeding module respectively; the control module, the display module, the heating module, the oxygenation module, the water change module, the lighting module and the feeding module are also electrically connected to a power supply module respectively.

[0005] Preferably, the control module includes a single chip microcomputer, a crystal oscillator, a voltage stabilizing circuit, a GPIO pin, a connector, a reset circuit, etc., and the display module includes a display, and the display is electrically connected to the control module.

[0006] Preferably, the heating module includes a first relay, a heater and a temperature sensor, the temperature sensor is electrically connected to the single-chip microcomputer, the single-chip microcomputer is electrically connected to the first relay and the heater, the temperature sensor detects the water temperature in the fish tank and transmits the signal directly to the single-chip microcomputer, and the single-chip microcomputer turns on or off the heater by controlling the first relay.

[0007] Preferably, the oxygenation module includes a second relay and an oxygen pump, the single chip microcomputer is electrically connected to the second relay and the oxygen pump, and the single chip microcomputer turns on or off the oxygen pump by controlling the second relay.

[0008] Preferably, the water exchange module includes a water discharge pump, a third relay, a water suction pump, a fourth relay, a low water level sensor and a high water level sensor. The low water level sensor and the high water level sensor are respectively installed at the bottom and the top of the inner wall of the fish tank. The low water level sensor and the high water level sensor are electrically connected to the single-chip microcomputer. The single-chip microcomputer is electrically connected to the third relay and the water discharge pump. The single-chip microcomputer is also electrically connected to the fourth relay and the water suction pump. The low water level sensor and the high water level sensor send signals to the single-chip microcomputer. After receiving the signal, the single-chip microcomputer controls the third relay to open or close the water discharge pump. After receiving the signal, the single-chip microcomputer can also control the fourth relay to open or close the water suction pump.

[0009] Preferably, the lighting module includes a photoresistor, an analog-to-digital conversion chip and a lighting lamp. The single-chip microcomputer is electrically connected to the photoresistor through the analog-to-digital conversion chip, and the photoresistor is electrically connected to the lighting lamp. The photoresistor inputs the signal into the single-chip microcomputer through the analog-to-digital conversion chip, and the single-chip microcomputer controls the lighting lamp.

[0010] Preferably, the feeding module includes a driving motor, a motor chip and a feeding device, the single-chip microcomputer is electrically connected to the driving motor through the motor chip, the output end of the driving motor is connected to the feeding device, and the single-chip microcomputer controls the driving motor through the motor chip.

[0011] Preferably, the first relay, the second relay, the third relay and the fourth relay are mounted on a PCB board, and the analog-to-digital conversion chip and the motor chip are also connected to the PCB board.

[0012] The beneficial effects of the present invention are as follows: the control module is electrically connected to the display module, the heating module, the oxygenation module, the water changing module, the lighting module and the feeding module respectively; and the single chip microcomputer in the control module can intelligently perform water changing, oxygenation, feeding, lighting and heating on the fish tank, thereby ensuring the survival of the fish in the fish tank without manual control. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a framework diagram of the present invention;

[0014] Figure 2 It is a schematic diagram of the installation of some parts of the present invention;

[0015] Figure 3 It is a reset circuit diagram of the single chip microcomputer of the present invention;

[0016] Figure 4 It is a control flow chart of the water changing module of the present invention;

[0017] Figure 5 It is the relay control circuit diagram of the present invention.

[0018] In the figure: 1. PCB board; 2. MCU; 3. Display; 4. First relay; 5. Second relay; 6. Third relay; 7. Fourth relay; 8. Temperature sensor; 9. Low water level sensor; 10. High water level sensor; 11. Photoresistor; 12. Analog-to-digital conversion chip; 13. Lighting lamp; 14. Drive motor; 15. Motor chip. DETAILED DESCRIPTION

[0019] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0020] The present invention will be further described below with reference to the accompanying drawings.

[0021] like Figure 1 and Figure 2 As shown, a fish tank control system based on a single-chip microcomputer includes a control module, which is electrically connected to a display module, a heating module, an oxygenation module, a water exchange module, a lighting module and a feeding module respectively. The control module, display module, heating module, oxygenation module, water exchange module, lighting module and feeding module are also electrically connected to a power supply module respectively.

[0022] Combine Figure 3 Specifically, the control module includes a single-chip microcomputer 2 (the model of single-chip microcomputer 2 is STC59C52), a crystal oscillator, a voltage stabilizing circuit, GPIO pins, a connector, and a reset circuit. The display module includes a display 3 (the model of display 3 is LCD1602). Display 3 is connected to single-chip microcomputer 2 via a parallel interface. The data line and control line of display 3 are connected to single-chip microcomputer 2 via appropriate pins. When the system is running, display 3 can display important parameters such as the current water temperature, light intensity, and water level status. At the same time, display 3 will also display the execution status of tasks such as timed oxygen flushing, timed feeding, and timed water changes. Display 3 also provides a simple operation interface. Users can use buttons on display 3 to perform some basic setting operations, such as setting timing parameters, switching to manual control mode, etc. In this way, users can intuitively understand the system status and parameters and conveniently perform operations and settings.

[0023] The heating module includes a first relay 4, a heater and a temperature sensor 8 (the model of the temperature sensor 8 is DS18B20). The temperature sensor 8 is electrically connected to the single-chip microcomputer 2. The single-chip microcomputer 2 is electrically connected to the first relay 4 and the heater. The temperature sensor 8 detects the water temperature in the fish tank and transmits the signal directly to the single-chip microcomputer 2. The single-chip microcomputer 2 turns on or off the heater by controlling the first relay 4. When the water temperature is lower than the set temperature threshold, the first relay 4 will be triggered and the heater will be powered on. Once the temperature reaches the set value, the first relay 4 will be disconnected and heating will stop. This can ensure that the fish in the fish tank are always at a suitable temperature and ensure the survival of the fish.

[0024] The oxygenation module includes a second relay 5 and an oxygen pump. The single chip microcomputer 2 is electrically connected to the second relay 5 and the oxygen pump. The single chip microcomputer 2 controls the second relay 5 to turn on or off the oxygen pump to ensure that the fish is always in an environment with suitable oxygen content and ensure the survival of the fish.

[0025] Combine Figure 4 Specifically, the water change module includes a drain pump, a third relay 6, a water suction pump, a fourth relay 7, a low water level sensor 9 and a high water level sensor 10. The low water level sensor 9 and the high water level sensor 10 are respectively installed at the bottom and the top of the inner wall of the fish tank. The low water level sensor 9 and the high water level sensor 10 are electrically connected to the single-chip microcomputer 2. The single-chip microcomputer 2 is electrically connected to the third relay 6 and the drain pump. The single-chip microcomputer 2 is also electrically connected to the fourth relay 7 and the water suction pump. The low water level sensor 9 and the high water level sensor 10 send a signal to the single-chip microcomputer 2. After receiving the signal, the single-chip microcomputer 2 controls the third relay 6 to open or close the drain pump. After receiving the signal, the single-chip microcomputer 2 can also control the fourth relay 7 to open or close the water suction pump.

[0026] The lighting module includes a photoresistor 11 (the photoresistor 11 is an existing product, its model is GL5506), an analog-to-digital conversion chip 12 and a lighting lamp 13. The single-chip microcomputer 2 is electrically connected to the photoresistor 11 through the analog-to-digital conversion chip 12 (the model of the analog-to-digital conversion chip 12 is ADC0832), and the photoresistor 11 is electrically connected to the lighting lamp 13. The analog output signal of the photoresistor 11 is connected to the analog input port of the single-chip microcomputer 2 through the analog input pin of the analog-to-digital conversion chip 12. In order to ensure the stability and anti-interference ability of the signal, a suitable filtering circuit is added between the photoresistor 11 and the analog-to-digital conversion chip 12 to reduce noise interference. The single-chip microcomputer 2 controls the lighting lamp 13, so that when the light is dim, the lighting lamp 13 illuminates the fish tank.

[0027] The feeding module includes a drive motor 14 (the drive motor 14 is a 5-wire 4-phase stepper motor of model 28BYJ-48), a motor chip 15 (the model of the motor chip 15 is ULN2003) and a feeding device. The IO port of the single-chip microcomputer 2 is connected to the input pin of the motor chip 15 to send a pulse signal to the drive motor 14. The output end of the drive motor 14 is connected to the feeding device. The single-chip microcomputer 2 controls the drive motor 14 through the motor chip 15, so that the fish tank can be fed regularly.

[0028] Combine Figure 5 Specifically, the first relay 4, the second relay 5, the third relay 6 and the fourth relay 7 are all parts of the same model. The circuits of the three modules of oxygenation, heating and water change are exactly the same. The first relay 4, the second relay 5, the third relay 6 and the fourth relay 7 are installed on the PCB board 1, and the analog-to-digital conversion chip 12 and the motor chip 15 are also connected to the PCB board 1.

[0029] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A fish tank control system based on a single chip microcomputer, characterized in that: It includes a control module, which is electrically connected to a display module, a heating module, an oxygenation module, a water change module, a lighting module and a feeding module respectively. The control module, the display module, the heating module, the oxygenation module, the water change module, the lighting module and the feeding module are also electrically connected to a power supply module respectively.

2. The fish tank control system based on single chip microcomputer according to claim 1 is characterized in that: The control module comprises a single-chip microcomputer (2), a crystal oscillator, a voltage stabilizing circuit, a GPIO pin, a connector, a reset circuit, etc. The display module comprises a display (3), and the display (3) is electrically connected to the control module.

3. The fish tank control system based on single chip microcomputer according to claim 2 is characterized in that: The heating module comprises a first relay (4), a heater and a temperature sensor (8); the temperature sensor (8) is electrically connected to the single-chip computer (2); the single-chip computer (2) is electrically connected to the first relay (4) and the heater; the temperature sensor (8) detects the water temperature in the fish tank and transmits the signal directly to the single-chip computer (2); the single-chip computer (2) turns the heater on or off by controlling the first relay (4).

4. The fish tank control system based on single chip microcomputer according to claim 2 is characterized in that: The oxygenation module comprises a second relay (5) and an oxygen pump, the single chip microcomputer (2) is electrically connected to the second relay (5) and the oxygen pump, and the single chip microcomputer (2) turns the oxygen pump on or off by controlling the second relay (5).

5. The fish tank control system based on single chip microcomputer according to claim 2 is characterized in that: The water exchange module comprises a water discharge pump, a third relay (6), a water suction pump, a fourth relay (7), a low water level sensor (9) and a high water level sensor (10); the low water level sensor (9) and the high water level sensor (10) are respectively installed at the bottom and the top of the inner wall of the fish tank; the low water level sensor (9) and the high water level sensor (10) are electrically connected to the single chip microcomputer (2); the single chip microcomputer (2) is electrically connected to the third relay (6) and the water discharge pump; the single chip microcomputer (2) is also electrically connected to the fourth relay (7) and the water suction pump; the low water level sensor (9) and the high water level sensor (10) send a signal to the single chip microcomputer (2); after receiving the signal, the single chip microcomputer (2) controls the third relay (6) to open or close the water discharge pump; after receiving the signal, the single chip microcomputer (2) can also control the fourth relay (7) to open or close the water suction pump.

6. The fish tank control system based on single chip microcomputer according to claim 2 is characterized in that: The lighting module comprises a photoresistor (11), an analog-to-digital conversion chip (12) and a lighting lamp (13); the single-chip computer (2) is electrically connected to the photoresistor (11) via the analog-to-digital conversion chip (12); the photoresistor (11) is electrically connected to the lighting lamp (13); the photoresistor (11) inputs a signal into the single-chip computer (2) via the analog-to-digital conversion chip (12); and the single-chip computer (2) controls the lighting lamp (13).

7. The fish tank control system based on single chip microcomputer according to claim 2 is characterized in that: The feeding module comprises a driving motor (14), a motor chip (15) and a feeding device; the single-chip computer (2) is electrically connected to the driving motor (14) via the motor chip (15); an output end of the driving motor (14) is connected to the feeding device; and the single-chip computer (2) controls the driving motor (14) via the motor chip (15).

8. The fish tank control system based on single chip microcomputer according to claims 1-7, characterized in that: The first relay (4), the second relay (5), the third relay (6) and the fourth relay (7) are mounted on a PCB (1), and the analog-to-digital conversion chip (12) and the motor chip (15) are also connected to the PCB (1).