The utility model content:
The purpose of this utility model is to consider the problems referred to above and a kind of charged pool is provided and is with the higher rice cooker controller with memory function of cost performance of power down demonstration.The utility model is when normal power-up, and the operating voltage that civil power provides is higher than cell voltage, makes battery be in standby not loss state, LCD rice cooker controller energy operate as normal and demonstration; And external power source disappears during power down, enables powered battery automatically, and single-chip microcomputer changes power down mode over to, suspends the work of all big power consumptions, and keeps the demonstration of LCD.
Theory diagram of the present utility model as shown in Figure 1, include CPU 1, power-supplying circuit 2, voltage comparator circuit 3, power-fail detection circuit 4, key press detecting circuit 5, sensor detection circuit 6, LCD display circuit 7, heat-generating disc control circuit 8, wherein the input interface of CPU 1 is connected with power-supplying circuit 2, voltage comparator circuit 3, power-fail detection circuit 4, key press detecting circuit 5, sensor detection circuit 6 respectively, and the output interface of CPU 1 is connected with LCD display circuit 7, heat-generating disc control circuit 8 respectively.
Above-mentioned CPU 1 is a single-chip microcomputer.
Above-mentioned power-supplying circuit 2 is a capacitance-resistance pressure drop full-wave rectifying circuit, include the full-wave rectifying circuit, Zener diode Z1, capacitor C 1, the C2 that form by diode D1~D4, resistance R 1, R2, civil power is through capacitor C 1, C2, resistance R 1, R2 provide stabling current to circuit, the full-wave rectifying circuit rectification that current source is formed via diode D1~D4, through Zener diode Z1 voltage stabilizing, supply with the The whole control circuit again.
Above-mentioned voltage comparator circuit 3 includes integrated package of pressure-stabilizing U2, diode D6, D7, capacitor C 3, C18, C6, C7, resistance R 3~R6, wherein capacitor C 3, one end of the parallel circuit that C18 forms respectively with the end of integrated package of pressure-stabilizing U2, one end of resistance R 4, capacitor C 6, the end of C7 and the negative pole of battery BAT1 connect, capacitor C 3, the other end of the parallel circuit that C18 forms by resistance R 3 respectively with the other end of integrated package of pressure-stabilizing U2, one end of resistance R 5, the anode of diode D6 connects, the negative electrode of diode D6 respectively with capacitor C 6, the other end of C7, the negative electrode of diode D7 connects, and the anode of diode D7 is connected with the positive pole of battery BAT1 by resistance R 6.
Above-mentioned power-fail detection circuit 4 comprises the integer circuit of being made up of resistance R 23, R24, R22 and triode Q6, the base stage of triode Q6 is connected by the full-wave rectifying circuit of being made up of diode D1~D4 in resistance R 23 and the power-supplying circuit 2, the colelctor electrode of triode Q6 is connected with power vd D by resistance R 22, the grounded emitter of triode Q6, resistance R 24 are connected between the base stage and emitter stage of triode Q6.
Above-mentioned key press detecting circuit 5 comprises the plurality of keys K1~K5 that is connected with resistance R 11, and plurality of keys K1~K5 is connected the internal pull-up resistor of I/O mouth and resistance R 11 formation bleeder circuits with the I/O mouth that single-chip microcomputer has the pull-up resistor function.
The sensor testing circuit 6 comprises temperature sensor RT, resistance R 9, R13, after temperature sensor RT and the fixed resistance R13 dividing potential drop, analog voltage signal is input to the AD conversion mouth of single-chip microcomputer by resistance R 9.
Said temperature sensor RT is a thermistor.
Above-mentioned LCD display circuit 7 is LCD LCD, and the SEG mouth of LCD LCD is connected with the SEG mouth of single-chip microcomputer, and the com port of LCD LCD is connected with the com port of single-chip microcomputer.
Above-mentioned heat-generating disc control circuit 8 comprises triode Q4, relay R L1, the base stage of triode Q4 is connected with the I/O mouth of single-chip microcomputer to reach by resistance R 19 passes through resistance R 31 ground connection, the grounded emitter of triode Q4, the colelctor electrode of triode Q4 is connected with relay R L1, and heat-generating disc HEAT1 is connected with power supply by the contact of relay R L1.
The utility model disconnects the current supply circuit of battery when normal power-up is used, only use civil power that the power supply of automatically controlled plate is provided, and can normally receive the input of other signal, and carries out corresponding load output and handle; And the automatic battery that starts is powered to single-chip microcomputer when power down, but stops input and other load output of other signal, makes single-chip microcomputer enter battery saving mode, and can keep the demonstration of LCD, guarantees the service life of battery.The utility model is that a kind of design is ingenious, function admirable, the convenient and practical rice cooker controller with memory function.
The specific embodiment:
Embodiment:
Theory diagram of the present utility model as shown in Figure 1, include CPU 1, power-supplying circuit 2, voltage comparator circuit 3, power-fail detection circuit 4, key press detecting circuit 5, sensor detection circuit 6, LCD display circuit 7, heat-generating disc control circuit 8, wherein the input interface of CPU 1 is connected with power-supplying circuit 2, voltage comparator circuit 3, power-fail detection circuit 4, key press detecting circuit 5, sensor detection circuit 6 respectively, and the output interface of CPU 1 is connected with LCD display circuit 7, heat-generating disc control circuit 8 respectively.
Above-mentioned CPU 1 is a single-chip microcomputer, select Samsung 9228 chips for use, when the main 4.2M that shakes is following, operating voltage is that 2.0V is to 5.5V, it has 36 I/O mouths, have electricity-saving function, and there is nearly 128 LCD driver module inside, the master of its chip shake with secondary shake to require to set according to different power consumptions open or stop, the battery saving mode power consumption maximum of chip under 3V is no more than 15 microamperes, calculate by the twist button battery that uses 550 MAHs, 550 * 1000/15 ≈ 36667 hours, promptly 36667/ (24 * 365) ≈ is 4.19 years.If by maximum power down power consumption calculation, by theoretical value result of calculation as can be known: no power was all no problem in continuous 4 years, if in these 4 years energising work is arranged, the life-span that battery uses just has been lengthened to the conduction time of accumulative total.
The circuit diagram of above-mentioned power-supplying circuit 2 as shown in Figure 3, be capacitance-resistance pressure drop full-wave rectifying circuit, include the full-wave rectifying circuit, Zener diode Z1, capacitor C 1, the C2 that form by diode D1~D4, resistance R 1, R2, civil power be through capacitor C 1, C2, resistance R 1, R2, provide stabling current to circuit, the full-wave rectifying circuit rectification that current source is formed via diode D1~D4 again through Zener diode Z1 voltage stabilizing, is supplied with the The whole control circuit.Wherein C2 is a polarity free capacitor, and D1~D4 is the 1N4007 diode, is 220VAC at civil power, when C2 is 1uF, can provide the stabling current of about 60mA to circuit.Current source is supplied with the The whole control circuit through rectification, Z1 voltage stabilizing.
The circuit diagram of above-mentioned voltage comparator circuit 3 as shown in Figure 4, include integrated package of pressure-stabilizing U2, diode D6, D7, capacitor C 3, C18, C6, C7, resistance R 3~R6, wherein capacitor C 3, one end of the parallel circuit that C18 forms respectively with the end of integrated package of pressure-stabilizing U2, one end of resistance R 4, capacitor C 6, the end of C7 and the negative pole of battery BAT1 connect, capacitor C 3, the other end of the parallel circuit that C18 forms by resistance R 3 respectively with the other end of integrated package of pressure-stabilizing U2, one end of resistance R 5, the anode of diode D6 connects, the negative electrode of diode D6 respectively with capacitor C 6, the other end of C7, the negative electrode of diode D7 connects, and the anode of diode D7 is connected with the positive pole of battery BAT1 by resistance R 6.Integrated package of pressure-stabilizing U2 is TL431, diode D6 is 4007, its course of work is: when power supply power supply operate as normal, when there is the power supply power supply in system, the electric cooker operate as normal, Vo passes through the U2 voltage stabilizing from POWER, R5=390 ohm, R4=680 ohm according to Vo=(1+R5/R4) * Vref, can get: Vo=(1+390/680) * 2.5 ≈ 3.93V; Because D6 is 4007 diodes, forward voltage drop is about 0.65V, the voltage of VDD during energising: VDD=Vo-0.65 ≈ 3.93-0.65=3.28V.And the voltage of the battery of selecting for use is 3V, and the VDD when then switching on is greater than cell voltage, and battery is in off-state, not consume battery power.When power cut-off is not worked, power cut-off, when electric cooker was not worked, the voltage of Vo was 0V, and the voltage of VDD can only directly be supplied with by battery, because the existence of diode D6, the electric current of battery can not flow to Vo from VDD, has reduced the energy loss of battery.
The circuit diagram of above-mentioned power-fail detection circuit 4 is shown in Fig. 5-1, comprise the integer circuit of forming by resistance R 23, R24, R22 and triode Q6, the base stage of triode Q6 is connected by the full-wave rectifying circuit of being made up of diode D1~D4 in resistance R 23 and the power-supplying circuit (2), the colelctor electrode of triode Q6 is connected with power vd D by resistance R 22, the grounded emitter of triode Q6, resistance R 24 are connected between the base stage and emitter stage of triode Q6.Triode Q6 is 9014.The bridge rectifier that sinusoidal voltage VAC forms through D1, D2, four diodes of D3, D4 carries out rectification, the voltage waveform that makes ZERO is shown in Fig. 5-2, behind the integer circuit of ZERO through resistance R 23, R24, R22 and triode Q6 composition, the waveform of int0 is shown in Fig. 5-3, waveform when therefore, int0 works is the consecutive pulses waveform.Yet during as if system cut-off, the waveform of int0 is shown in Fig. 5-4, and this moment, the waveform of int0 was a dc waveform.This shows,, just can determine current "on" position or the power-down state of being in of system by the voltage waveform of single-chip microcomputer detection int0.In order to make things convenient for processing to the int0 signal, the int0 signal is supplied with single-chip microcomputer as the outer interrupt request singal of single-chip microcomputer, single-chip microcomputer adopts interrupt mode to detect the power supply state of judgement system, and the system data during in time to outage is protected processing.As seen single-chip microcomputer just can be able to be determined that current state has been energising or power down, and detect for convenience by detecting the voltage waveforms of this int0, generally uses the outer interruption of single-chip microcomputer to handle the int0 signal.
The circuit diagram of above-mentioned key press detecting circuit 5 as shown in Figure 6, comprise the plurality of keys K1~K5 that is connected with resistance R 11, and plurality of keys K1~K5 is connected with the I/O mouth that single-chip microcomputer has the pull-up resistor function, and the internal pull-up resistor of I/O mouth and resistance R 11 form bleeder circuit.When system's supply voltage was 3V, the representative value of the internal pull-up resistor of single-chip microprocessor MCU 9228 was 90K Ω.Before the key scan, I/O mouth that must button connected is set to the internal pull-up resistor input state by register, has judged whether that by the level that detects the I/O mouth button presses.When not having key to press, because the effect of internal pull-up resistor, the input port is a high level.When button was pressed, button and resistance R 11 were connected, and the internal pull-up resistor of corresponding input port and R11 form bleeder circuit, generally get the resistance much less of the resistance value ratio pull-up resistor of R11, and this moment, the level of input port was a low level.When detecting certain button and press, after waiting the button processing, shake enters the function corresponding program by eliminating again.
The circuit diagram of the sensor testing circuit 6 comprises temperature sensor RT, resistance R 9, R13 as shown in Figure 7, by resistance R 9 analog voltage signal is input to the AD conversion mouth of single-chip microcomputer after temperature sensor RT and the fixed resistance R13 dividing potential drop.Said temperature sensor RT is a thermistor.Thermistor has the characteristic of negative temperature coefficient, and temperature is high more, and resistance is low more.After RT and the fixed resistance R13 dividing potential drop, by resistance R 9 AD that analog voltage signal is input to chip is changed mouth, chip is converted into the corresponding digital amount with the voltage signal that collects by the internal mode number converter.
For detected temperatures exactly, need know the actual temperature of the temperature digital amount correspondence after the conversion, for 8 chips, can find actual temperature value by such formula:
RT=(256*R13)\AD-R13
AD is the digital quantity after chip transforms, and can calculate the resistance of corresponding RT by above formula, again by looking into the resistance table of thermistor, can draw actual temperature value.
The circuit diagram of above-mentioned LCD display circuit 7 is LCD LCD as shown in Figure 8, and the SEG mouth of LCD LCD is connected with the SEG mouth of single-chip microcomputer, and the com port of LCD LCD is connected with the com port of single-chip microcomputer.Because rice cooker controller transfers the powered battery of 3V to when power down, for guaranteeing that liquid crystal display still can normally show, choose the liquid crystal display that driving voltage is 3V, single-chip microprocessor MCU 9228 chip internals have nearly 128 liquid crystal driver module, need not external lcd drive chip, only need to send the code that needs show to be specifically designed to the LCD demonstration memory field, single-chip microcomputer just drives the content corresponding of liquid crystal display automatically, and liquid crystal drive shows simple and convenient.But the SEG mouth that is noted that liquid crystal will be connected with the SEG mouth of chip, and the liquid crystal com port will be connected with the chip com port, otherwise can't normally show.
The circuit diagram of above-mentioned heat-generating disc control circuit 8 as shown in Figure 9, comprise triode Q4, relay R L1, the base stage of triode Q4 is connected with the I/O mouth of single-chip microcomputer to reach by resistance R 19 passes through resistance R 31 ground connection, the grounded emitter of triode Q4, the colelctor electrode of triode Q4 is connected with relay R L1, and heat-generating disc HEAT1 is connected with power supply by the contact of relay R L1.When the I/O of single-chip microprocessor MCU chip mouth output high level, the triode conducting, relay coil energising this moment, the relay adhesive, heat-generating disc is connected with power supply and begins to heat; When the I/O of single-chip microprocessor MCU chip mouth output low level, triode is closed, the relay coil no power, and relay disconnects, and heat-generating disc and power supply disconnect and stop heating.Thereby single-chip microcomputer reaches the purpose of light current control forceful electric power by the conducting of controlling triode Q4 and the closed and disconnected of cutting out control relay RL1.