CN114216549A - An intelligent weighing and dining system based on single chip microcomputer - Google Patents
An intelligent weighing and dining system based on single chip microcomputer Download PDFInfo
- Publication number
- CN114216549A CN114216549A CN202111511621.2A CN202111511621A CN114216549A CN 114216549 A CN114216549 A CN 114216549A CN 202111511621 A CN202111511621 A CN 202111511621A CN 114216549 A CN114216549 A CN 114216549A
- Authority
- CN
- China
- Prior art keywords
- weight
- chip microcomputer
- dish
- module
- weighing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005303 weighing Methods 0.000 title claims abstract description 98
- 235000003166 Opuntia robusta Nutrition 0.000 claims description 48
- 244000218514 Opuntia robusta Species 0.000 claims description 48
- 230000006870 function Effects 0.000 claims description 23
- 238000004422 calculation algorithm Methods 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 13
- 230000006641 stabilisation Effects 0.000 claims description 11
- 238000011105 stabilization Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 235000011034 Rubus glaucus Nutrition 0.000 claims description 5
- 244000235659 Rubus idaeus Species 0.000 claims description 5
- 235000009122 Rubus idaeus Nutrition 0.000 claims description 5
- 230000003993 interaction Effects 0.000 claims description 5
- 230000008901 benefit Effects 0.000 abstract description 4
- 238000011161 development Methods 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 13
- 238000000034 method Methods 0.000 description 5
- 238000009826 distribution Methods 0.000 description 4
- 235000012054 meals Nutrition 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 235000005911 diet Nutrition 0.000 description 2
- 230000037213 diet Effects 0.000 description 2
- 235000013372 meat Nutrition 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 235000013311 vegetables Nutrition 0.000 description 2
- 235000017166 Bambusa arundinacea Nutrition 0.000 description 1
- 235000017491 Bambusa tulda Nutrition 0.000 description 1
- 244000082204 Phyllostachys viridis Species 0.000 description 1
- 235000015334 Phyllostachys viridis Nutrition 0.000 description 1
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 239000011425 bamboo Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000010411 cooking Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 235000016709 nutrition Nutrition 0.000 description 1
- 230000035764 nutrition Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000013585 weight reducing agent Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G19/00—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
- G01G19/40—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight
- G01G19/413—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight using electromechanical or electronic computing means
- G01G19/414—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight using electromechanical or electronic computing means using electronic computing means only
- G01G19/4144—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight using electromechanical or electronic computing means using electronic computing means only for controlling weight of goods in commercial establishments, e.g. supermarket, P.O.S. systems
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/18—Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
- G01G23/20—Indicating weight by mechanical means
- G01G23/22—Indicating weight by mechanical means combined with price indicators
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G23/00—Auxiliary devices for weighing apparatus
- G01G23/18—Indicating devices, e.g. for remote indication; Recording devices; Scales, e.g. graduated
- G01G23/36—Indicating the weight by electrical means, e.g. using photoelectric cells
- G01G23/37—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting
- G01G23/3707—Indicating the weight by electrical means, e.g. using photoelectric cells involving digital counting using a microprocessor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Mathematical Physics (AREA)
- Accounting & Taxation (AREA)
- Toxicology (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Finance (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an intelligent weighing dining system based on a single chip microcomputer. The main control module of the invention takes the singlechip as a core, thereby not only meeting the performance requirement of the system, but also greatly saving the hardware cost. In addition, the invention is connected with the local server in a mode of opening an interface by the main control module, can collect the order information of different dishes selected by the customer, and realizes uniform settlement by the cloud server. The main control module has orthogonality, is easy to realize secondary development, can further provide corresponding service and small program solutions based on the cloud server, and has the advantages of low cost, modularization, easiness in expansion and the like.
Description
Technical Field
The invention belongs to the field of single-chip microcomputer equipment, and particularly relates to an intelligent weighing dining system based on a single-chip microcomputer.
Background
With the development of industrial intelligence, the catering industry is also in new revolution, and various intelligent catering schemes emerge like bamboo shoots in spring after rain. The traditional catering-oriented weighing solution is mainly used for settling accounts by weighing the total weight of dishes, and the scheme has the following defects:
1. the unit price of different dishes, namely the unit price of meat dish and vegetable dish is not considered, and the defects are as follows: if the customer has all the vegetables, the customer will pay a price higher than the market price; if the customer has all been cooking meat, the customer will likely pay a price that is lower than the market price. Thus, pricing difficulties are presented to the merchant.
2. After the customers take the dishes, the customers must pass through the settlement window, the efficiency is low in the peak period of dining, extra labor cost is brought to merchants, and the dining experience of the customers is reduced.
3. The application scene is single, the system is difficult to expand, the system is difficult to integrate into other solutions, and secondary development is difficult.
4. The high-precision weighing sensor and the AD conversion module are relied on, and the hardware cost is high.
In order to realize separate pricing for different dishes, in the prior art, a chip can be embedded in dishes of different dishes, so that the dish information can be read by the equipment by using a radio frequency technology, and the dish type can be identified. However, the dishes in which the chips are implanted have disadvantages of high cost, poor flexibility, and the chips are easily damaged or corroded during the high-temperature cleaning process.
Therefore, how to realize intelligent weighing and settlement of multiple dishes with low cost and high flexibility is a technical problem to be solved urgently at present.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides an intelligent weighing dining system based on a single chip microcomputer.
The invention adopts the following specific technical scheme:
an intelligent weighing dining system based on a single chip microcomputer comprises a local server, a cloud server and a plurality of main control modules, wherein the main control modules respectively correspond to different single dishes;
the master control module comprises a singlechip, and a data acquisition module, an RFID module, a network communication module and a display module which are connected with the singlechip; the data acquisition module is connected with the electronic weighing device, a dish container for a customer to take dishes is placed on the electronic weighing device, a card reading area is arranged on the electronic weighing device, and the data acquisition module acquires the real-time weight of the dish container on the electronic weighing device and sends the real-time weight to the single chip microcomputer; the RFID module is used for sensing an RFID chip embedded in a dinner plate positioned in the card reading area and sending the read tag value to the single chip microcomputer in real time; the single chip microcomputer judges whether a new dinner plate enters or leaves the card reading area according to the received label value, when the new dinner plate enters the card reading area, a first weight value acquired by the electronic weighing equipment is recorded, when the dinner plate leaves the card reading area, a second weight value acquired by the electronic weighing equipment is recorded, the difference value of the first weight value and the second weight value is used as the dish taking weight of the dinner plate corresponding to the label value, and single dish order information is generated according to the unit price of the dish; the network communication module is used for communicating with the local server and sending single dish order information containing the label value and the dish taking weight of the corresponding dinner plate to the local server; the display module is used for providing a user interaction interface;
the local server is used for receiving the order information of the single dishes sent by each main control module, generating total order information of all dishes taken by each customer at this time according to account information pre-bound when the customer takes the dinner plate, and uploading the total order information to the cloud server;
the cloud server is used for acquiring account information of a customer when the customer takes the dinner plate and a tag value of an embedded RFID chip in the dinner plate, binding the account information and the tag value and issuing the bound account information and the tag value to the local server, and meanwhile, after receiving total order information uploaded by the local server, performing order settlement on the account of the corresponding customer.
Preferably, the singlechip adopts Raspberry Pi Pico.
Preferably, the data acquisition module adopts HX 711.
Preferably, the network communication module adopts ZLSN 3007S.
Preferably, the display module displays the name of the dish in the corresponding dish container and the current access weight of the customer.
Preferably, after receiving the real-time weight signal sent by the data acquisition module, the single chip microcomputer executes a weighing reading stabilization algorithm to acquire the real-time stable weight of the dish container on the current electronic weighing device, and the flow is as follows:
the singlechip receives the real-time weight m sensed by the electronic weighing equipment sent by the data acquisition module1Then, the weight m is compared with the stable weight m obtained by the previous calculations=m2Calculating the difference, and if the difference is smaller than the calibration value gap m of the electronic weighing equipmentgAlpha times of (a), the stable weight m obtained by this calculationsIs m2Otherwise according to the peeled weight m of the electronic weighing equipment0The stable weight m obtained by conversion of this calculations=m1-(m1-m0)mod mg+mg2, mod is a modulus operation; finally calculating the real-time weight m1The stable weight m of the corresponding dish container is (m)s-m0)/mg。
Preferably, the main control module sets two types of open interfaces for the local server, including: an information acquisition interface and an equipment control interface; the information acquisition interface is used for acquiring weight, dish information and user information in real time; the equipment control interface is used for providing weighing scheme selection, operation state control and calibration functions.
Preferably, an information management system is arranged on the cloud server, and functional modules in the information management system comprise dish information management, dish statistics, order statistics, customer information management and equipment information management.
Preferably, the cloud server provides consumption services for customers on the mobile terminal in an applet form, and the function modules of the cloud server comprise functions of a wallet module, an order module, a stored value card binding module and a code scanning binding dinner plate module.
Preferably, when the customer takes the dinner plate, the account information of the customer needs to be uploaded to the cloud server in a stored value IC card swiping or code scanning binding mode.
Compared with the prior art, the invention has the following beneficial effects:
1. according to the invention, a set of weighing equipment is configured for each dish, so that the problem of difficult pricing of merchants can be solved;
2. the invention can realize the time-delay automatic purchase of the order by the IC card binding or the electronic payment mode, namely, the user can leave after eating, thereby saving the step of a settlement window;
3. the system core control module uses a single chip microcomputer instead of an android device, so that the hardware cost is effectively saved while the system function requirement is met;
4. each set of electronic weighing equipment is self-made, can be conveniently combined and practical with an upper computer through an open interface on the main control module, and is easy to be integrated into other solutions.
5. According to the invention, the weighing reading stabilizing algorithm is integrated into the main control module, so that the weighing reading is stabilized within a range of +/-1 g, the dependence on high-precision equipment is reduced, and the hardware cost is effectively saved.
Drawings
FIG. 1 is a structural schematic diagram of an intelligent weighing dining system based on a single chip microcomputer according to functional division;
FIG. 2 is a configuration diagram of an intelligent weighing dining system based on a single-chip microcomputer;
FIG. 3 is an example of a circuit diagram of a master control module;
FIG. 4 is a graph of a raw data sample distribution of a weighing signal;
FIG. 5 is a distribution diagram of the data samples with index values of 50000-51000 in FIG. 4;
FIG. 6 is a schematic diagram of an open interface of a host module;
FIG. 7 is a weighing logic diagram of the master control module;
FIG. 8 is a functional design example of a cloud service;
fig. 9 is a schematic diagram of a user dining process.
Detailed Description
The invention will be further elucidated and described with reference to the drawings and the detailed description. The technical features of the embodiments of the present invention can be combined correspondingly without mutual conflict.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. The technical characteristics in the embodiments of the present invention can be combined correspondingly without mutual conflict.
In the description of the present invention, it is to be understood that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
In a preferred embodiment of the invention, the system comprises a local server, a cloud server and a plurality of main control modules, wherein the main control modules respectively correspond to different single dishes.
As shown in fig. 1, the system is a schematic structural diagram of the intelligent weighing and dining system based on a single chip microcomputer divided according to functions, wherein a main control module is a dish weighing data acquisition device which mainly uses a core of the single chip microcomputer and is added with other functional components and is used for driving functions such as screen display, upper computer interaction, dish weighing, identity data acquisition and the like; the service system is divided into a local service system and a cloud service system, the local service system is arranged on a local server of each restaurant, the cloud service system is arranged on the cloud server, and the cloud server can acquire data uploaded by the local server of each restaurant and perform relevant statistical analysis and management. The main control module and the local server are provided with an open interface for being used as a channel for interaction between the local server and the main control module, and the main control modules are independent from each other due to the existence of the interface, so that the invention has extremely high flexibility. In addition, the user can view data related to the user on the cloud server by the small program, and the data is used for explaining the dining mode. In general, the local service system on the local server is used for managing local equipment, collecting the weight of each main control module and IC card data. The cloud service is used for user information management, data statistical analysis and order request processing … …, the data on the cloud server is used for binding a merchant membership card or paying by using a third party payment wallet through the applet, and meanwhile, the applet displays a diet analysis report to the user through the cloud service, recommends diet collocation to the user and the like. Of course, whether the applet is opened or not can be determined according to the actual needs of the restaurant, and the specific functions of the local service and the cloud service can be adjusted according to the needs.
The hardware deployment structure diagram of the local server, the cloud server and the main control module in the dining system is shown in fig. 2, each dining room is provided with the local server, each main control module is prepared for each sold dish, the dishes are placed on the electronic weighing device through the dish containing container, and the main control module obtains the total weight reduction of the dish containing container when a customer takes dishes in the dish containing container to calculate the weight of the dish taking of the customer. Meanwhile, in order to facilitate reading of the identity of a dish taking customer, a card reading area is arranged nearby besides a dish containing container for the customer to take dishes is arranged on the electronic weighing equipment, so that an RFID chip embedded in a dinner plate held by the customer is sensed. When the customer takes the dinner plate, the account information of the customer needs to be uploaded to the cloud server in a stored value IC card swiping or code scanning binding mode so as to facilitate subsequent settlement.
The following describes specific implementation manners of the local server, the cloud server, and the main control module in detail.
Firstly, the main control module comprises a single chip microcomputer, and a data acquisition module, an RFID module, a network communication module and a display module which are connected with the single chip microcomputer. The data acquisition module is connected with the electronic weighing device, the dish containing container for a customer to take dishes is placed on the electronic weighing device, the card reading area is arranged, and the data acquisition module acquires the real-time weight of the dish containing container on the electronic weighing device and sends the real-time weight to the single chip microcomputer. The RFID module is used for sensing an RFID chip embedded in a dinner plate positioned in the card reading area and sending the read label value to the single chip microcomputer in real time. It should be noted that the position of the card reading area corresponding to each electronic weighing device should be reasonably set, so that when a customer places the dinner plate near the dish containing container corresponding to dishes to take the dishes, the RFID chip in the dinner plate can be accurately read, and the phenomenon of misreading is prevented. The single chip microcomputer can judge whether a new dinner plate enters or leaves the card reading area according to the label value received in real time, a first weight value collected by the electronic weighing device at the moment is recorded when the new dinner plate with the label of R enters the card reading area, a second weight value collected by the electronic weighing device at the moment is recorded when the dinner plate with the label of R leaves the card reading area, and the weight of the dinner plate with the label value of R is taken as the difference value of the first weight value and the second weight value. And meanwhile, the singlechip can read the dish name and unit price information corresponding to the equipment number from the local server, so that single dish order information of the dinner plate corresponding to each label value is generated according to the dish name, the unit price and the weight of the taken dish, and the single dish order information comprises the dish name, the unit price, the weight of the taken dish and the total price corresponding to the label value of the RFID chip. The network communication module is used for communicating with the local server and sending single dish order information containing the label value and the dish taking weight of the corresponding dinner plate to the local server, so that the local server can record the order information of dishes taken by each customer. In addition, the display module is used for providing a user interaction interface, can display the name and the unit price of the dishes when the user takes the dishes, and can also display the weight and the total price of the taken dishes in real time.
The local server is used as a central control system of each restaurant and is responsible for data management and equipment management of all the main control modules. The local server can receive the order information of the single dishes sent by each main control module, and generates the total order information of all dishes taken by each customer at this time according to account information pre-bound when the customer takes the dinner plate and uploads the total order information to the cloud server so as to settle accounts.
The cloud server is used for acquiring account information of a customer when the customer takes the dinner plate and a label value of the RFID chip embedded in the dinner plate, binding the account information and the label value and issuing the bound account information to the local server, and meanwhile, after receiving total order information uploaded by the local server, performing order settlement on the account of the corresponding customer. Therefore, the order settlement function in the invention can be performed in the cloud server, so that the function of automatically buying orders by a user in a delayed manner can be realized. Of course, the order settlement can also be set at the cash register end of the local server as required, and the cash register end only needs to acquire the total order information of the customer from the cloud server.
In the above-mentioned main control module, the specific hardware model and the connection mode may be adjusted according to the actual situation, for example, in the subsequent embodiment of the present invention, the single chip microcomputer employs Raspberry Pi Pico, the data acquisition module employs HX711, and the network communication module employs ZLSN 3007S. It should be noted that this is an economical and reliable preferred implementation and is not a limitation of the present invention.
In addition, because the main control module of the invention adopts a singlechip instead of an android device, the problem of data fluctuation is easy to occur when the electronic weighing device is actually obtained, and the stability of weight signals cannot be kept. Therefore, in the present invention, a weighing reading stabilization algorithm can be further combined in the single chip microcomputer, that is, after receiving the real-time weight signal sent by the data acquisition module in the single chip microcomputer, the weighing reading stabilization algorithm is executed to obtain the real-time stable weight of the dish container on the current electronic weighing device, and the flow is as follows:
the singlechip receives the real-time weight m sensed by the electronic weighing equipment sent by the data acquisition module1Then, the weight m is compared with the stable weight m obtained by the previous calculations=m2Calculating the difference, and if the difference is smaller than the calibration value gap m of the electronic weighing equipmentgAlpha times of (a), the stable weight m obtained by this calculationsIs m2Otherwise according to the peeled weight m of the electronic weighing equipment0The stable weight m obtained by conversion of this calculations=m1-(m1-m0)mod mg+mg2, mod is a modulus operation; finally calculating the real-time weight m1The stable weight m of the corresponding dish container is (m)s-m0)/mg. Finally, the stable weight m of the dish containing container can be used as the weight value estimation of the dish containing container, and the algorithm can ensure that the weighing reading is stable within the range of +/-1 g.
In addition, in order to facilitate the local server to implement unified data management and device management, the main control module needs to set two types of open interfaces for the local server, including: an information acquisition interface and a device control interface. The information acquisition interface is used for acquiring real-time weight, dish information, user information and the like; and the equipment control interface is used for providing functions of weighing scheme selection, running state control, calibration and the like. The detailed functions provided by the specific functional modules can be designed according to the needs.
In addition, the cloud server can be provided with a cloud information management system, and functional modules in the information management system comprise dish information management, dish statistics, order statistics, customer information management and equipment information management. Meanwhile, the cloud server can provide consumption services for customers on the mobile terminal in an applet form, and the function modules of the cloud server comprise functions of a wallet module, an order module, a stored value card binding module and a code scanning binding dinner plate module. The detailed functions provided by the specific functional modules can be designed according to the needs.
In conclusion, the invention designs a set of main control module taking the singlechip as the core, thereby not only meeting the system performance requirement, but also greatly saving the hardware cost. In addition, the weighing equipment is easy to realize secondary development by the way of opening the interface of the main control module, and can further provide corresponding service and small program solutions. The intelligent weighing catering system based on the single-chip microcomputer is easy to control due to the modularized construction of the weighing platform.
In order to further understand the specific implementation manner of the present invention, the following describes the construction manner and the specific function implementation of the above-mentioned intelligent weighing dining system based on a single-chip microcomputer by an example.
Examples
Fig. 1 is a structural diagram of an intelligent weighing dining system based on a single-chip microcomputer in the present example, and fig. 2 is a structural diagram of a deployment in which a cloud service is used as a center and a main control module is used as an edge. As can be seen from fig. 1, the system includes the following parts: the system comprises a main control module, a service system and an applet, wherein the service system is distributed on a local server and a cloud server. The construction process of the system is as follows:
step 1, constructing a master control module
In this example, the circuit diagram of the main control module part 1 is shown in fig. 3, and includes the following modules:
1) the single chip computer is an integrated circuit chip, and is a small and perfect microcomputer system formed by integrating the functions of a central processing unit with data processing capacity, a memory, an I/O port, an interrupt system, a timer/counter and the like on a silicon chip by adopting a super-large scale integrated circuit technology. The singlechip adopted in the system of the embodiment is Raspberry Pi Pico, and the specification of the singlechip is as follows:
1. binuclear Arm Cortex-M0+ @133MHz
2. 264KB SRAM and 2MB onboard flash memory with built-in chip
3. Off-chip flash memory supporting up to 16MB via a dedicated QSPI bus
4. DMA controller
5. 30 GPIO pins, 4 of which can be used as analog inputs
6. 2 UART, 2 SPI controllers and 2I 2C controllers
7. 16 PWM channels
8. USB 1.1 host and device support
9. 8 Raspberry pi programmable I/O (PIO) state machines for custom peripheral support
10. uSB Mass storage Start mode with UF2 support for drag-and-drop programming
According to the specifications of the single chip microcomputer, the single chip microcomputer has a dual-core Arm Cortex-M0, the frequency reaches 133MHz, and the operation speed is enough to support the performance requirement of the weighing equipment; the device is provided with 30 GPIO pins, UART, SPI and I2C, and is convenient for expanding equipment; in addition, the single chip microcomputer supports Micro Python, and programming is simple and convenient.
2) And the data acquisition module is connected with a pressure sensor used for weighing and is used for measuring the weight of the dish container placed on the panel above the pressure sensor. In the embodiment, the classic HX711 is taken as an example, the HX711 is a 24-bit A/D converter chip, a voltage-stabilized power supply and an on-chip clock oscillator are integrated, and the integrated circuit has the advantages of high integration level, high response speed, strong anti-interference performance, low price and the like. Through a large amount of data acquisition and analysis, the 24-bit precision can reach 20 bits in practical situations, and the precision requirement can be met in catering environments.
3) The RFID module, the RFID module is used for responding to the RFID chip and is the radio frequency IC card, imbeds the RFID chip in traditional dinner plate and can reforms into intelligent dinner plate with traditional dinner plate, binds through payment accounts such as intelligent dinner plate and user's savings IC card or little letter, payment are precious, can realize that the user delays time and buy the order automatically, can leave with the user's meal that finishes, saves settlement window step.
4) The network communication module is used for the communication between the single chip microcomputer and the upper computer, various protocol modules can be selected, ZLSN3007S is taken as an example in the embodiment, the module realizes the conversion of a serial port communication protocol into an Ethernet communication protocol, only the UART which is good in the single chip microcomputer is needed to read and write data, and the network communication between the single chip microcomputer and the upper computer can be realized according to a TCP protocol. Preferably, by adopting the POE power supply technology, one set of weighing equipment can meet the power supply requirement by only one network cable.
5) The display module takes a serial port screen as an example, and the serial port screen can be in serial port communication with the single chip microcomputer, so that the most visual interactive interface with a user is realized.
Further, in this example, a weighing reading stabilization algorithm is built in the main control module, and the principle of the algorithm is briefly described as follows:
the signal data in the connected pressure sensors are sampled by the data acquisition module, the same weight of the load is kept, the data of the data acquisition module is acquired 100 times every 5 seconds, 304300 samples are acquired in total, and the distribution of the samples is shown in fig. 4 (the horizontal axis represents a data index value (proportional to time), and the vertical axis represents original data). And further analyzing the sample data and constructing a sample distribution model. As can be seen from fig. 4, although the original data shows a waveform that does not always stabilize around a certain mean value under the influence of internal and external conditions, it can be regarded as a waveform with a mean value fixed to epsilon in a short time, as shown in fig. 5. Therefore, the formula for data stabilization using the conventional mean (median) algorithm is as follows:
v∈(ε+A+,ε-A-) → epsilon (formula 1.1)
Where v is the real raw data, ε is the mean of the waveform to which v belongs, A+At maximum upward amplitude, A-Is the maximum downward amplitude. I.e. not exceeding the maximum upward amplitude a around the mean value epsilon+And maximum downward amplitude A-Is mapped to epsilon.
The conversion formula of the raw data and the real weight of the weighing equipment is as follows:
wherein weight is the actual weight, raw is the raw data, offset is the peeled weight, and gap is the calibration value. From equation 1.2, one can see:
that is, the raw data will cause the weight to change by 1 per change of gap, but in the case of calibration accuracy of 1 gram, the value of gap is always less than min (A) under the constraint of hardware+,A-) So that the conventional mean (median) algorithm causes frequent changes in the actual weight.
Therefore, the traditional mean (median) algorithm is improved, and a weighing reading stabilization algorithm is provided, and the specific method comprises the following steps:
the singlechip receives the real-time weight m sensed by the electronic weighing equipment sent by the data acquisition module1Then, the weight m is compared with the stable weight m obtained by the previous calculations=m2Calculating the difference, and if the difference is smaller than the calibration value gap m of the electronic weighing equipmentgAlpha times of (a), the stable weight m obtained by this calculationsIs m2Otherwise according to the peeled weight m of the electronic weighing equipment0The stable weight m obtained by conversion of this calculations=m1-(m1-m0)mod mg+mg2, mod is a modulus operation; finally calculating the real-time weight m1The stable weight m of the corresponding dish container is (m)s-m0)/mg. Finally, the stable weight m of the dish containing container can be used as the weight value estimation of the dish containing container, and the algorithm can ensure that the weighing reading is stable within the range of +/-1 g.
When the algorithm is executed in the single chip microcomputer, the algorithm can be expressed as the following execution codes:
wherein abs (,) is absolute value, α is hyper-parameter, stable _ raw is stable weight, last _ stable _ raw is stable weight obtained by last calculation, weight is finally obtained weight value (unit is gram) of the dish container, offset is peeled weight, gap is calibration value, mod is modular operation.
The core idea of the weighing reading stabilization algorithm is to map the raw data under the same weight to a value epsilon (i.e. the stable _ raw), and the derivation of epsilon is as follows:
the above-mentioned weighing reading stabilization algorithm is obtained by obtaining ∈ ═ raw- (raw-offset) modgap + gap/2 from equation 1.4.
Compared with the traditional mean (median) stabilization algorithm, the weighing reading stabilization algorithm provided by the embodiment is calculated in real time, does not depend on continuous sample collection, and has higher stability. After calibration, even if the traditional hx711 module is used, the obtained actual weight can be stabilized within a range of +/-1, so that the cost of hardware equipment is effectively reduced.
Step 2, constructing an interface between the main control module and the server
With reference to fig. 3, the deployment structure diagram of the present example is a classical mesh structure, which benefits from the orthogonality of the master control modules. The orthogonality means that each main control module is independent and interacts with the local server in an open interface form.
Further, as shown in fig. 6, the open interface of the main control module includes: an information acquisition interface and an equipment control interface. The information acquisition interface is used for acquiring weight in real time, dish information of the equipment and user information. Further, two ways of weight acquisition are adopted, one way is to acquire the weight measured by the weighing equipment for being compatible with the traditional weighing scheme; and secondly, the weight reduced on the weighing equipment is obtained for a novel weighing scheme. Preferably, the equipment control interface provides the functions of scheme selection, equipment running state control, equipment calibration and the like.
Preferably, the main control module receives local information (name of the local placed dish and unit price information) from the upper computer, when the tag value of the RFID chip in the dinner plate prevented by the card reading area is read for the first time, the main control module records the current weight as the initial weight of the order, then reads the weight at intervals, and the difference between the read weight and the initial weight is the weight of the dish taken, when the dinner plate is moved out from the card reading area, the order information is uploaded to the local server for processing, and then the next single-user link can be entered.
Based on the open interface, the main control module of the embodiment can be compatible with various management systems, and the main control modules are mutually independent and flexible in equipment management.
Step 3, constructing service system and user small program
Further, based on the above-mentioned master control module and its interface, this example provides a typical intelligent weighing solution. As shown in fig. 8, the solution uses a cloud service as a core to provide services for the information management system and the applet.
The cloud-deployed information management system mainly comprises dish information management, dish statistics, order statistics, member customer information management and equipment information management. The dish information management system provides functions of a merchant for modifying dish names, dish prices, dish searching and the like, dish statistics comprises statistics of specific information such as dish unit prices, sales amounts, sales times and total sales weights, order statistics supports inquiry of information of consumers, consumption amounts, consumption time and order states, customer information management comprises management of related information such as recent dishes and recommended dishes of the customers, and equipment information is used for managing each weighing platform.
In addition, the cloud provides the applet as a client on the mobile device held by the customer, and provides convenient consumption process experience for the user. The small program provides functions of a wallet module, an order module, a campus card module and a code scanning binding module, the wallet module has functions of recharging and recharging record query, the order module can check recent order information and provide nutrition analysis and dish recommendation functions, the campus card module supports binding of an existing campus card of a user, and the code scanning binding module is used for binding user information and an intelligent dinner plate.
In summary, the intelligent weighing dining system based on the single chip microcomputer provided in this example can realize a user dining flow with delayed payment (as shown in fig. 9): the user sweeps the sign indicating number and binds the dinner plate after the dinner plate is placed to the department through the applet, takes the dinner plate to the flourishing dish container of placing on the weighing bench of placing each dish and takes the meal, and the order information of taking single dish after the meal gathers value local server and generates total order information and uploads to the cloud server, and the user can leave by oneself after having a meal, and the system will settle accounts automatically.
The above-described embodiments are merely preferred embodiments of the present invention, which should not be construed as limiting the invention. Various changes and modifications may be made by one of ordinary skill in the pertinent art without departing from the spirit and scope of the present invention. Therefore, the technical scheme obtained by adopting the mode of equivalent replacement or equivalent transformation is within the protection scope of the invention.
Claims (10)
1. An intelligent weighing dining system based on a single chip microcomputer is characterized by comprising a local server, a cloud server and a plurality of main control modules, wherein the main control modules respectively correspond to different single dishes;
the master control module comprises a singlechip, and a data acquisition module, an RFID module, a network communication module and a display module which are connected with the singlechip; the data acquisition module is connected with the electronic weighing device, a dish container for a customer to take dishes is placed on the electronic weighing device, a card reading area is arranged on the electronic weighing device, and the data acquisition module acquires the real-time weight of the dish container on the electronic weighing device and sends the real-time weight to the single chip microcomputer; the RFID module is used for sensing an RFID chip embedded in a dinner plate positioned in the card reading area and sending the read tag value to the single chip microcomputer in real time; the single chip microcomputer judges whether a new dinner plate enters or leaves the card reading area according to the received label value, when the new dinner plate enters the card reading area, a first weight value acquired by the electronic weighing equipment is recorded, when the dinner plate leaves the card reading area, a second weight value acquired by the electronic weighing equipment is recorded, the difference value of the first weight value and the second weight value is used as the dish taking weight of the dinner plate corresponding to the label value, and single dish order information is generated according to the unit price of the dish; the network communication module is used for communicating with the local server and sending single dish order information containing the label value and the dish taking weight of the corresponding dinner plate to the local server; the display module is used for providing a user interaction interface;
the local server is used for receiving the order information of the single dishes sent by each main control module, generating total order information of all dishes taken by each customer at this time according to account information pre-bound when the customer takes the dinner plate, and uploading the total order information to the cloud server;
the cloud server is used for acquiring account information of a customer when the customer takes the dinner plate and a tag value of an embedded RFID chip in the dinner plate, binding the account information and the tag value and issuing the bound account information and the tag value to the local server, and meanwhile, after receiving total order information uploaded by the local server, performing order settlement on the account of the corresponding customer.
2. The intelligent weighing and dining system based on single-chip microcomputer as claimed in claim 1, wherein the single-chip microcomputer adopts Raspberry Pi Pico.
3. The intelligent weighing and dining system based on single-chip microcomputer according to claim 1, wherein the data acquisition module adopts HX 711.
4. The intelligent weighing and dining system based on single-chip microcomputer according to claim 1, wherein the network communication module adopts ZLSN 3007S.
5. The intelligent weighing and dining system based on single-chip microcomputer according to claim 1, wherein the name of the dish in the corresponding dish container and the current access weight of the customer are displayed in the display module.
6. The intelligent weighing and dining system based on the single-chip microcomputer as claimed in claim 1, wherein after the real-time weight signal sent by the data acquisition module is received in the single-chip microcomputer, a weighing reading stabilization algorithm is executed to obtain the real-time stable weight of the dish container on the current electronic weighing device, and the flow is as follows:
the singlechip receives the real-time weight m sensed by the electronic weighing equipment sent by the data acquisition module1Then, the weight m is compared with the stable weight m obtained by the previous calculations=m2To carry outCalculating the difference, and if the difference is smaller than the calibration value gap m of the electronic weighing equipmentgAlpha times of (a), the stable weight m obtained by this calculationsIs m2Otherwise according to the peeled weight m of the electronic weighing equipment0The stable weight m obtained by conversion of this calculations=m1-(m1-m0)mod mg+mg2, mod is a modulus operation; finally calculating the real-time weight m1The stable weight m of the corresponding dish container is (m)s-m0)/mg。
7. The intelligent weighing and dining system based on single-chip microcomputer according to claim 1, wherein the main control module is provided with two types of open interfaces for the local server, including: an information acquisition interface and an equipment control interface; the information acquisition interface is used for acquiring weight, dish information and user information in real time; the equipment control interface is used for providing weighing scheme selection, operation state control and calibration functions.
8. The intelligent weighing and dining system based on the single-chip microcomputer as claimed in claim 1, wherein an information management system is arranged on the cloud server, and functional modules in the information management system comprise dish information management, dish statistics, order statistics, customer information management and equipment information management.
9. The intelligent weighing dining system based on single-chip microcomputer according to claim 1, wherein the cloud server provides consumption services to customers on the mobile terminal in the form of small programs, and the function modules of the cloud server comprise a wallet module, an order module, a stored value card binding module and a code scanning binding dinner plate module.
10. The intelligent weighing dining system based on single-chip microcomputer according to claim 1, wherein when a customer takes a dinner plate, the account information of the dinner plate is uploaded to the cloud server in a stored value IC card swiping mode or code scanning binding mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111511621.2A CN114216549A (en) | 2021-12-06 | 2021-12-06 | An intelligent weighing and dining system based on single chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111511621.2A CN114216549A (en) | 2021-12-06 | 2021-12-06 | An intelligent weighing and dining system based on single chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114216549A true CN114216549A (en) | 2022-03-22 |
Family
ID=80701006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111511621.2A Pending CN114216549A (en) | 2021-12-06 | 2021-12-06 | An intelligent weighing and dining system based on single chip microcomputer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114216549A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115979396A (en) * | 2022-12-07 | 2023-04-18 | 四川启睿克科技有限公司 | An intelligent weighing method, system, device and medium for self-service meal taking |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100312385A1 (en) * | 2007-09-18 | 2010-12-09 | Roger Deuber | Electronic ordering system for restaurants |
CN107481119A (en) * | 2017-08-21 | 2017-12-15 | 贵州西部生态链电子商务有限公司 | A kind of cloud food and drink platform and analysis method based on big data signature analysis |
CN109584482A (en) * | 2019-01-04 | 2019-04-05 | 广东蚁窝智能科技有限公司 | Self-service weighing meal selling platform and system |
CN109584481A (en) * | 2019-01-04 | 2019-04-05 | 广东蚁窝智能科技有限公司 | Meal platform and system are sold in the self-service weighing of one kind |
CN112798085A (en) * | 2020-12-31 | 2021-05-14 | 浙江联运知慧科技有限公司 | Accurate weighing algorithm and weighing device based on intelligent garbage classification and transportation disposal |
KR20210070728A (en) * | 2019-12-05 | 2021-06-15 | (주)넷킨 | System for menu cloud platform |
-
2021
- 2021-12-06 CN CN202111511621.2A patent/CN114216549A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100312385A1 (en) * | 2007-09-18 | 2010-12-09 | Roger Deuber | Electronic ordering system for restaurants |
CN107481119A (en) * | 2017-08-21 | 2017-12-15 | 贵州西部生态链电子商务有限公司 | A kind of cloud food and drink platform and analysis method based on big data signature analysis |
CN109584482A (en) * | 2019-01-04 | 2019-04-05 | 广东蚁窝智能科技有限公司 | Self-service weighing meal selling platform and system |
CN109584481A (en) * | 2019-01-04 | 2019-04-05 | 广东蚁窝智能科技有限公司 | Meal platform and system are sold in the self-service weighing of one kind |
KR20210070728A (en) * | 2019-12-05 | 2021-06-15 | (주)넷킨 | System for menu cloud platform |
CN112798085A (en) * | 2020-12-31 | 2021-05-14 | 浙江联运知慧科技有限公司 | Accurate weighing algorithm and weighing device based on intelligent garbage classification and transportation disposal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115979396A (en) * | 2022-12-07 | 2023-04-18 | 四川启睿克科技有限公司 | An intelligent weighing method, system, device and medium for self-service meal taking |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11580492B2 (en) | Inventory monitoring system and method | |
US20130264388A1 (en) | Inventory Monitoring System | |
CN107016810B (en) | A self-service decrement weighing billing system and self-service decrement weighing billing method | |
CN108922084A (en) | A kind of commodity recognition method and device | |
CN109584479A (en) | Self-service weighing meal selling platform and system | |
CN110046140A (en) | A kind of morning inspection information management system | |
CN114216549A (en) | An intelligent weighing and dining system based on single chip microcomputer | |
CN201654885U (en) | new vending machine | |
CN211555065U (en) | Intelligent network weighing, settling and dish serving device | |
CN109584481A (en) | Meal platform and system are sold in the self-service weighing of one kind | |
CN111985985B (en) | Store information extraction method and device, storage medium and electronic device | |
CN112489765A (en) | Health data management method and system for intelligent canteen | |
CN209265614U (en) | A self-service weighing meal selling platform and system | |
CN204856693U (en) | Sell machine of return of goods by oneself based on internet and electronic payment | |
CN214846918U (en) | Unmanned gravity induction sales counter system based on 4G network | |
CN109584480A (en) | Self-service weighing meal selling platform and system | |
CN207601920U (en) | A kind of retail terminal of voice interface | |
CN207302245U (en) | Food and drink settlement device | |
CN201549018U (en) | Single-phase electronic CPU card prepaid electric energy meter | |
CN109064648A (en) | A kind of product smoking branch self-aid system for cigarette retail terminal | |
CN209265612U (en) | A self-service weighing meal selling platform and system | |
CN210605969U (en) | Dish self-service settlement equipment and system | |
CN208367842U (en) | Weighing product machine | |
CN109035554A (en) | Selling apparatus and vending system | |
CN108986355B (en) | Farmer market data acquisition terminal and data acquisition method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220322 |