A kind of high integration Household leak-proof water installations based on FPGA
Technical field
The utility model relates to intelligent appliance field, specifically a kind of high integration domestic water-proof based on FPGA
Device.
Background technique
Currently, people's lives level greatly improves, become more to focus on quality of the life.To cope with this trend, largely
Smart home product occur.But equipment is controlled in most basic hot-water heating field lack of wisdom, if washbasin has anti-overflow water hole,
If fire hose head fail, unmanned discovery can waste a large amount of water resource in family, if it happens such as cistern water-supply apparatus
Failure, can constantly upper water, and be discharged by closestool sewer pipe, due to substantially without sound and spilling water phenomenon, user be difficult and
Shi Faxian failure simultaneously closes sluice, therefore when how to realize water appliance in family, sluice is intelligently automatically closed and intelligent reminding is used
Family, it is ensured that user has found in time, on-call maintenance is current technical problem urgently to be solved.
Summary of the invention
The technical assignment of the utility model is to provide a kind of high integration Household leak-proof water installations based on FPGA, to solve
When how to realize water appliance in family, sluice and intelligent reminding user is intelligently automatically closed, it is ensured that user has found, in time in time
The problem of maintenance.
The technical assignment of the utility model realizes in the following manner, a kind of high integration Household leak-proof based on FPGA
Water installations, including shell are provided with FPGA control module, Electromagnetic Flow module, wireless charging module and wireless communication in shell
Module, shell lower section are provided with electromagnetism sluice, and FPGA control module includes fpga chip, power management module and SPI FLASH
Chip, fpga chip connect SPI FLASH chip, and fpga chip connects wireless communication module, FPGA by Rapid I/O interface
Chip connects Electromagnetic Flow module by serial ports, and fpga chip is separately connected electromagnetism sluice by relay;Power management module
It is separately connected wireless charging module, wireless communication module, Electromagnetic Flow module, electromagnetism sluice, relay and fpga chip power supply;
The user that FPGA control module is used to receive wireless communication module transmission sets controlled device water consumption information and will
Information is stored into SPI FLASH chip, counts present period total flow according to the real-time traffic that Electromagnetic Flow module uploads, when
Total flow be more than given threshold when, to electromagnetism sluice send out code, when real-time traffic be zero and total flow be no more than setting
When threshold value, counted total flow is reset, and wait total flow next time to be counted;
Electromagnetic Flow module is for counting pipeline real-time traffic and information being uploaded to FPGA control module;
Electromagnetism sluice is used to close water inlet line in time according to the instruction that FPGA control module is sent;
Wireless charging module is used for wireless charging;
Wireless communication module is used for the communication of FPGA control module and mobile terminal, and received data are sent to FPGA control
Module completes data parsing, obtains controlled device water parameter information and the switching control instruction of user setting, FPGA is controlled
The information for the controlled device water leakage fault that module is sent is sent to user.
Preferably, the wireless charging module includes receiving module and transmitting module, transmitting module is slotting for being mounted on
On seat, receiving module is mounted on shell.
More preferably, the receiving module includes PCB electronic receipt antenna, charge controlling chip and circuit board for receiving, power supply
Management module connects circuit board for receiving, and circuit board for receiving connects charge controlling chip, charge controlling chip connection PCB electronic receipt
Antenna;
Transmitting module includes sequentially connected plug, transmit circuit plate, power supply control chip and PCB electronic receipt antenna.
Wherein, PCB electronic receipt antenna, charge controlling chip, circuit board for receiving, plug, transmit circuit plate, power supply control chip and
PCB electronic receipt antenna is all made of the common equipment of the prior art.
More preferably, the distance between the transmitting module and receiving module are no more than 1m.
Preferably, the Electromagnetic Flow module includes electromagnetic flowmeter and serial communication modular, fpga chip passes through string
Mouth connection serial communication modular, serial communication modular connect electromagnetic flowmeter.Wherein serial communication modular is using in the prior art
Common serial communication modular.
Preferably, the wireless communication module includes sequentially connected communication antenna, Bluetooth communication chip and channel radio
Believe circuit board.Wherein, communication antenna, Bluetooth communication chip and communications board are all made of communication commonly used in the prior art
Antenna, Bluetooth communication chip and communications board.
Preferably, the fpga chip uses Xilinx XC7A15T chip, SPI FLASH chip is used
AT45DB011D。
Preferably, the power management module uses TPS53319 chip.
The high integration Household leak-proof water installations based on FPGA of the utility model have the advantage that
(1), the utility model uses modularized design, easy to implement;Control logic is clear, realizes technology maturation, system
Stability is good;High degree of automation, all weather operations, practicability are high, solve in family that each water appliance failure leak cannot
The problem of discovery in time and prevention, realize economic and water-saving purpose.
(2), fpga chip is used as main control chip, the characteristics of using FPGA high integration, by a variety of peripheral chips electricity
The function on road is integrated into FPGA, minimizes product integrated, and as a single device rather than a needs are a variety of
The system that equipment is worked in coordination realizes the purpose of preventing water leakage;
(3), it completes to charge using wireless charging module, using wireless radiofrequency charging modes, without arranging again for device
Wiring is conducive to product and implements;
(4), user can be allowed easily to control and understand using mobile phone by Bluetooth communication using wireless communication module
Device current state.
Therefore the utility model has reasonable, simple, easy to process, small in size, easy to use, multi-purpose content of structure of design etc.
Feature, thus, it has good value for applications.
Detailed description of the invention
The present invention will be further described with reference to the accompanying drawing.
Attached drawing 1 is the structural schematic diagram of the high integration Household leak-proof water installations based on FPGA;
Attached drawing 2 is the structural schematic diagram of FPGA control module in attached drawing 1;
Attached drawing 3 is the structural block diagram along the high integration Household leak-proof water installations based on FPGA.
In figure: 1, shell, 2, FPGA control module, 3, Electromagnetic Flow module, 4, wireless charging module, 5, radio communication mold
Block, 6, electromagnetism sluice, 7, power management module, 8, SPI FLASH chip, 9, receiving module, 10, transmitting module, 11, PCB electricity
Sub- receiving antenna, 12, charge controlling chip, 13, circuit board for receiving, 14, plug, 15, transmit circuit plate, 16, power supply control core
Piece, 17, PCB electronic receipt antenna, 18, electromagnetic flowmeter, 19, serial communication modular, 20, fpga chip, 21, water inlet, 22,
Water outlet, 23, socket, 24, closestool, 25, water inlet line, 26, outlet conduit, 27, relay, 28, communication antenna, 29, bluetooth
Communication chip, 30, communications board.
Specific embodiment
It is anti-to a kind of high integration household based on FPGA of the utility model referring to Figure of description and specific embodiment
Water leakage device is described in detail below.
In the description of the present invention, it should be understood that term " on ", "lower", "front", "rear", "left", "right",
The orientation or positional relationship of the instructions such as "vertical" "horizontal", "top", "bottom", "inner", "outside" be orientation based on the figure or
Positional relationship is merely for convenience of describing the present invention and simplifying the description.Rather than the device or member of indication or suggestion meaning
Part must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as the limitation of the utility model.This
Outside, term " first ", " second ", " third " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " is pacified
Dress ", " connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integrally
Connection;It can be mechanical connection, be also possible to be electrically connected;Can be and be directly connected to, can also indirectly connected through an intermediary,
It can be the connection inside two elements.For the ordinary skill in the art, above-mentioned art can be understood with concrete condition
The concrete meaning of language in the present invention.
Embodiment:
As shown in attached drawing 1,2 and 3, the high integration Household leak-proof water installations based on FPGA of the utility model, structure
Including shell 1, FPGA control module 2, Electromagnetic Flow module 3, wireless charging module 4 and radio communication mold are installed in shell 1
Block 5 is equipped with electromagnetism sluice 6 below shell 1, and 6 one end of electromagnetism sluice is equipped with water inlet 21, and the other end is provided with water outlet 22.
FPGA control module 2 includes fpga chip 20, power management module 7 and SPI FLASH chip 8, and fpga chip 20 connects SPI
FLASH chip 8, fpga chip 20 connect wireless communication module 5 by Rapid I/O interface, can be within the scope of 10 meters and mobile phone
Bluetooth module complete communication connection, telecommunication data protocol be it is customized, each frame data by lead code, initial code, valid data,
End code composition is sent to the completion data parsing of FPGA control module 2 after receiving data, and FPGA control module 2 obtains user and sets
The parameter information or switching control instruction set.Fpga chip 20 connects Electromagnetic Flow module 3 by serial ports, and fpga chip 20 is logical
It crosses relay 27 and is separately connected electromagnetism sluice 6;Power management module 7 be separately connected wireless charging module 4, wireless communication module,
Electromagnetic Flow module 3, electromagnetism sluice 6, relay 27 and fpga chip 20 are powered;Fpga chip 20 uses Xilinx XC7A15T
Chip, SPI FLASH chip 8 use AT45DB011D, and power management module 7 uses TPS53319 chip.FPGA control module 2
User for receiving the transmission of wireless communication module 5 sets controlled device water consumption information and stores information into SPI FLASH
In chip 8, present period total flow is counted according to the real-time traffic that Electromagnetic Flow module 3 uploads, when total flow is more than setting threshold
When value, out code is sent to electromagnetism sluice 6, when real-time traffic is zero and total flow is no more than given threshold, clearing is united
The total flow of meter, and wait total flow next time to be counted;Electromagnetic Flow module 3 is for counting pipeline real-time traffic and by information
Pass to FPGA control module 2;Electromagnetic Flow module 3 includes electromagnetic flowmeter 18 and serial communication modular 19, and fpga chip 20 is logical
It crosses serial ports and connects 19 pieces of serial communication mould, serial communication modular 19 connects electromagnetic flowmeter 18.Electromagnetism sluice 6 is used for according to FPGA
Water inlet line is closed in the instruction that control module 2 is sent in time;Wireless charging module 4 is used for wireless charging;Wireless charging module 4
Including receiving module 9 and transmitting module 10, for transmitting module 10 for being mounted on socket 23, receiving module 9 is mounted on shell 1
On.Receiving module 9 includes PCB electronic receipt antenna 11, charge controlling chip 12 and circuit board for receiving 13, power management module 7
Circuit board for receiving 13 is connected, circuit board for receiving 13 connects charge controlling chip 12,12 connection PCB electronic receipt of charge controlling chip
Antenna 11;Transmitting module 10 includes that sequentially connected plug 14, transmit circuit plate 15, power supply control chip 16 and PCB electronics connect
Receive antenna 17.The distance between transmitting module 10 and receiving module 9 are no more than 1m.Wherein, wireless charging module 4 using radio frequency without
Line charging principle, working frequency 915MHz, it is the power supply of each modular concurrent that receiving module 9, which is arranged on the inside of shell 1 through power supply line,
Transmitting module 10 is inserted into socket start-up operation, transmitting module 10 and receiving module 9 by plug 14 and is no more than 1 meter apart from maximum,
Belong to midfield wireless charging range, is trickle charge mode, it can be achieved that 5V, 400mA power supply capacity, meet device and work normally need
It asks.Wireless communication module 5 is used for the communication of FPGA control module 2 and mobile terminal, and received data are sent to FPGA control mould
Block 2 completes data parsing, obtains controlled device water parameter information and the switching control instruction of user setting, FPGA is controlled mould
The information for the controlled device water leakage fault that block 2 is sent is sent to user.Wireless communication module 5 includes sequentially connected communication antenna
28, Bluetooth communication chip 29 and communications board 30.
Threshold value is arranged by mobile terminal in user, is provided with rear FPGA control module 2 and stores the value in SPI FLASH chip
In 8;The utility model may be mounted in a variety of families on water appliance, such as washbasin, closestool, nappy, bathing pool;By electromagnetic current
Meter 18 is mounted on the sewer pipe of equipment, and is connect by Serial Port Line and power supply line with FPGA control module 2;By electromagnetism water
Lock 6 is mounted on the water inlet line of equipment, and is connect by Serial Port Line and power supply line with FPGA control module 2;FPGA is controlled
Module 2 is mounted on equipment nearby and prevents from being the power supply of FPGA control module 2 by 220V power supply, family can be realized by bubble
Device intelligence leakproof.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the utility model, rather than it is limited
System;Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should
Understand: it is still possible to modify the technical solutions described in the foregoing embodiments, or to some or all of
Technical characteristic is equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution, and this is practical new
The range of each embodiment technical solution of type.