CN105549648A - Vacuum bottle control device based on STM32 - Google Patents

Vacuum bottle control device based on STM32 Download PDF

Info

Publication number
CN105549648A
CN105549648A CN201610030652.9A CN201610030652A CN105549648A CN 105549648 A CN105549648 A CN 105549648A CN 201610030652 A CN201610030652 A CN 201610030652A CN 105549648 A CN105549648 A CN 105549648A
Authority
CN
China
Prior art keywords
thermos
main control
control chip
vacuum bottle
relay
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
Application number
CN201610030652.9A
Other languages
Chinese (zh)
Inventor
张文莉
吴钦木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou University
Original Assignee
Guizhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guizhou University filed Critical Guizhou University
Priority to CN201610030652.9A priority Critical patent/CN105549648A/en
Publication of CN105549648A publication Critical patent/CN105549648A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/20Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature

Abstract

The invention discloses a vacuum bottle control device based on an STM32, and the device comprises a relay which is disposed on a vacuum bottle and is used for controlling the on/off of a vacuum bottle control switch. One output end of a main control chip is connected with the relay, and the main control chip controls the on/off of the relay. A temperature collector disposed on the vacuum bottle is connected with the input end of the main control chip. A liquid crystal display screen with a word stock achieves interconnection with the main control chip. The device can collect the internal temperature of the vacuum bottle in real time, and displays the temperature through an LCD12864 liquid crystal display screen. A user can set the internal temperature of the vacuum bottle in an allowable range through a key. The device is simple and convenient in operation, is very high in cost performance, and can bring great convenience to persons. The device gets rid of a defect that a conventional manufacturing technology completely depends on the vacuum bottle for thermal insulation, and gets rid of the trouble that the temperature of water in the vacuum bottle is unknown. If the device is designed well, the device is good in market prospect and economic benefits.

Description

