A kind of intelligent liquor pouring out machine based on AT89C51 micro controller system
Technical field
The application relates to a kind of liquor pouring out machine, particularly a kind of intelligent liquor pouring out machine based on AT89C51 micro controller system.
Background technology
Liquor pouring out machine, a kind of device that can realize automatic wine-pouring.In prior art, automatic wine-pouring machine is substantially all the object reaching automatic wine-pouring from machine design aspect, not in conjunction with automatic control technology.In addition, excessive drinking, the problems such as drunk driving become increasingly conspicuous, and bring a lot of hidden danger to social safety.
Summary of the invention
The object of the application is to provide a kind of intelligent liquor pouring out machine, and it uses micro controller system process, both can realize the function of automatic wine-pouring, also according to pouring frequency adjustment pouring amount, can reach the object necessarily controlling to drink; Even can control to play the song of releiving when pouring frequency is too fast time, regulate the mood of alcohol user, really reach the object controlling to drink.
The described intelligent liquor pouring out machine based on AT89C51 micro controller system, comprises sensor assembly, scm managing system and mechanical responder module.Described sensor assembly relates to pressure sensor and wineglass; Described scm managing system relates to AT89C51 micro controller system, motor drive module, stepping motor, aerotron and music player; Described mechanical responder module relates to worm screw, fixed link, spring and bottle.Described wineglass is placed on pressure sensor, so that pressure sensor image data; Described micro controller system is connected with the data terminal of pressure sensor, thus carries out data processing; Described micro controller system is Driving Stepping Motor by control motor drive module, and driving stepper motor motor gear rotates clockwise, and drives worm screw to move down, thus drives bottle mouth to move down, to reach the object of pouring; Described micro controller system connects music player by aerotron; Described worm screw is connected with the curved groove tightening up bottle mouth by spring.Contain wine when wineglass to terminate, after wineglass leaves pressure sensor, pressure sensor passes to micro controller system weight data, micro controller system fast processing then control step motor and driven gear conter clockwise rotates by a small margin, thus the curved groove tightening up bottle mouth is moved up, make bottle mouth up, prevent the wine in bottle from toppling over out.
First measure with pressure sensor that to have contained a(a be constant) the weight b of the wineglass of milliliter wine, and a is the volume of the maximum suitable amount wine contained in wineglass, then pressure sensor passes to micro controller system weight data, and micro controller system record data also store.Then wineglass is placed on above pressure sensor before drinking by alcohol user, and pressure sensor detects weight, and constantly data is passed to micro controller system process.When weighing less than b, micro controller system can control mechanical responder module and carry out pouring operation, and when in pouring process, wineglass weight is greater than b, micro controller system can control mechanical responder module and stop pouring; When the wineglass weight that alcohol user places is greater than b, micro controller system can control the pouring of mechanical responder module refusal; Machinery responder module carrys out drive motor by Single-chip Controlling driver module to be completed.
Further, carry out n(n in specified time c minute determined by alcohol user when pouring operate in) secondary after, micro controller system can calculate the frequency of pouring in c minute, and be the maximum frequency of normal pouring number of times in c minute by the numerical value d(d of itself and storage inside) compare, if frequency is greater than setting value d, illustrate that now alcohol user is in excessive drinking state, now micro controller system can control buzzer warning, control mechanical responder module simultaneously and gradually reduce the delivery volume of each wine until do not provide capacity for liquor, then control outside music player and play the song of releiving, to reach the object regulating alcohol user's mood.
Further, the curved groove tightening up bottle body is connected with fixed link, and the curved groove tightening up bottle mouth is connected with worm screw by spring, and spring plays buffering when bottle mouth moves up or down, and prevents the wine spilling in bottle as far as possible.Motor gear clickwise can drive worm screw to move down to control pouring, and motor gear left-hand revolution can drive worm screw to move up and control bottle mouth partially upward, after preventing wineglass from leaving pressure sensor, bottle mouth down causes wine to flow to the situation of outside.Described motor gear is upwards moved down by rack drives worm screw; Wineglass on described pressure sensor should in the partial below of bottle mouth, and the wine as far as possible met in bottle does not flow to the requirement outside wineglass; Described fixed link upper bush and fixed link are connected, and topple over for preventing fixed link; Described worm screw can move up and down through another sleeve, and the cross bar connecting two sleeves plays and prevents the sleeve of worm screw from moving with worm screw and the effect of movement.
The beneficial effect of the application is: by capacity for liquor remaining in automatic decision wineglass, and changes music that the size of pouring amount and broadcasting releive to alleviate the injury of alcohol to human body according to the frequency that people drink, and reaches the object that alcohol user's health is drunk.
Accompanying drawing explanation
Fig. 1 is the physical construction schematic diagram of the application;
Fig. 2 is the connection diagram of micro controller system sensor in the application;
Fig. 3 is the design of electronic circuits figure of micro controller system sensor in the application.
Detailed description of the invention
Below in conjunction with accompanying drawing, the application is described further:
In figure: 1-bottle, 2-fixed link, 3-stepping motor, 4-worm screw, 5-spring, 6-tooth bar, 7-gear, 8-tightens up the curved groove of bottle mouth, and 9-tightens up the curved groove of body, 10-worm screw upper bush, 11-fixed link upper bush, 12-cross bar, 13-AT89C51 micro controller system, 14-wineglass, 15-pressure sensor.
Based on an intelligent liquor pouring out machine for AT89C51 micro controller system, comprise sensor assembly, scm managing system and mechanical responder module.Sensor assembly relates to pressure sensor 15 and wineglass 14; Scm managing system relates to AT89C51 micro controller system 13, motor drive module, stepping motor 3, aerotron and music player; Machinery responder module relates to worm screw 4, fixed link 2, spring 5 and bottle 1.Wineglass 14 is placed on pressure sensor 15, so that pressure sensor 15 image data.Micro controller system 13 is connected with the data terminal of pressure sensor 15, thus carries out data processing; Micro controller system 13 is by controlling motor drive module Driving Stepping Motor 3, and stepping motor 3 drive motor gear 7 rotates clockwise, and drives worm screw 4 to move down, thus drives the moving down, to reach the object of pouring of bottle mouth; Micro controller system 13 connects music player by aerotron.Worm screw 4 is connected with the curved groove 8 tightening up bottle mouth by spring 5.Contain wine when wineglass 14 to terminate, after wineglass 14 leaves pressure sensor 15, pressure sensor 15 passes to micro controller system 13 weight data, micro controller system 13 fast processing then control step motor 3 driven gear 7 conter clockwise is rotated by a small margin, thus the curved groove 8 tightening up bottle mouth is moved up, make bottle mouth up, prevent the wine of bottle 1 li from toppling over out.This device by the remaining capacity for liquor of 14 li, automatic decision wineglass, and changes according to the frequency that people drink the music that the size of pouring amount and broadcasting releive and reaches the object that alcohol user's health is drunk.
As shown in Figure 2, first measure with pressure sensor 15 that to have contained a(a be constant) the weight b of the wineglass 14 of milliliter wine, and the volume of the maximum suitable amount wine that a is 14 li, wineglass have been contained, then pressure sensor 15 passes to micro controller system 13 weight data, and micro controller system 13 records data and stores.Then wineglass 14 is placed on above pressure sensor 15 before drinking by alcohol user, and pressure sensor 15 detects weight, and constantly data is passed to micro controller system 13 and process.When weighing less than b, micro controller system 13 can control mechanical responder module and carry out pouring operation, and when in pouring process, wineglass 14 weight is greater than b, micro controller system 13 can control mechanical responder module and stop pouring; When wineglass 14 weight that alcohol user places is greater than b, micro controller system 13 can control the pouring of mechanical responder module refusal; Machinery responder module controls driver module by micro controller system 13 to be carried out drive motor and completes.Carry out n(n in specified time c minute determined by alcohol user when pouring operate in) secondary after, micro controller system 13 can calculate the frequency of pouring in c minute, and be the maximum frequency of normal pouring number of times in c minute by the numerical value d(d of itself and storage inside) compare, if frequency is greater than setting value d, illustrate that now alcohol user is in excessive drinking state, now micro controller system 13 can control buzzer warning, control mechanical response part simultaneously and gradually reduce the delivery volume of each wine until do not provide capacity for liquor, then control outside music player and play the song of releiving, to reach the object regulating alcohol user's mood.
In addition, as shown in Figure 1, the curved groove 9 tightening up body is connected with fixed link 2, and the curved groove 8 tightening up bottle mouth is connected with worm screw 4 by spring 5, and spring 5 plays buffering when bottle mouth moves up or down, prevent the wine spilling of bottle 1 li as far as possible and go out.Motor gear clickwise can drive worm screw 4 to move down to control pouring, and motor gear left-hand revolution can drive worm screw 4 to move up and control bottle mouth partially upward, after preventing wineglass 14 from leaving pressure sensor 15, bottle mouth down causes wine to flow to the situation of outside.Motor gear 7 drives worm screw 4 upwards to move down by tooth bar 6.Wineglass 14 on pressure sensor 15 should in the partial below of bottle mouth, and the wine as far as possible meeting bottle 1 li does not flow to the requirement outside wineglass 14.Fixed link upper bush 11 and fixed link 2 are connected, and topple over for preventing fixed link 2.Worm screw 4 can move up and down through another sleeve 10, and the cross bar 12 connecting two sleeves plays and prevents worm screw upper bush 10 from moving with worm screw 4 and the effect of movement.