Low-power-consumption multi-mode intelligent flower maintenance device
By integrating multiple functional modules through a dual STM32 main control architecture and a multi-power supply switching module, the system solves the problems of single function and low energy efficiency of flower maintenance devices, realizes multimodal intelligent flower maintenance, and improves system stability and energy efficiency.
Patent Information
- Application Number
- CN202520559801.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2035-03-27
AI Technical Summary
Existing flower maintenance devices have limited functionality, lack comprehensive maintenance capabilities, have insufficient pin resources in the main control chip, low energy efficiency, cannot achieve multi-module collaborative operation, and have high power consumption.
It adopts a dual STM32 main control architecture, combined with a multi-power supply switching module and multiple functional modules, including supplementary lighting control, remote monitoring, insect repellent and protection, soil loosening, temperature control, communication and watering modules. Pin resources are allocated through dual STM32 main control chips, and dynamic switching of power supply mode is realized by using INA226 voltage detector and relay.
It realizes multimodal intelligent flower maintenance, solves the problem of functional dispersion, improves system stability and energy utilization efficiency, reduces power consumption, and simplifies the operation process.
Smart Images

Figure CN223958070U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of flower maintenance technology, and in particular to a low-power multimodal intelligent flower maintenance device. Background Technology
[0002] The statements in this section are merely background information relating to this disclosure and do not necessarily constitute prior art.
[0003] In existing technologies, flower care devices typically consist of independent modules such as environmental monitoring systems and automatic irrigation systems, resulting in relatively limited functionality. These devices usually only meet a portion or a few aspects of flower care needs. Due to the dispersed operation of the modules and the lack of effective system integration, multiple devices or equipment need to work together. However, existing devices lack intelligent flower care systems that integrate functions such as watering, supplemental lighting, pest control, and soil loosening. Furthermore, with the integration of functional modules, especially the introduction of camera modules, the required number of pins is increased, leading to insufficient pin resources for the STM32F1 series main control chip, making it difficult to simultaneously meet the needs of multiple modules working collaboratively. At the same time, the integrated device experiences a significant increase in power consumption and low energy efficiency, and cannot achieve automatic switching between different power supply methods. Utility Model Content
[0004] The purpose of this invention is to solve the problems of existing flower care devices, such as single function, lack of comprehensive care functions, insufficient main control chip pin resources, and low energy utilization efficiency, and to provide a low-power multimodal intelligent flower care device.
[0005] To achieve the above objectives, this utility model provides a low-power multimodal intelligent flower care device, comprising: a dual STM32 main control architecture, a power supply module, and a multi-power supply switching module;
[0006] The power supply module includes a solar panel (115) and a lithium battery (116);
[0007] The dual STM32 main control architecture includes an image acquisition main control chip (301) and an execution function main control chip (302); the PA9 pin of the image acquisition main control chip (301) is connected to the PA10 pin of the execution function main control chip (302), and the PA10 pin of the image acquisition main control chip (301) is connected to the PA9 pin of the execution function main control chip (302).
[0008] The multi-power supply switching module includes: an INA226 voltage detector, a first relay, a second relay, and an LM1117-3.3V module; the VIN pin of the INA226 voltage detector is connected to the positive terminal of the solar panel (115), and the GND pin is connected to the negative terminal of the solar panel (115); the VCC terminal of the first relay is connected to the VOUT pin of the INA226 voltage detector, and the GND terminal is connected to the GND pin of the INA226; the VCC terminal of the second relay is connected to the positive terminal of the lithium battery (116), and the GND terminal is connected to the negative terminal of the lithium battery; the VCC terminal of the input side of the LM1117-3.3V module is connected to the COM terminal of the first and second relays and outputs them together; the GND terminal of the input side of the LM1117-3.3V module is connected together with the GND terminal of the INA226 voltage detector (the negative terminal of the solar panel) and the GND terminal of the lithium battery; the output side is connected to the VCC pin of the image acquisition main control chip (301) and the execution function main control chip (302).
[0009] Furthermore, it also includes breadboard A and breadboard B; the power rails on both sides of breadboard A are 3.3V and GND, and the power rails on both sides of breadboard B are 5V and GND.
[0010] The 3.3V power rail of breadboard A is connected to the VCC terminal of the LM1117-3.3V output side of the multi-power supply switching module, and the GND power rail of breadboard A is connected to the GND terminal of the LM1117-3.3V output side.
[0011] The 5V power rail of the breadboard B is connected to the COM terminals of the first and second relays and outputs together. The GND power rail of the breadboard B is connected to the GND terminal (negative electrode of the solar panel) of the INA226 voltage detector and the GND terminal of the lithium battery.
[0012] Furthermore, it also includes a supplementary lighting control module, which includes: a BH1750 light sensor (102), an LED supplementary light (101), and a main control chip for execution functions (302);
[0013] The BH1750 light sensor (102) is transmitted via I 2 The C clock signal input terminal is connected to the PB13 pin of the main control chip (302) for execution functions, and is connected via I... 2 The C data signal electrical signal input terminal is connected to the PB12 pin of the main control chip (302) for the execution function;
[0014] The LED fill light (101) is connected to the PB8 pin of the main control chip (302) for executing functions.
[0015] Furthermore, it also includes a remote monitoring module, which includes an image acquisition main control chip (301) and an OV7670 camera module (107);
[0016] The image acquisition main control chip (301) is connected to the OV7670 camera module (107) via a GPIO port through DuPont wires.
[0017] Furthermore, it also includes an insect repellent and protection module, which includes: an execution function main control chip (302), an ultrasonic transmitter (109), and a dual-axis gimbal;
[0018] The Trig pin of the ultrasonic transmitter (109) is connected to the PA4 pin of the main control chip (302) for executing functions;
[0019] The dual-axis gimbal includes a first SG90 servo and a second SG90 servo. The first SG90 servo is fixed above the dual-axis gimbal, and the second SG90 servo is fixed below the gimbal. The SIG pin of the first SG90 servo is connected to PB10 of the execution function main control chip (302), and the SIG pin of the second SG90 servo is connected to PA1 of the execution function main control chip (302).
[0020] Furthermore, it also includes a soil loosening module, which includes: a main control chip (302) for executing functions, a third SG90 servo motor (113), and a soil loosening fork (114);
[0021] The SIG pin of the third SG90 servo (113) is connected to the PA0 pin of the main control chip (302) for execution functions;
[0022] The ripping fork (114) is fixed on the shaft of the third SG90 servo motor (113).
[0023] Furthermore, it also includes a temperature control module, which includes: an execution function main control chip (302), a DS18B20 temperature sensor (106), a heating element, a cooling element, and a cooling fan;
[0024] The DQ pin of the DS18B20 temperature sensor (106) is connected to the PA1 pin of the main control chip (302) for executing functions;
[0025] The heating element and the cooling element are connected to the execution function main control chip (302) via a dual-channel relay; the IN1 and IN2 pins of the dual-channel relay are respectively connected to the PB0 and PB1 pins of the execution function main control chip (302), the COM1 terminal is connected to the positive electrode of the heating element, and the COM2 terminal is connected to the positive electrode of the cooling element.
[0026] The cooling chip is wound and connected to the cooling fan.
[0027] Furthermore, it also includes a communication module, which includes: an execution function main control chip (302) and an ESP-01S WiFi module (117);
[0028] The TX pin of the ESP-01SWiFi module (117) is connected to the PA3 pin of the main control chip (302) for execution functions, and the RX pin is connected to the PA2 pin.
[0029] Furthermore, it also includes a watering module, which includes: a main control chip (302) for executing functions, a YL69 soil moisture sensor (103), a third relay, and a water pump;
[0030] The AO pin of the YL69 soil moisture sensor (103) is connected to the PA5 pin of the main control chip (302) for executing functions;
[0031] The IN pin of the third relay is connected to the PA6 pin of the main control chip (302) for the execution function, and the NO terminal is connected to the positive terminal of the water pump (104); the switch terminal of the third relay is connected to the positive terminal of the water pump.
[0032] Compared with existing technologies, the low-power multimodal intelligent flower care device provided by this utility model has the following beneficial effects:
[0033] (1) By deeply coupling the seven modules of supplementary lighting control module, insect repellent and protection module, remote monitoring module, soil loosening module, temperature control module, communication module and watering module with the STM32F103C8T6 main control chip, a multi-task collaborative control system is constructed, which solves the problem of single function and scattered deployment of traditional intelligent agricultural equipment.
[0034] (2) By adopting a dual STM32 main control architecture, the image acquisition and execution functions are separated, effectively allocating pin resources and avoiding the problem of limited number of pins in a single MCU.
[0035] (3) By adopting a multi-power supply switching module and combining it with the INA226 battery monitoring module, dynamic management of power supply is realized, reducing the single dependence on lithium battery power. By introducing solar panels, the device can flexibly switch power supply modes according to environmental conditions, ensuring stable operation under different weather conditions such as sunny days and rainy days. Attached Figure Description
[0036] The accompanying drawings, which form part of this disclosure, are used to provide a further understanding of this disclosure. The illustrative embodiments of this disclosure and their descriptions are used to explain this disclosure and do not constitute an undue limitation of this disclosure.
[0037] Figure 1 A schematic diagram of a low-power, multimodal intelligent flower care device provided by this utility model;
[0038] Figure 2 Wiring design diagram for the multi-power supply switching module provided by this utility model;
[0039] Figure 3 The design diagram of the dual STM32 architecture provided for this utility model. Detailed Implementation
[0040] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present utility model. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments.
[0041] Example 1
[0042] like Figure 1 and Figure 3 This utility model provides a low-power multimodal intelligent flower maintenance device, which adopts a dual STM32 main control architecture and is prototyped based on a breadboard. The dual STM32 main control architecture includes two STM32F103C8T6 main control chips, which are respectively referred to as the image acquisition main control chip and the execution function main control chip. The two communicate via USART serial communication, with the following connection method: the PA9 pin (USART1_TX) of the image acquisition main control chip is connected to the PA10 pin (USART1_RX) of the execution function main control chip via a DuPont wire; simultaneously, the PA10 pin (USART1_RX) of the image acquisition main control chip is connected to the PA9 pin (USART1_TX) of the execution function main control chip via a DuPont wire. The USART communication baud rate is set to 115200bps, the data bit length is 8 bits, there is no parity bit, and the stop bit length is 1 bit. The breadboard includes breadboard A and breadboard B. The two power rails of breadboard A are 3.3V and GND respectively, and are used to support the image acquisition main control chip and the execution function main control chip to realize core control. The two power rails of breadboard B are 5V and GND respectively, providing stable power support for other functional modules that require 5V voltage to operate. Breadboard A's 3.3V power rail is connected to the VCC terminal of the LM1117-3.3V output side of the multi-power supply switching module, and Breadboard A's GND power rail is connected to the GND terminal of the LM1117-3.3V output side. Breadboard B's 5V power rail is connected to the combined output of the COM terminals of the first and second relays, and Breadboard B's GND power rail is combined with the GND terminal of the INA226 voltage detector (solar panel negative terminal) and the GND terminal of the lithium battery. The STM32F103C8T6 main control chip integrates a multi-power supply switching module, a supplementary lighting control module, a remote monitoring module, an insect repellent and protection module, a soil loosening module, a temperature control module, a communication module, and a watering module.
[0043] By integrating seven modules—supplementary lighting, pest control, soil loosening, temperature control, watering, power supply switching, and remote monitoring—into a single device, the problem of fragmented functions and the need for multiple devices to work together in traditional flower care equipment is solved, reducing user purchase and management costs and simplifying the operation process.
[0044] The system employs dual STM32F103C8T6 main control chips (with separate image acquisition and execution functions), effectively allocating pin resources and avoiding functional limitations caused by insufficient pins in a single main control chip, thereby improving system stability and multitasking capabilities.
[0045] Each functional module is powered by separate rails via breadboard A (3.3V) and breadboard B (5V), with clear physical connections that facilitate maintenance and upgrades.
[0046] like Figure 2 The multi-power supply switching module includes an INA226 voltage detector, two relays, and an LM1117-3.3V module. The INA226 voltage detector is used to detect the input voltage of the solar panel in real time. The relays include a first relay and a second relay, which are respectively connected to the solar panel power supply circuit and the lithium battery power supply circuit to switch the main power supply source. The LM1117-3.3V module is used to regulate the 5V voltage to 3.3V to provide a stable power supply for external devices. The VCC terminal of the input side of the LM1117-3.3V module is connected to the COM terminal of the first relay and the second relay for combined output. The GND terminal of the input side of the LM1117-3.3V module is connected to the GND terminal of the INA226 voltage detector (solar panel negative terminal) and the GND terminal of the lithium battery. The output side is connected to the VCC pin of the image acquisition main control chip (301) and the execution function main control chip (302). The INA226 voltage detector is connected as follows: the VIN pin is connected to the positive terminal of the solar panel, and the GND pin is connected to the negative terminal of the solar panel, forming an input power supply circuit; the VOUT pin is connected to the VCC terminal of the first relay, and the GND pin is connected to the GND terminal of the first relay, forming a power supply input circuit for the first relay; the SDA pin is connected to the PB9 pin of the main control chip, and the SCL pin is connected to the PB8 pin of the main control chip, via I... 2The C-bus enables voltage and data communication. The relays are connected as follows: First relay: VCC terminal connected to the VOUT pin of INA226, GND terminal connected to the GND pin of INA226, powered by a solar panel; IN control terminal connected to the PB14 pin of the main control chip to receive switching commands; NO terminal connected to the VOUT pin of INA226 (powered by the solar panel); COM terminal connected to the COM terminal of the second relay to form the final power output. Second relay: VCC terminal connected to the positive terminal of the lithium battery, GND terminal connected to the negative terminal of the lithium battery, powered by the lithium battery; IN control terminal connected to the PB15 pin of the main control chip to receive switching commands; NO terminal connected to the positive terminal of the lithium battery; COM terminal connected to the COM terminal of the first relay to form the final 5V power output. The LM1117-3.3V module includes an input side: a 5V VCC terminal connected to the combined COM terminals of the first and second relays for output; and a 5V GND terminal connected to the combined GND of the INA226 voltage detector (solar panel negative terminal) and the lithium battery. The output side consists of a 3.3V output from both the 3.3V VCC and 3.3V GND terminals. The main control chip's power supply logic is as follows: the VCC pin is connected to the 3.3V VCC output of the LM1117-3.3V module to receive power from the solar panel or lithium battery; the GND pin is connected to the 3.3V GND output of the LM1117-3.3V module, forming a complete power supply loop.
[0047] The multi-power supply switching module (solar panel and lithium battery) combined with the INA226 voltage detector enables dynamic switching of power supply. On sunny days, solar power is used first, and on cloudy or rainy days, it automatically switches to lithium battery, which significantly reduces energy waste and extends the equipment's battery life.
[0048] The supplemental lighting control module includes a main control chip for execution functions, a BH1750 light sensor, and an LED supplemental light; all components are connected using a breadboard. The BH1750 light sensor connects via I... 2 The C bus interacts with the main control chip for execution functions, and the specific connection method is as follows: I 2 The C clock signal (SCL) electrical signal input terminal is connected to pin PB13 of the main control chip GPIOB for execution functions; I 2 The C data signal (SDA) electrical signal input terminal is connected to pin PB12 of the GPIOB of the main control chip for the execution function; the power supply terminal (VCC) of the BH1750 light sensor is connected to the 3.3V power supply rail of breadboard A, and the ground terminal (GND) is connected to the GND power supply rail of breadboard A. The LED fill light is connected to pin PB8 of the GPIOB port of the main control chip for the execution function via DuPont wires.
[0049] The supplementary lighting module is fixedly connected to the LED supplementary light via a BH1750 light sensor, enabling real-time monitoring and automatic adjustment of light intensity.
[0050] The remote monitoring module includes an image acquisition main control chip, an execution function main control chip, and an OV7670 (with FIFO) camera module; all component connections are built on a breadboard. The image acquisition main control chip is connected to the OV7670 (with FIFO) camera module via GPIO ports using DuPont wires. The specific connection method is as follows: VSYNC signal is connected to PA8, WRST pin is connected to PB0, WREN (WR / WEN) pin is connected to PB12, RCK pin is connected to PA11, RRST pin is connected to PB1, CS (OE) pin is connected to PA15, data pins D0-D7 are connected to PA0-PA7 respectively, clock signal SIOC is connected to PB10, data signal SIOD is connected to PB11, the power supply terminal (VCC) of the OV7670 (with FIFO) camera module is connected to the 3.3V power supply rail of breadboard A, and the ground terminal (GND) is connected to the GND power supply rail of breadboard A.
[0051] The OV7670 camera module is connected to the fixed pins of the image acquisition main control chip (D0-D7 correspond to PA0-PA7). Combined with the USART2 serial communication design of the ESP-01S WiFi module, it realizes real-time compression of image data and cloud upload, and supports remote status monitoring.
[0052] The insect repellent and protection module includes a main control chip, an ultrasonic transmitter, a gimbal, and a first and a second SG90 servo. All components are connected via a breadboard. The Trig pin of the ultrasonic transmitter is connected to PA4 of the main control chip via a DuPont wire to trigger the transmission of ultrasonic signals. VCC is connected to the 5V power rail of breadboard B. GND is connected to the GND power rail of breadboard B. The first SG90 servo is fixed above the gimbal, controlling its up-and-down rotation. SIG is connected to PB10 (TIM2_CH3) of the main control chip via a DuPont wire to transmit PWM control signals. The second SG90 servo is fixed below the gimbal, controlling its left-and-right rotation. SIG is connected to PA1 (TIM2_CH2) of the main control chip via a DuPont wire to transmit PWM control signals. The power lines (VCC) of the first SG90 servo and B are connected to the 5V power rail of breadboard B via DuPont wires to provide power to the servos. The ground wire (GND) is connected to the GND power rail of breadboard B via a DuPont wire.
[0053] The insect repellent module is mechanically linked to the dual-axis gimbal via an ultrasonic transmitter. The first SG90 servo motor and the second SG90 servo motor control the dual-axis gimbal to rotate up and down and left and right, respectively, to achieve multi-directional insect repellent and expand the insect repellent range.
[0054] The soil tackling module includes a main control chip for execution functions, a soil tack fork, and a third SG90 servo motor; all component connections are built on a breadboard. The soil tack fork is mounted on the servo motor; the SIG pin of the SG90 servo motor is connected to the PA0 (TIM2_CH1) pin of the GPIOA of the main control chip for execution functions via a DuPont wire. The main control chip for execution functions controls the servo motor to rotate the soil tack fork by generating a PWM signal. The power supply line (VCC) of the third SG90 servo motor is connected to the 5V power rail of breadboard B. The ground line (GND) is connected to the GND power rail of breadboard B.
[0055] The soil loosening module achieves 180° rotation for loosening soil through a rigid connection between a servo motor and the loosening fork, effectively addressing soil compaction issues. The SG90 servo motor in the soil loosening module is connected to the loosening fork to control the soil loosening process.
[0056] The temperature control module includes a main control chip, a DS18B20 temperature sensor, a heating element, a cooling element, and a cooling fan; all components are connected via a breadboard. The DQ pin of the DS18B20 temperature sensor is connected to the PA1 pin of the main control chip via a DuPont wire for temperature data transmission; the VCC pin of the DS18B20 is connected to the 3.3V power rail of breadboard A, and the GND pin is connected to the GND power rail of breadboard A. The heating element and cooling element are connected to the main control chip via a dual-channel relay. The VCC pin of the dual-channel relay is connected to the 5V power rail of breadboard B, the GND pin is connected to the GND power rail of breadboard B, the IN1 pin is connected to the PB0 pin of the main control chip via a DuPont wire for controlling the operating state of the heating element, and the IN2 pin is connected to the PB1 pin via a DuPont wire for controlling the operating state of the cooling element. The COM1 terminal of the dual-channel relay is connected to the positive terminal of the heating element, and the NO1 terminal is connected to the 5V power supply rail of breadboard B; the COM2 terminal is connected to the positive terminal of the cooling element, and the NO2 terminal is connected to the 5V power supply rail of breadboard B. The negative terminals of both the heating element and the cooling element are connected to the GND power supply rail of breadboard B. In addition, to ensure the cooling effect, the cooling element and the cooling fan are connected by a winding method so that both are powered on at the same time.
[0057] The temperature control module precisely controls the start and stop of the heating and cooling elements through a mechanical connection between the DS18B20 sensor and a dual-channel relay.
[0058] The communication module includes an execution function main control chip and an ESP-01S WiFi module; all component connections are built on a breadboard. The TX pin of the ESP-01S WiFi module is connected to the execution function main control chip USART2_RX (GPIOA's PA3 pin) via a DuPont wire; the RX pin is connected to the execution function main control chip USART2_TX (GPIOA's PA2 pin) via a DuPont wire. The power supply terminal (VCC) of the ESP-01S WiFi module is connected to the 3.3V power supply rail of breadboard A, and the ground terminal (GND) is connected to the GND power supply rail of breadboard A.
[0059] The watering module includes a YL69 soil moisture sensor, a third relay, and a water pump. The YL69 soil moisture sensor interacts with the main control chip via analog signals. All component connections are built on a breadboard. The specific connection method is as follows: the analog signal (AO) output terminal is connected to pin PA5 of the main control chip GPIOA; the power supply terminal (VCC) of the YL69 soil moisture sensor is connected to the 5V power supply rail of breadboard B, and the ground terminal (GND) is connected to the GND power supply rail of breadboard B. The water pump is controlled by the main control chip via the third relay. The control signal input terminal (IN) of the third relay is connected to pin PA6 of the main control chip GPIOA; the power supply terminal (DC+) of the third relay is connected to the 5V power supply rail of breadboard B; and the ground terminal (DC-) is connected to the GND power supply rail of breadboard B. The switch terminal (NO) of the third relay is connected to the positive terminal of the water pump, the common terminal (COM) is connected to the 5V power supply rail of breadboard B, and the negative terminal of the water pump is connected to the GND power supply rail of breadboard B.
[0060] The watering module is directly connected to the third relay via the YL69 soil moisture sensor to ensure that the water pump starts and stops automatically within the soil moisture threshold.
[0061] The working principle of this utility model is as follows:
[0062] like Figure 1 , Figure 2 , Figure 3 When the INA226 voltage detector detects that the output voltage of the solar panel (115) is higher than the set threshold, the main control chip (302) executes the function via I... 2The controller receives voltage data and controls the PB14 pin to output a high level, driving the first relay to engage, making the NO1 terminal and COM1 terminal conduct, and the system switches to the solar panel power supply mode. At the same time, the main control chip controls the PB15 pin to output a low level, making the second relay disengage, cutting off the lithium battery power supply path to reduce lithium battery consumption. When the INA226 voltage detector detects that the output voltage of the solar panel (115) is lower than the set threshold (e.g., at night or on a cloudy day), the main control chip (302) controls the PB14 pin to output a low level, making the first relay disengage, cutting off the solar panel power supply path; at the same time, it controls the PB15 pin to output a high level, making the second relay engage, making the NO2 terminal and COM2 terminal conduct, and the system automatically switches to the lithium battery (116) power supply mode to ensure normal operation of the device. In addition, the LM1117-3.3V module outputs a 5V voltage through the combined output of the COM terminals of the first and second relays, and outputs a 3.3V voltage at the output terminal to provide a stable power supply for the main control chip.
[0063] like Figure 1 , Figure 3The crop growth images acquired by the OV7670 camera module (107) are compressed by the image acquisition main control chip (301) and transmitted to the execution function main control chip (302) through the USART1 serial port PA9 / TX (303) and PA10 / RX (304). The execution function main control chip (302) uploads the image data to the cloud processing system through the ESP01S WiFi module (117). When the cloud image recognition system detects soil compaction characteristics, it returns a high-level signal to the execution function main control chip (302). After receiving the high-level signal, the execution function main control chip (302) activates channel 1 (PA0) of the TIM2 timer to output a PWM signal (pulse width 2ms) with a period of 20ms and a duty cycle of 10%. This drives the third SG90 servo motor (113) to drive the loosening fork (114) to complete a 180° rotation loosening action. After the loosening fork completes 3 reciprocating motions, the PA0 pin automatically returns to a low level, and the servo motor returns to the initial angle. When the cloud-based analysis of image data identifies pest activity characteristics, the main control chip (302) outputs a 10μs-width 5V TTL pulse signal through the PA4 pin, triggering the ultrasonic transmitter (109) to generate a 40kHz insect-repelling sound wave and simultaneously start the dual-axis gimbal scanning program: Vertical direction control: The first SG90 servo drives the gimbal to complete the 0°→90°→0° pitch scan (one-way time 1.2 seconds) by outputting a 15ms period, 50% duty cycle PWM signal through PB10 (TIM2_CH3). Horizontal direction control: The second SG90 servo drives the gimbal to complete the 0°→120°→0° horizontal scan (one-way time 2 seconds) by outputting a 20ms period, 75% duty cycle PWM signal through PA1 (TIM2_CH2). When the duration of ultrasonic transmission reaches the 300-second threshold preset by the cloud, the PA4 pin automatically drops to a low level, terminating the insect-repelling operation.
[0064] like Figure 1 and Figure 3When the BH1750 (102) light sensor detects that the ambient light intensity is lower than the set value, the execution function main control chip (302) receives the data from the light sensor via I2C and controls the PB8 pin to output a high level, driving the LED supplemental light (101) to light up and provide supplemental lighting for the flowers. When the ambient light intensity reaches the set value, the execution function main control chip (302) controls the PB8 pin to output a low level, turning off the LED supplemental light to save energy. In addition, users can manually adjust the light threshold or directly control the on / off state of the LED supplemental light (101) via the cloud to adapt to the growth needs of different flowers. When the DS18B20 temperature sensor (106) detects that the ambient temperature is lower than the set value, the execution function main control chip controls PB0 to output a high level, the dual relays are energized, NO1 and COM1 are shorted, and the heating element (102) starts working; when the ambient temperature is higher than the set value, the execution function main control chip (302) controls PB1 to output a high level, the dual relays are energized, NO2 and COM2 are shorted, and the cooling element (112) and the cooling fan (111) start working. When the analog voltage value output by the YL69 soil moisture sensor (103) is lower than the humidity threshold set by the cloud, the execution function main control chip outputs a high level on pin PA6, driving the third relay to energize, and the water pump (104) starts to supply water; the user can manually open the water tank door (105) to control the addition of water to the tank. The water pump (104) supplies water until the output voltage of the soil moisture sensor reaches the upper limit of the threshold set by the cloud, at which point the PA6 pin outputs a low level, and the water pump (104) stops working.
[0065] In the description of this specification, the terms "connection", "installation", "fixing", "setting", etc. are interpreted in a broad sense. For example, "connection" can be a fixed connection or an indirect connection through an intermediate component without affecting the relationship between components and the technical effect. It can also be an integral connection or a partial connection. In such cases, those skilled in the art can understand the specific meaning of the above terms in this utility model or utility model according to the specific circumstances.
[0066] The above description is only a preferred embodiment of the present utility model, but the protection scope of the present utility model is not limited thereto. Any equivalent substitutions or changes made by those skilled in the art within the technical scope disclosed in the present utility model, based on the technical solution and the inventive concept of the present utility model, should be included within the protection scope of the present utility model.
Claims
1. A low-power, multimodal intelligent flower care device, characterized in that, include: Dual STM32 main control architecture, power supply module and multi-power supply switching module; The dual STM32 main control architecture includes an image acquisition main control chip (301) and an execution function main control chip (302); the PA9 pin of the image acquisition main control chip (301) is connected to the PA10 pin of the execution function main control chip (302), and the PA10 pin of the image acquisition main control chip (301) is connected to the PA9 pin of the execution function main control chip (302). The power supply module includes a solar panel (115) and a lithium battery (116); The multi-power supply switching module includes: an INA226 voltage detector, a first relay, a second relay, and an LM1117-3.3V module; the VIN pin of the INA226 voltage detector is connected to the positive terminal of the solar panel (115), and the GND pin is connected to the negative terminal of the solar panel (115); the VCC terminal of the first relay is connected to the VOUT pin of the INA226 voltage detector, and the GND terminal is connected to the GND pin of the INA226; the VCC terminal of the second relay is connected to the positive terminal of the lithium battery (116), and the GND terminal is connected to the negative terminal of the lithium battery; the VCC terminal of the input side of the LM1117-3.3V module is connected to the COM terminal of the first and second relays and output together; the GND terminal of the input side of the LM1117-3.3V module is connected together with the GND terminal of the INA226 voltage detector and the GND terminal of the lithium battery; the output side is connected to the VCC pin of the image acquisition main control chip (301) and the execution function main control chip (302).
2. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes breadboard A and breadboard B; The power rails on both sides of breadboard A are 3.3V and GND, and the power rails on both sides of breadboard B are 5V and GND. The 3.3V power rail of breadboard A is connected to the VCC terminal of the LM1117-3.3V output side of the multi-power supply switching module, and the GND power rail of breadboard A is connected to the GND terminal of the LM1117-3.3V output side. The 5V power rail of breadboard B is connected to the COM terminals of the first and second relays for combined output; the GND power rail of breadboard B is connected to the GND terminal of the INA226 voltage detector and the GND terminal of the lithium battery.
3. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a supplementary lighting control module, which includes: a BH1750 light sensor (102), an LED supplementary light (101), and a main control chip for execution functions (302); The BH1750 light sensor (102) is transmitted via I 2 The C clock signal input terminal is connected to the PB13 pin of the main control chip (302) for execution functions, and is connected via I... 2 The C data signal electrical signal input terminal is connected to the PB12 pin of the main control chip (302) for the execution function; The LED fill light (101) is connected to the PB8 pin of the main control chip (302) for executing functions.
4. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a remote monitoring module, which includes an image acquisition main control chip (301) and an OV7670 camera module (107); The image acquisition main control chip (301) is connected to the OV7670 camera module (107) via a GPIO port through DuPont wires.
5. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes an insect repellent and protection module, which includes: an execution function main control chip (302), an ultrasonic transmitter (109), and a dual-axis gimbal; The Trig pin of the ultrasonic transmitter (109) is connected to the PA4 pin of the main control chip (302) for executing functions; The dual-axis gimbal includes a first SG90 servo and a second SG90 servo. The first SG90 servo is fixed above the dual-axis gimbal, and the second SG90 servo is fixed below the gimbal. The SIG pin of the first SG90 servo is connected to PB10 of the execution function main control chip (302), and the SIG pin of the second SG90 servo is connected to PA1 of the execution function main control chip (302).
6. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a soil loosening module, which includes: a main control chip (302) for executing functions, a third SG90 servo motor (113) and a soil loosening fork (114); The SIG pin of the third SG90 servo (113) is connected to the PA0 pin of the main control chip (302) for execution functions; The ripping fork (114) is fixed on the shaft of the third SG90 servo motor (113).
7. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a temperature control module, which includes: a main control chip for execution functions (302), a DS18B20 temperature sensor (106), a heating element, a cooling element, and a cooling fan; The DQ pin of the DS18B20 temperature sensor (106) is connected to the PA1 pin of the main control chip (302) for executing functions; The heating element and the cooling element are connected to the execution function main control chip (302) via a dual-channel relay; the IN1 and IN2 pins of the dual-channel relay are respectively connected to the PB0 and PB1 pins of the execution function main control chip (302), the COM1 terminal is connected to the positive electrode of the heating element, and the COM2 terminal is connected to the positive electrode of the cooling element. The cooling chip is wound and connected to the cooling fan.
8. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a communication module, which includes: an execution function main control chip (302) and an ESP-01S WiFi module (117); The TX pin of the ESP-01SWiFi module (117) is connected to the PA3 pin of the main control chip (302) for execution functions, and the RX pin is connected to the PA2 pin.
9. The low-power multimodal intelligent flower care device as described in claim 1, characterized in that, It also includes a watering module, which includes: a main control chip (302) for executing functions, a YL69 soil moisture sensor (103), a third relay and a water pump; The AO pin of the YL69 soil moisture sensor (103) is connected to the PA5 pin of the main control chip (302) for executing functions; The IN pin of the third relay is connected to the PA6 pin of the main control chip (302) for the execution function, and the NO terminal is connected to the positive terminal of the water pump (104); the switch terminal of the third relay is connected to the positive terminal of the water pump.