Based on the thermos control device of STM32
Technical field
The present invention relates to automatic control control technology, especially a kind of thermos control device based on STM32.
Background technology
Along with the raising of modern life level, the requirement of people to life is also more and more higher, and traditional a lot of equipment also follow the step in epoch to constantly update.Thermos is also known as electric kettle, and be the requirement in people's daily life, each family can be equipped with.The double-deck wall vase that present thermos vacuumizes within being all is inner bag, and add that shell forms the container of insulation with this, people are contained in boiling water in thermos, to drink when needing.But traditional thermos is due to material and manufacture, and heat insulation effect alternates betwwen good and bad, and boiling water place a period of time after just do not know the temperature in bottle.Bring inconvenience to drinking of people, and a lot of people directly can outwell the boiling water of cooling, very waste water resource.
Summary of the invention
Technical matters to be solved by this invention is: provide a kind of structure simple, the thermos control device of working stability, to overcome the deficiencies in the prior art.
The present invention is achieved in that
A kind of thermos control device based on STM32, comprise and being arranged on thermos for controlling the relay of thermos gauge tap break-make, main control chip one output terminal connects relay and the opening and closing of pilot relay, be arranged on the Temperature sampler on thermos to be connected with the input end of main control chip, LCDs and the main control chip of band character library realize interconnected.
Aforesaid a kind of based in the thermos control device of STM32, the LCDs of described band character library adopts LCD12864 model, 12864 liquid crystal 5V voltage driven, band backlight, the built-in dot matrix of 16X16,128 characters and 64X256 lattice display RAM, interface microcontroller adopts mode that is parallel or serial to control.128X64 with Chinese word library is the display module that GB one-level, secondary simplified form of Chinese Character character library are contained in a kind of inside, and there are 8192 Chinese characters the inside.
Aforesaid a kind of based in the thermos control device of STM32, described main control chip adopts STM32F103ZET6 as main control chip.
Aforesaid a kind of based in the thermos control device of STM32, described Temperature sampler adopts DS18B20 module.
Owing to have employed technique scheme, compared with prior art, the present invention can temperature in Real-time Collection bottle, shown by LCD12864 LCDs, user can to carry out the setting in allowable range to the temperature in bottle by button, simple to operation, and cost performance is very high, can bring very large convenience by this cover system.Break away from traditional manufacturing process of thermos of leaning on completely and realized the drawback be incubated, solve the worry that water in bottle temperature is unknown.If designed, having is very greatly market and economic benefit.
Accompanying drawing explanation
Accompanying drawing 1 is structural framing figure of the present invention;
Accompanying drawing 2 is LCD12864 hardware circuit diagrams in the present invention;
Accompanying drawing 3 is interface principle figure of JLINK and serial ports in the present invention;
Accompanying drawing 4 is power button and LED schematic diagrams in the present invention;
Accompanying drawing 5 is repeat circuit hardware circuit diagrams of the present invention;
Accompanying drawing 6 is pinoutss of main control chip in the present invention;
Accompanying drawing 7 is overall flow figure of the present invention;
Accompanying drawing 8 is the workflow diagrams of LCD12864 in the present invention;
Accompanying drawing 9 is control flow charts of repeat circuit of the present invention;
Accompanying drawing 10 is temperature acquisition process flow diagrams in the present invention.
Embodiment
Embodiments of the invention: a kind of thermos control device based on STM32, as shown in Figure 1, comprise and being arranged on thermos for controlling the relay 1 of thermos gauge tap break-make, main control chip 2 one output terminal connects relay 1 and the opening and closing of pilot relay, the Temperature sampler 3 be arranged on thermos is connected with the input end of main control chip 2, and the LCDs 4 of band character library realizes interconnected with main control chip 2.
Wherein the LCDs 4 of this band character library adopts LCD12864 model, 12864 liquid crystal 5V voltage driven, band backlight, the built-in dot matrix of 16X16,128 characters and 64X256 lattice display RAM, and interface microcontroller adopts mode that is parallel or serial to control.128X64 with Chinese word library is the display module that GB one-level, secondary simplified form of Chinese Character character library are contained in a kind of inside, and there are 8192 Chinese characters the inside, and this main control chip 2 adopts STM32F103ZET6 as main control chip, and this Temperature sampler 3 adopts DS18B20 module.
The principle of the present embodiment is: by STM32 as main control chip, by the sensor of DS18B20, temperature information is gathered, give STM32 process, then show accordingly at display module 12864, user just can know water in bottle temperature very easily, and can pass through button design temperature, relay makes the water temperature in bottle raise by closed heater switch, keeps the temperature in bottle with this; Wherein the hardware platform of system is with STM32 series processors STM32F103ZET6 for core, the LCD12864 LCD MODULE of Temperature sampler DS18B20 module, band character library and relay module composition.STM32 system can be communicated with host computer by serial ports, also can be carried out the amendment of program by JLINK downloader, constitute the thermos system based on STM32.
Particular hardware designs
One, LCD12864 is with the LCDs hardware design of character library
12864 liquid crystal 5V voltage driven, band backlight, the built-in dot matrix of 16X16,128 characters and 64X256 lattice display RAM, interface microcontroller adopts mode that is parallel or serial to control.128X64 with Chinese word library is the display module that GB one-level, secondary simplified form of Chinese Character character library are contained in a kind of inside, and there are 8192 Chinese characters the inside.This module interface is simple, easy to use.Both can also can Show Picture by Display of Chinese characters, the display interface being used for doing temperature control is completely enough.
1, LCD12864 principle of work
As shown in Table 1, need to carry out adjusting screen brightness with the 3rd pin.7 to 14 pins be used for data transmission, 15 pins are gone here and there and select, and executed in parallel efficiency is higher.This design be also select parallel mode, can PSB be set high software control, also can hardware directly by 15 pin VCC.The I/O that RS, R/W, E these 3 controls mouth can be used when programming.Concrete realization has introduction in the middle of software.
2, LCD12864 instruction list
12864 feature richness, as shown in table 2.Need when coding to control 12864 according to instruction.Form describes the basic instruction set of 12864, does not substantially use for this design of expansion instruction set.
3, LCD12864 hardware circuit
The data port of 12864 is directly connected with the PA mouth of STM32, adopts parallel data-transmission mode to control display, the temperature that display is current in real time.As shown in Figure 2.
Two, download and serial communication modular
This implementation column can also adopt JLINKV8 to do download and the in-circuit emulation of program, and the serial ports of DB9 is used for the communication between single-chip microcomputer and PC.Have employed the accurate JTAG debugging interface of 20 pin mark, can directly be connected with emulators such as JLINK, ULINK, its interface principle figure as shown in Figure 3.
Three, power button and LED module
System provides two buttons, can carry out man-machine interaction by key-press input; 3 LED light, can be used for display routine running status, facilitate programmer to debug.One end of LED, is directly connected with the I/O mouth of single-chip microcomputer, just can be realized the light on and off of LED by control I/O mouth level.
STM32ZET6 single-chip microcomputer is that 3.3V powers, and outside input 5V power supply is supplied to single-chip minimum system through voltage transitions output voltage.Its schematic diagram as shown in Figure 4.
Four, relay wooden unit
By the coil electricity of STM32 pilot relay, original normally off just disconnects by relay, then links together with another pin.By controlling light current, thus allow relay according to the function action needed, reducing the danger of staff, is a kind of conventional control forceful electric power method.Because relay controls big current usually, for security consideration, relay coil side generally can connect backward dioded, protection circuit.The hardware connection of relay as shown in Figure 5.
Five, DS18B20 module
The Core Feature of this module is the Temperature sampler of direct reading word.9,10,11,12 can be programmed according to accuracy requirement, increase progressively with 0.5 DEG C, 0.25 DEG C, 0.125 DEG C, 0.0625 DEG C respectively.The acquiescence that powers on is 12, and this design is also the default value adopted, and is namely the precision of 0.0625.This module only has 3 pins, be respectively power supply, and data I/O pin.Hardware only needs an I/O port to carry out connection control, accurately very convenient.
Six, main control chip
Native system selects STM32F103ZET6 as main control chip, STM32F103 series microprocessor is first 32 standard RISC (reduced instruction set computer) processors based on ARMCortex-M3 architecture, very high code efficiency is provided, the storage space of usual 8 and sixteen-bit system has played the high-performance of ARM kernel.This series microprocessor frequency of operation is 72MHz, the SRAM of the built-in flash storage up to 128K byte and 20K byte, has abundant general purpose I/O port.Communication interface containing abundant: three USART asynchronous serial communication interfaces, two I2C interfaces, two SPI interfaces, a CAN interface and USB interface, provide guarantee for realizing data communication.STM32F103ZET6 chip pin figure as shown in Figure 6.
For better showing annexation and the application of device in this implementation column, a set of software matched with device in this implementation column is adopted to specifically describe.
Fig. 7 is overall flow figure, is mainly controlled the operation of each peripheral hardware by the STM32 of Cortex-M3 architecture.STM32 minimum system realizes, scan round button function and liquid crystal display function in principal function.Key scan function is mainly through the setting of the control realization temperature bound of 2 buttons, and setting needs the temperature of arrival.Then these information liquid crystal display functions are presented at above screen.STM32, by the break-make of pilot relay, realizes the closed of peripheral heater circuit, about allowing temperature remain on design temperature.Thus realize controlling the temperature in thermos and showing in real time.
Wherein LCD12864 function module mainly shows in real time to the temperature of thermos, visually the thresholding of temperature, setting value, Current Temperatures is presented at corresponding position.The subroutine voidLCD_Write_Cmd (ucharcommand) of this module this be the function of LCD write order, complete this function according to the sequential chart of write order.The data port of PA mouth and 12864 couples together by hardware, and software is by this parameter of command, and the command routing that will write, to PA mouth, realizes the basic operation to 12864, and the such as instruction such as cls, displacement needs to call this function.VoidLCD_Write_Dat (uchardat) this be the function that LCD writes data, call this function when wanting Display of Chinese characters, picture on screen.Because when will show on a display screen, need first assigned address, then write data in this address.The function voidLCD_Position (ucharX, ucharY) of write address, the function of this function is place cursor being moved on to the capable Y row of X, then calls the function writing data, just can write the data that will show successively at this initial address of X and Y.There is the function that these are basic, just can show some simple Chinese characters and figure on 12864.This partial software process flow diagram as shown in Figure 8.
The design of button and Control function mainly realizes man-machine interaction, and temperature in the bottle being gone to arrange expectation by button, is shown in LCDs simultaneously.If temperature is lower than preferred temperature in bottle, main control chip closes with regard to pilot relay, and peripheral heater circuit is just closed realizes heating function.Thus namely ensure that temperature in bottle, out also Temperature displaying in bottle, the use of very convenient user, solves the drawback of conventional vacuum flask simultaneously.The program circuit of this part as shown in Figure 9.
DS18B20 temperature collect module mainly realizes the collection to temperature, and carried out the output of data by the data port of DS18B20, the program circuit of this part as shown in Figure 10.
The present embodiment, as a kind of new design philosophy, has been broken the limitation relying on manufacturing process insulation completely, the technology of New Times has been embedded in the middle of daily life.Not only design price low, and be practically applicable to each family, there is boundless market.Only need when manufacture, change traditional method for designing and just can realize.
Applied by the STM32 high to cost performance, with conventional thermos for application, have devised the thermos based on STM32F103 series, complete and the hardware principle of modules is designed, by having carried out the overall software plan of system to actual demand, then the software of each submodule is designed.Simultaneously the design also has serial ports and can communicate with host computer PC, also can modify and expansion to program as required, be downloaded by JLINK mouth to program.Achieve and carry out realization collection to the temperature in thermos, in the display of LCD12864 display screen, relay controls heater circuit.Substantially reach re-set target, there is very large practicality.
The description of such scheme is the invention can understood for ease of those skilled in the art and use.Person skilled in the art obviously easily can make various amendment to embodiment.Therefore, the invention is not restricted to above-mentioned solid yardage case, those skilled in the art, according to method of the present invention, do not depart from improvement that scope makes and amendment all should within protection scope of the present invention.

