Multifunctional fish tank control system
By designing a multi-functional fish tank control system, it integrates a variety of detection and drive modules to achieve intelligent control of the water volume, light and feed of the fish tank, solving the problems of single function and high cost of the existing fish tank system, and providing a convenient fish environment. Manage and reduce system costs.
Patent Information
- Application Number
- CN202420419034.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing fish tank control system has single functions, is not intelligent, is large and expensive, and is not suitable for home use. It is difficult to realize multi-faceted automatic control and monitoring of the fish living environment.
A multifunctional fish tank control system is designed, which integrates a microprocessor, light detection module, water level detection module, feed weighing module, buzzer module, motor drive module, LED light module and stepper motor module. Through microprocessing The device realizes intelligent control of water, light and feed, communicates with the mobile APP through the Bluetooth module, and provides OLED display to display data.
It achieves diversified control of the water volume, light and feed of the fish tank, ensures the stability of the fish environment and user-friendly operation, reduces the cost of the smart fish tank, and is suitable for home use.
Smart Images

Figure CN221843517U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of fish tanks, and particularly relates to a multifunctional fish tank control system. Background Art
[0002] With the progress of society and the development of science and technology, people's living standards are gradually improving, and their requirements for the quality of life are getting higher and higher. As a way to improve the quality of life, smart home has attracted more and more attention and love.
[0003] Nowadays, there are all kinds of fish tanks in every home, but maintaining an environment suitable for fish life is a very energy-consuming task. There are many devices for purifying and improving the living environment of fish. At present, there are water temperature control systems, oxygenation systems and other related systems on the market, but there are many products with single functions, and most of them are not intelligent and not flexible to use. At the same time, the system is too large and expensive, and is not suitable for home use and promotion. Utility Model Content
[0004] The purpose of the utility model is to provide a multifunctional fish tank control system, which uses the intelligent fish tank control system as a part of the smart home, has functions such as automatic control and intelligent monitoring, and can provide users with a more convenient and comfortable fish farming experience.
[0005] The purpose of the utility model is achieved as follows: a multifunctional fish tank control system, comprising a microprocessor, a light detection module, a water level detection module, a feed weighing module, a buzzer module, a motor drive module, an LED light module and a stepper motor module. When the light detection module collects that the light intensity is less than a set value, the microprocessor sends an instruction to the LED light module to control the LED light to work; when the water level detection module collects that the water level is lower than the set value, the microprocessor sends an instruction to the motor drive module to control the water pump to work; sends an instruction to the motor drive module to control the oxygen pump to work; when the feed weighing module collects that the feeding amount is less than the set value, the microprocessor sends an instruction to the stepper motor module to drive the stepper motor to rotate and push the feed into the fish tank; when the feed weighing module collects that the remaining feed is less than twice the feeding amount, the microprocessor sends an instruction to the buzzer module to control the buzzer to work.
[0006] When the utility model is used, the microprocessor can compare the light intensity collected by the light detection module and the water level depth collected by the water level detection module with the set value. When the collected light intensity is less than the set value, a signal is output to light up the LED lamp for supplementary light (no supplementary light will be provided at night); when the collected water level is less than the set value, a signal is output to the motor drive module to start the water pump for water replenishment. When the water level reaches the set value, the water pump stops working. When there is water in the fish tank, the microprocessor outputs a signal to the motor drive module to make the oxygen pump work to continuously supply oxygen. The device can collect the remaining amount of feed according to the feed weighing module. When the remaining amount of feed collected is less than twice the feeding amount, it outputs a signal to the buzzer module, and the buzzer sounds an alarm to remind the user to add feed. When the feed weight is greater than twice the feeding amount, the buzzer stops the alarm. The difference in feed weight before and after feeding is the actual feeding amount. When the feeding amount is less than the set value, the microprocessor outputs a signal to the stepper motor module, and the stepper motor rotates and pushes the feed into the fish tank. When the feeding amount reaches the set value (with an error of ±5%), the stepper motor stops rotating. Compared with the prior art, the beneficial effects of the utility model are: it overcomes the defect of the singleness of the fish tank control system on the market, realizes the diversified control of water volume, light and feed, accurately grasps the feeding amount, and can also remind users to add feed.
[0007] As a further improvement of the utility model, it also includes a Bluetooth module, an OLED display module and a power supply module. The Bluetooth module is used to realize communication between the microprocessor and the mobile APP to adjust the set values of light intensity, water level and feeding amount. The OLED display module is used to display data of water level, feed weight and light intensity. The power supply module is used to power the microprocessor, light detection module, water level detection module, feed weighing module, buzzer module, motor drive module, LED light module, stepper motor module, Bluetooth module and OLED display module.
[0008] As a further improvement of the present invention, the microprocessor includes an STM32F103C8T6 single-chip microcomputer, and the power supply module includes a 12V power supply and a 3.3V power supply module.
[0009] As a further improvement of the utility model, the water level detection module includes a CS100A chip, a resistor R9, a capacitor C7~8, an 8MHz crystal oscillator, a transmitting end TX-40K and a receiving end RX-40K, the XO of the CS100A chip is connected to pin No. 1 of the crystal oscillator and then to a capacitor C8 and then to ground, the X1 of the CS100A chip is connected to pin No. 2 of the crystal oscillator and then to a capacitor C9 and then to ground, the ECHO pin of the CS100A chip is connected to the PB3 pin of the microprocessor, and the TRIG pin of the CS100A chip is connected to the PB4 pin of the microprocessor.
[0010] As a further improvement of the utility model, the feed weighing module includes an HX711 chip, a bridge circuit, resistors R10-17, a transistor Q2 and capacitors C10-14. The bridge circuit is connected to a bridge structure by four voltage-variable resistors. Pin INNA No. 7 of the HX711 chip is connected to capacitor C13 and then connected to pin INPA No. 8, and then connected to E- of J8. Pin INPA No. 8 of the HX711 chip is connected to resistor R12 and then connected to E+ of J8. Pin No. 10 INPB of the 711 chip is connected to capacitor C14 and then to pin No. 9 INNB, and then to A- of J8. Pin No. 9 INNB of the HX711 chip is connected to resistor R13 and then to A+ of J8. The VCC pin of the pin header J7 of the feed weighing module is connected to the 5V power supply of the microprocessor, the DOUT pin is connected to the PA12 pin of the microprocessor, the SCK pin is connected to the PA15 of the microprocessor, and the GND pin is connected to the GND of the microprocessor.
[0011] As a further improvement of the utility model, the motor drive module includes a TB6612 chip, capacitors C15~C19, a resistor R18 and an LED2, AO1 of the TB6612 chip is connected to capacitor C17 and then connected to AO2 for controlling the water pump motor; BO1 of the TB6612 chip is connected to capacitor C18 and then connected to BO2 for controlling the oxygen pump motor; AIN1 and AIN2 of the TB6612 chip are respectively connected to PA3 and PA4 of the microprocessor, BIN1 and BIN2 of the TB6612 chip are respectively connected to PA5 and PA6 of the microprocessor, PWMA, PWMB, STBY of the TB6612 chip are connected to a 5V power supply of the microprocessor, the VM pin of the TB6612 chip is externally connected to a 12V power supply, and the GND pin of the TB6612 chip and the negative pole of the 12V power supply are connected to the GND of the microprocessor.
[0012] As a further improvement of the utility model, the light detection module includes a BH1750 chip, capacitors C5~6, and resistors R7~8. Pin 1 VCC of the BH1750 chip is respectively connected to a 3.3V power supply and capacitor C5, the other end of the capacitor C5 is grounded, pin 2 ADDR of the BH1750 chip is connected to resistor R7 and then to ground, pin 3 of the BH1750 is grounded, pin 4 of the BH1750 is connected to pin PB11 of the microprocessor, pin 6 of the BH1750 is connected to pin PB10 of the microprocessor, pin 5 of the BH1750 is connected between resistor R8 and capacitor C6, the other end of the resistor R8 is connected to a 5V power supply, and the other end of the capacitor C6 is connected to GND of the microprocessor.
[0013] As a further improvement of the present invention, the buzzer module is an active buzzer and is high-level triggered. The buzzer module includes a buzzer circuit, which includes resistors R5, R6, transistor Q1 and diode D2; pin 1 of the buzzer circuit is connected to the power supply of the microprocessor, the BEEP pin is connected to the PB0 pin of the microprocessor, and pin 3 is connected to the GND of the microprocessor.
[0014] As a further improvement of the utility model, the Bluetooth module includes a HC-05 chip, a button, an LED1, resistors R1~4, capacitors C1~4 and a diode D1; the P108 pin of the HC-05 chip is connected to the resistor R2, the other end of the resistor R2 is connected in series with the anode of the LED1, and the cathode of the LED1 is connected to the ground; the P1011 pin of the HC-05 chip is connected in series with the resistor R1 and then connected to the ground, and the resistor R1 is connected in parallel with a switch connected to 3.3V; the TX pin of the HC-05 chip is connected to the PA10 pin of the microprocessor, and the RX pin of the HC-05 chip is connected to the PA9 pin of the microprocessor; the No. 1 pin EN and the No. 6 pin STATE of the J1 pin of the Bluetooth module are suspended, the No. 2 pin is connected to the 3.3V power supply of the microprocessor, and the No. 3 pin is connected to the GND of the microprocessor.
[0015] As a further improvement of the present invention, pins 1 and 2 of the J10 pin header of the OLED display module are respectively connected to the GND and 3.3V power supply of the microprocessor, and pins 3 and 4 are respectively connected to PB6 and PB7 of the microprocessor; pin 1 of the J13 pin header of the 3.3V power supply module is connected to the GND of the microprocessor, and pin 2 is connected to the 3.3V power supply of the microprocessor. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a structural block diagram of the utility model.
[0017] Figure 2 This is a circuit diagram of the Bluetooth module of the utility model.
[0018] Figure 3 The utility model is a circuit diagram of a buzzer module.
[0019] Figure 4 This is a circuit diagram of the light detection module of the utility model.
[0020] Figure 5 This is a circuit diagram of the water level detection module of the utility model.
[0021] Figure 6 This is the circuit diagram of the feed weighing module of the utility model.
[0022] Figure 7This is a circuit diagram of the motor drive module of the utility model.
[0023] Figure 8 This is the main control circuit diagram of the microprocessor of this practical control system. DETAILED DESCRIPTION
[0024] like Figure 1 As shown, a multifunctional fish tank control system includes a microprocessor, a light detection module, a water level detection module, a feed weighing module, a buzzer module, a motor drive module, an LED light module, a stepper motor module, a Bluetooth module, an OLED display module and a power supply module. The Bluetooth module is used to realize communication between the microprocessor and the mobile terminal APP to adjust the set values of light intensity, water level and feeding amount; when the light detection module collects that the light intensity is less than the set value, the microprocessor sends a command to the LED light module to control the LED light to work; when the water level detection module collects that the water level is lower than the set value, the microprocessor sends a command to the motor drive module to control the water pump to work; Send instructions to the motor drive module to control the operation of the oxygen pump; when the feed weighing module collects that the feeding amount is less than the set value, send instructions to the stepper motor module to drive the stepper motor to rotate and push the feed into the fish tank; when the feed weighing module collects that the remaining feed is less than twice the feeding amount, send instructions to the buzzer module to control the operation of the buzzer; the OLED display module is used to display data on water level height, feed weight and light intensity; the power supply module is used to power the microprocessor, light detection module, water level detection module, feed weighing module, buzzer module, motor drive module, LED light module, stepper motor module, Bluetooth module and OLED display module.
[0025] In this embodiment, the microprocessor includes an STM32F103C8T6 single chip microcomputer, and the power supply module includes a 12V power supply and a 3.3V power supply module.
[0026] like Figure 2 As shown, the Bluetooth module includes an HC-05 chip, a button, an LED1, resistors R1~4, capacitors C1~4 and a diode D1; the Pl08 pin of the HC-05 chip is connected to the resistor R2, the other end of the resistor R2 is connected in series with the anode of the LED1, and the cathode of the LED1 is connected to the ground; the Pl011 pin of the HC-05 chip is connected in series with the resistor R1 and then connected to the ground, and the resistor R1 is connected in parallel with a switch connected to 3.3V; the TX pin of the HC-05 chip is connected to the PA10 pin of the microprocessor, and the RX pin of the HC-05 chip is connected to the PA9 pin of the microprocessor; the No. 1 pin EN and the No. 6 pin STATE of the J1 pin of the Bluetooth module are left floating, the No. 2 pin is connected to the 3.3V power supply of the microprocessor, and the No. 3 pin is connected to the GND of the microprocessor.
[0027] like Figure 3As shown, the buzzer module is an active buzzer and is high-level triggered. The buzzer module includes a buzzer circuit, which includes resistors R5, R6, transistor Q1 and diode D2; pin 1 of the buzzer circuit is connected to the power supply of the microprocessor, the BEEP pin is connected to the PB0 pin of the microprocessor, and pin 3 is connected to the GND of the microprocessor.
[0028] like Figure 4 As shown, the light detection module includes a BH1750 chip, capacitors C5~6, and resistors R7~8. Pin 1 VCC of the BH1750 chip is connected to a 3.3V power supply and capacitor C5 respectively, and the other end of the capacitor C5 is grounded. Pin 2 ADDR of the BH1750 chip is connected to resistor R7 and then to ground. Pin 3 of the BH1750 is grounded. Pin 4 of the BH1750 is connected to pin PB11 of the microprocessor. Pin 6 of the BH1750 is connected to pin PB10 of the microprocessor. Pin 5 of the BH1750 is connected between resistor R8 and capacitor C6. The other end of resistor R8 is connected to a 5V power supply, and the other end of capacitor C6 is connected to GND of the microprocessor.
[0029] like Figure 5 As shown, the water level detection module includes a CS100A chip, a resistor R9, capacitors C7~8, an 8MHz crystal oscillator, a transmitting end TX-40K and a receiving end RX-40K. The XO of the CS100A chip is connected to the No. 1 pin of the crystal oscillator and then to a capacitor C8 and then to the ground. The X1 of the CS100A chip is connected to the No. 2 pin of the crystal oscillator and then to a capacitor C9 and then to the ground. The ECHO pin of the CS100A chip is connected to the PB3 pin of the microprocessor, and the TRIG pin of the CS100A chip is connected to the PB4 pin of the microprocessor.
[0030] like Figure 6 As shown, the feed weighing module includes an HX711 chip, a bridge circuit, resistors R10~17, a transistor Q2 and capacitors C10~14. The bridge circuit is connected to a bridge structure by four voltage-variable resistors. Pin 7 INNA of the HX711 chip is connected to capacitor C13 and then connected to pin 8 INPA, and then connected to E- of J8. Pin 8 INPA of the HX711 chip is connected to resistor R12 and then connected to E+ of J8. Pin 10 INPB of the HX711 chip is connected to capacitor C14 and then connected to pin 9 INNB, and then connected to A- of J8. Pin 9 INNB of the HX711 chip is connected to resistor R13 and then connected to A+ of J8. The VCC pin of the pin header J7 of the feed weighing module is connected to the 5V power supply of the microprocessor, the DOUT pin is connected to the PA12 pin of the microprocessor, the SCK pin is connected to PA15 of the microprocessor, and the GND pin is connected to the GND of the microprocessor.
[0031] like Figure 7As shown, the motor drive module includes a TB6612 chip, capacitors C15-C19, a resistor R18 and an LED2. AO1 of the TB6612 chip is connected to capacitor C17 and then to AO2 for controlling the water pump motor; BO1 of the TB6612 chip is connected to capacitor C18 and then to BO2 for controlling the oxygen pump motor; AIN1 and AIN2 of the TB6612 chip are connected to PA3 and PA4 of the microprocessor respectively, BIN1 and BIN2 of the TB6612 chip are connected to PA5 and PA6 of the microprocessor respectively, PWMA, PWMB, STBY of the TB6612 chip are connected to the 5V power supply of the microprocessor, the VM pin of the TB6612 chip is connected to an external 12V power supply, and the GND pin of the TB6612 chip and the negative pole of the 12V power supply are connected to the GND of the microprocessor.
[0032] Combine the following Figure 8The main control circuit of the microprocessor is described in detail. Pin 5 of the Bluetooth module J1 pin header is connected to the microprocessor's PA9, pin 4 is connected to the microprocessor's PA10, and pins 3 and 2 are connected to the microprocessor's GND and 3.3V power supply. Pin 2 of the buzzer module J2 pin header is connected to the microprocessor's PB0, and pins 1 and 3 are connected to the microprocessor's 5V power supply and GND respectively. Pin 3 Echo of the water level detection module (ultrasonic) J4 pin header is connected to the microprocessor's PB3, pin 2 Trig is connected to the microprocessor's PB4, and pins 1 and 4 are connected to the microprocessor's 5V power supply and GND respectively. Pin 1 of the stepper motor module J5 pin header is connected to the microprocessor's PA8, pin 2 is connected to the microprocessor's PB12, pin 3 is connected to the microprocessor's PB13, and pin 4 is connected to the microprocessor's PB14. Pins 1 and 4 of the feed weighing module J7 are connected to the 5V power supply and GND of the microprocessor, pin 2 is connected to the PA12 pin of the microprocessor, and pin 3 is connected to the PA15 pin of the microprocessor. Pin 8 of the J8 pin header of the motor drive module (TB6612) is connected to an external 12V power supply, pin 7 is connected to the 5V power supply of the microprocessor, pins 6 and 1 and the negative pole of the J12 pin header are connected to the GND of the microprocessor, pins 4 and 5 are connected to pins 2 and 1 of the J11 pin header of the water pump, and pins 2 and 3 are connected to pins 2 and 1 of the J15 pin header of the oxygen pump. Pins 1, 4, and 7 of the J9 pin header of the motor drive module (TB6612) are connected to the 5V power supply of the microprocessor, pins 2 and 3 are connected to the PA3 and PA4 pins of the microprocessor, pins 5 and 6 are connected to the PA5 and PA6 of the microprocessor, and pin 8 is connected to the GND of the microprocessor. The OLED display module J10 pins 1 and 2 are connected to the GND and 3.3V power supply of the microprocessor respectively, and the pins 3 and 3 are connected to the PB6 and PB7 of the microprocessor respectively. The 3.3V power supply module pin is J13, whose pin 1 is connected to the GND of the microprocessor and pin 2 is connected to the 3.3V power supply of the microprocessor. The LED light module pin is J14, whose pins 1 and 2 are connected to the PA0 and 5V power supply of the microprocessor respectively.
[0033] When the utility model is in use, the user sets the set values of light intensity, water level and feeding amount through the mobile APP; the single chip microcomputer controls the on and off of the LED light through the signal transmitted by the light detection module. Assuming that the LED fill light can be 1000Lx, if the external light intensity is lower than the set value, the LED will light up, and when it is higher than the set value plus 1000Lx, the LED light will automatically go out, and the LED light will not fill light at night; the single chip microcomputer receives the water level height signal measured by the water level monitoring module to determine whether the water pump needs to work. When the water level is lower than the set water level, a signal is sent to the motor drive module to drive the water pump to work. When the water level is higher than the set water level, the LED light will turn off. , the water pump stops working automatically; the single-chip computer receives the feed weight signal collected by the feed weighing module. When the remaining amount of collected feed is less than twice the feeding amount, a signal is output to the buzzer module. The buzzer sounds an alarm to remind that the feed needs to be supplemented. When the feed weight is greater than the feeding amount on both sides, the buzzer stops the alarm; the single-chip computer can also judge whether the stepper motor module is working through the data collected by the feed weighing module. When the feeding amount is less than the set value, the stepper motor rotates to push the feed into the fish tank. When the feeding amount reaches the set value (there can be an error of ±5%), the stepper motor stops rotating; the oxygen pump is directly connected to the motor drive module to continuously supply oxygen. The advantages of this utility model are: this system overcomes the defect that the fish tank system on the market is too large and not suitable for home use and control, reduces the cost of smart fish tanks, ensures the long-term stable operation of the fish tank ecosystem, and has certain practical significance for the development of smart homes.
[0034] The present invention is not limited to the above-mentioned embodiments. On the basis of the technical solution disclosed in the present invention, technicians in this field can make some substitutions and deformations to some technical features therein according to the disclosed technical content without creative labor, and these substitutions and deformations are all within the protection scope of the present invention.
Claims
1. A multifunctional fish tank control system, characterized in that: The invention comprises a microprocessor, a light detection module, a water level detection module, a feed weighing module, a buzzer module, a motor drive module, an LED lamp module and a stepper motor module. When the light detection module detects that the light intensity is less than a set value, the microprocessor sends an instruction to the LED lamp module to control the operation of the LED lamp; when the water level detection module detects that the water level is lower than a set value, the microprocessor sends an instruction to the motor drive module to control the operation of the water pump; and sends an instruction to the motor drive module to control the operation of the oxygen pump; when the feed weighing module detects that the feeding amount is less than a set value, the microprocessor sends an instruction to the stepper motor module to drive the stepper motor to rotate and push the feed into the fish tank; when the feed weighing module detects that the remaining feed amount is less than twice the feeding amount, the microprocessor sends an instruction to the buzzer module to control the operation of the buzzer.
2. A multifunctional fish tank control system according to claim 1, characterized in that: It also includes a Bluetooth module, an OLED display module and a power supply module. The Bluetooth module is used to realize communication between the microprocessor and the mobile APP to adjust the set values of light intensity, water level and feeding amount. The OLED display module is used to display data of water level, feed weight and light intensity. The power supply module is used to power the microprocessor, light detection module, water level detection module, feed weighing module, buzzer module, motor drive module, LED light module, stepper motor module, Bluetooth module and OLED display module.
3. A multifunctional fish tank control system according to claim 2, characterized in that: The microprocessor includes an STM32F103C8T6 single-chip microcomputer, and the power supply module includes a 12V power supply and a 3.3V power supply module.
4. A multifunctional fish tank control system according to claim 3, characterized in that: The water level detection module includes a CS100A chip, a resistor R9, capacitors C7~8, an 8MHz crystal oscillator, a transmitting end TX-40K and a receiving end RX-40K. The XO of the CS100A chip is connected to the No. 1 pin of the crystal oscillator and then to a capacitor C8 and then to the ground. The X1 of the CS100A chip is connected to the No. 2 pin of the crystal oscillator and then to a capacitor C9 and then to the ground. The ECHO pin of the CS100A chip is connected to the PB3 pin of the microprocessor, and the TRIG pin of the CS100A chip is connected to the PB4 pin of the microprocessor.
5. A multifunctional fish tank control system according to claim 3, characterized in that: The feed weighing module includes an HX711 chip, a bridge circuit, resistors R10-17, a transistor Q2 and capacitors C10-14. The bridge circuit is connected to a bridge structure by four voltage-variable resistors. Pin 7 INNA of the HX711 chip is connected to capacitor C13 and then connected to pin 8 INPA, and then connected to E- of J8. Pin 8 INPA of the HX711 chip is connected to resistor R12 and then connected to E+ of J8. Pin 10 INPB of the HX711 chip is connected to capacitor C14 and then connected to pin 9 INNB, and then connected to A- of J8. Pin 9 INNB of the HX711 chip is connected to resistor R13 and then connected to A+ of J8. The VCC pin of the pin row J7 of the feed weighing module is connected to the 5V power supply of the microprocessor, the DOUT pin is connected to the PA12 pin of the microprocessor, the SCK pin is connected to PA15 of the microprocessor, and the GND pin is connected to the GND of the microprocessor.
6. A multifunctional fish tank control system according to claim 3, characterized in that: The motor drive module includes a TB6612 chip, capacitors C15-C19, a resistor R18 and an LED2. AO1 of the TB6612 chip is connected to capacitor C17 and then connected to AO2 for controlling a water pump motor; BO1 of the TB6612 chip is connected to capacitor C18 and then connected to BO2 for controlling an oxygen pump motor; AIN1 and AIN2 of the TB6612 chip are connected to PA3 and PA4 of a microprocessor, respectively; BIN1 and BIN2 of the TB6612 chip are connected to PA5 and PA6 of the microprocessor, respectively; PWMA, PWMB and STBY of the TB6612 chip are connected to a 5V power supply of the microprocessor; the VM pin of the TB6612 chip is externally connected to a 12V power supply; the GND pin of the TB6612 chip and the negative pole of the 12V power supply are connected to the GND of the microprocessor.
7. A multifunctional fish tank control system according to claim 3, characterized in that: The light detection module includes a BH1750 chip, capacitors C5~6, and resistors R7~8. Pin 1 VCC of the BH1750 chip is respectively connected to a 3.3V power supply and capacitor C5, the other end of the capacitor C5 is grounded, pin 2 ADDR of the BH1750 chip is connected to resistor R7 and then to ground, pin 3 of the BH1750 is grounded, pin 4 of the BH1750 is connected to pin PB11 of the microprocessor, pin 6 of the BH1750 is connected to pin PB10 of the microprocessor, pin 5 of the BH1750 is connected between resistor R8 and capacitor C6, the other end of the resistor R8 is connected to a 5V power supply, and the other end of the capacitor C6 is connected to GND of the microprocessor.
8. A multifunctional fish tank control system according to claim 3, characterized in that: The buzzer module is an active buzzer and is high-level triggered. The buzzer module includes a buzzer circuit, and the buzzer circuit includes resistors R5, R6, transistor Q1 and diode D2; pin 1 of the buzzer circuit is connected to the power supply of the microprocessor, the BEEP pin is connected to the PB0 pin of the microprocessor, and pin 3 is connected to the GND of the microprocessor.
9. A multifunctional fish tank control system according to claim 3, characterized in that: The Bluetooth module includes an HC-05 chip, a button, an LED1, resistors R1~4, capacitors C1~4 and a diode D1; the Pl08 pin of the HC-05 chip is connected to the resistor R2, the other end of the resistor R2 is connected in series with the anode of LED1, and the cathode of LED1 is connected to the ground; the Pl011 pin of the HC-05 chip is connected in series with the resistor R1 and then connected to the ground, and the resistor R1 is connected in parallel with a switch connected to 3.3V; the TX pin of the HC-05 chip is connected to the PA10 pin of the microprocessor, and the RX pin of the HC-05 chip is connected to the PA9 pin of the microprocessor; the No. 1 pin EN and the No. 6 pin STATE of the J1 pin of the Bluetooth module are suspended, the No. 2 pin is connected to the 3.3V power supply of the microprocessor, and the No. 3 pin is connected to the GND of the microprocessor.
10. A multifunctional fish tank control system according to any one of claims 3 to 9, characterized in that: Pins 1 and 2 of the J10 pin header of the OLED display module are connected to the GND and 3.3V power supply of the microprocessor respectively, and pins 3 and 4 are connected to PB6 and PB7 of the microprocessor respectively; pin 1 of the J13 pin header of the 3.3V power supply module is connected to the GND of the microprocessor, and pin 2 is connected to the 3.3V power supply of the microprocessor.
