Design of automatic beverage machine based on virtual instrument technology labview

Publisher:RadiantSmileLatest update time:2016-08-22 Source: ck365 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Automatic beverage machines are common in daily life, such as those commonly found outdoors, in shopping malls, on buses, and in subways. There are many ways to design an automatic beverage machine system. For example, small and medium-scale integrated circuits can be used to form an automatic beverage machine system, or a dedicated chip can be used with the required peripheral circuits to form a specific function automatic beverage machine system. Digital circuits, FPGAs, PLCs, single-chip microcomputers, and ARMs can also be used to implement automatic beverage machines, etc.

The automatic beverage machine system designed using the virtual instrument technology LabVIEW can be used to simulate the real automatic beverage machine system to work. Using virtual instrument technology, engineers can use the graphical development software Lahview to conveniently and efficiently create a completely customized solution to meet the flexible and changing demand trends.

The automatic beverage machine system designed in this paper is completed by making full use of the unique and powerful state machine technology of the virtual instrument labview technology, eliminating the cumbersome traditional programming language and making it very convenient to update and maintain.

1 Overall design plan

1.1 Implemented Functions

The main functions are: automatic beverage machine, which realizes: one is to put money in, two is to deliver goods, and three is to give change.

1.2 Design Idea

Figure 1 intuitively shows the situation when coins of different amounts are inserted into the Coke machine, as well as the various states of each processing step and the conversion relationship between them. According to the different denominations of the coins inserted, the total amount is calculated, and various operations are responded to to complete a purchase.

 

Design of automatic beverage machine based on virtual instrument technology labview

2. Program Design

The biggest feature of Labview programming is the graphical programming language, plus a very rich function library, which makes program design very simple and intuitive. The program design of the automatic beverage machine system is to make full use of some of the rich function libraries in Labview.

Special functions realize corresponding functions, and the state machine technology in LabVIEW is used to realize the overall programming ideas.

2.1 State Machine Mode Diagram

Figure 2 is a classic diagram of the state machine in Labview

 

Design of automatic beverage machine based on virtual instrument technology labview

2.2 Overall program flowchart design

Figure 3 uses the classic structure of the state machine in Labview. The outermost layer is the while loop, and the inner layer is the conditional structure, which is just a multi-branch conditional structure. The third part is the shift register, which transfers the instruction to the next loop state judgment. In addition, in the state shown in Figure 3, the initial state, the execution steps of each state, and the code for switching to the next state, etc. are provided.

 

Design of automatic beverage machine based on virtual instrument technology labview

2.3 Design of the automatic beverage machine interface

The state shown in FIG. 4 is an interface of the front panel of the automatic beverage machine in operation.

 

Design of automatic beverage machine based on virtual instrument technology labview

2.4 Key Technologies

The automatic beverage machine system is designed using virtual instrument technology labview, which has its own unique technical features.

2.4.1 Use of state machine

The classic state machine mode combines the while loop, conditional structure and shift register, making the originally complex programming of the workflow diagram in Figure 1 clear and simple. The conditional structure is a multi-branch conditional mechanism, and the shift register uses two shift registers, one for executing the state instruction to transfer to the next state, and the other for accumulating the amount of coins to determine the working state.

2.4.2 Convert array

Although the conditional structure can solve the problem of multi-state selection, it is not very intuitive in structure and not convenient to manage. You can put all the states to be selected into an array, and directly index the next state from the array to the shift register by judging the subVI output of different index values. See Figure 5.

 

Design of automatic beverage machine based on virtual instrument technology labview

In addition, the automatic beverage machine system also uses a lot of other functions, making the programming very concise.

2.5 Operation Results Analysis

Analysis of running results: The three functions of the automatic beverage machine system - coin insertion, delivery and change - are realized, which meets the design expectations. In addition, although the system only provides one beverage, if you want to provide more beverages with different prices, you only need to add a subVI to select different beverages.

3 Conclusion

The state machine technology in the virtual instrument technology labview is used to design the automatic beverage machine system. The idea is clear, and programming, debugging and adding functions are very simple. It is very suitable for college students' practical innovation projects and graduation design projects, and provides a reference for related enterprises to design and produce self-service equipment.

Another major benefit of using state machine technology in the vending machine designed in this article is that compared with other technologies, state machine technology is more convenient and concise in maintaining automatic updates or adding functions.

This article is just a classic application of typical state machine technology. In fact, the state machine technology in LabVIEW is widely used. Automatic ticket vending machines, ATMs, etc. can all be designed using state machine technology.

Therefore, the development of this system has certain practical significance and theoretical value whether for learning, instrument development, or practical application.

Reference address:Design of automatic beverage machine based on virtual instrument technology labview

Previous article:Design and implementation of IGBT module test system based on LabVIEW
Next article:Automated testing of vehicle daytime running lights based on LabVIEW

Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号