Claims (4)

1. the thermos control device based on STM32, comprise and being arranged on thermos for controlling the relay (1) of thermos gauge tap break-make, it is characterized in that: main control chip (2) output terminal connects relay (1) and the opening and closing of pilot relay, the Temperature sampler (3) be arranged on thermos is connected with the input end of main control chip (2), and the LCDs (4) of band character library realizes interconnected with main control chip (2).
2. a kind of thermos control device based on STM32 according to claim 1, it is characterized in that: the LCDs (4) of described band character library adopts LCD12864 model, 12864 liquid crystal 5V voltage driven, band backlight, the built-in dot matrix of 16X16,128 characters and 64X256 lattice display RAM, interface microcontroller adopts mode that is parallel or serial to control, 128X64 with Chinese word library is the display module that GB one-level, secondary simplified form of Chinese Character character library are contained in a kind of inside, and there are 8192 Chinese characters the inside.
3. a kind of thermos control device based on STM32 according to claim 1, is characterized in that: described main control chip (2) adopts STM32F103ZET6 as main control chip.
4. a kind of thermos control device based on STM32 according to claim 1, is characterized in that: described Temperature sampler (3) adopts DS18B20 module.
CN201610030652.9A 2016-01-18 2016-01-18 Vacuum bottle control device based on STM32 Pending CN105549648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610030652.9A CN105549648A (en) 2016-01-18 2016-01-18 Vacuum bottle control device based on STM32

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610030652.9A CN105549648A (en) 2016-01-18 2016-01-18 Vacuum bottle control device based on STM32

Publications (1)

Publication Number Publication Date
CN105549648A true CN105549648A (en) 2016-05-04

Family

ID=55828883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610030652.9A Pending CN105549648A (en) 2016-01-18 2016-01-18 Vacuum bottle control device based on STM32

Country Status (1)

Country Link
CN (1) CN105549648A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3136182U (en) * 2006-08-09 2007-10-18 ツァン クエン(チャイナ) エンタープライズ カンパニー,リミティッド Electronic temperature control electric kettle
US20120103562A1 (en) * 2010-11-02 2012-05-03 Clayton Alexander Heated or cooled dishwasher safe dishware and drinkware
CN203378990U (en) * 2013-07-05 2014-01-08 中国计量学院 Milk heating device based on MCH (metal ceramics heater)
CN204557243U (en) * 2015-04-20 2015-08-12 哈尔滨理工大学 Intelligent heater and intelligent vehicle-carried electric cup
CN205594474U (en) * 2016-01-18 2016-09-21 贵州大学 Thermos controlling means based on STM32

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3136182U (en) * 2006-08-09 2007-10-18 ツァン クエン(チャイナ) エンタープライズ カンパニー,リミティッド Electronic temperature control electric kettle
US20120103562A1 (en) * 2010-11-02 2012-05-03 Clayton Alexander Heated or cooled dishwasher safe dishware and drinkware
CN203378990U (en) * 2013-07-05 2014-01-08 中国计量学院 Milk heating device based on MCH (metal ceramics heater)
CN204557243U (en) * 2015-04-20 2015-08-12 哈尔滨理工大学 Intelligent heater and intelligent vehicle-carried electric cup
CN205594474U (en) * 2016-01-18 2016-09-21 贵州大学 Thermos controlling means based on STM32

Similar Documents

Publication Publication Date Title
CN204287315U (en) Based on the power monitoring system of STM32F103 microcontroller
CN204904716U (en) Electron perpetual calendar based on singlechip
CN205423260U (en) Intelligence control by temperature change environmental protection fan
CN105554978A (en) Energy-saving system for intelligently controlling lighting of classrooms employing bluetooths
CN206708501U (en) A kind of valve controling circuit of heating system and the control system using the circuit
CN206700414U (en) traditional Chinese medicine decocting device
CN205193644U (en) Plant factory control system
CN201814382U (en) Intelligent water dispenser
CN205594474U (en) Thermos controlling means based on STM32
CN105549648A (en) Vacuum bottle control device based on STM32
CN206162211U (en) Temperature control system based on bluetooth communication module
CN205210741U (en) Green house humiture system of observing and controling
CN109883061A (en) The control system of space energy Teat pump boiler
CN208538246U (en) A kind of intellective IC card mobile device based on Bluetooth technology
CN208400296U (en) A kind of aquarium WIFI control device
CN204533644U (en) A kind of water-mixing valve with temperature indicator
CN203848940U (en) Temperature top and bottom limitation alarm
CN209043956U (en) A kind of device that can indoors indicate current rate electricity price in real time
CN112380076A (en) Mobile terminal performance testing method and device based on photoinduction
CN205648146U (en) Classroom intelligence illumination management device
CN109116075A (en) A kind of device that can indoors indicate current rate electricity price in real time
CN109655167A (en) A kind of SCM Based instant temp measuring system of family's multiple spot
CN202184053U (en) Oxygen supply and temperature automatic control device for fish bowl
CN201222188Y (en) On-site data gathering device
CN201522642U (en) Intelligent rolling and unrolling controller of vinyl house

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination