Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of control device of Massage sofa, can simulate the massage effect that fist raps, the temperature of fever tablet is controlled in the temperature-control range, avoid occurring overheated or the electric leakage situation.
In order to achieve the above object, the present invention has taked following technical scheme:
A kind of control device of Massage sofa is used for the motion of control electric hammer and realizes massage functions and the heating of control fever tablet, and it comprises:
Load module is used for reception control signal and is transferred to MCU;
The zero passage detection module for the negative voltage of filtering electric main, produces pulse signal starting MCU;
MCU is used for parsing the work of corresponding steering order control electric hammer control module according to control signal, opens and closes heating module according to corresponding steering order, and opens and closes heating module according to the current temperature modification steering order of fever tablet;
The electric hammer control module is used for the motion of control electric hammer;
Heating module is used for the heating of control fever tablet;
Temperature detecting module is for detection of the temperature of fever tablet;
Described MCU connects load module, zero passage detection module, electric hammer control module, heating module and temperature detecting module.
In the control device of described Massage sofa; the 6th pin of described MCU connects the output terminal of zero passage detection module; the 12nd pin of MCU connects the input end of heating module; the 17th, 18 pin of MCU connect load module; the 21st, 22,23,24,25,26 pin of MCU all connect the electric hammer control module; the 20th pin of MCU is by protection capacity earth, the 19th pin ground connection of MCU.
In the control device of described Massage sofa, described zero passage detection module comprises the first resistance, the second resistance, the 3rd resistance, the 4th resistance, diode and photoelectrical coupler; The model of described photoelectrical coupler is P521; The 1st pin of described photoelectrical coupler connects the negative pole of diode, and the 2nd pin of photoelectrical coupler connects zero line side, and the 3rd pin of photoelectrical coupler connects the 6th pin of MCU, the 4th pin ground connection of photoelectrical coupler by the 3rd resistance; The positive pole of described diode connects the live wire end by the second resistance, the first resistance successively; One end of described the 4th resistance connects the first feeder ear, and the other end of the 4th resistance connects the 6th pin of MCU, also connects the 3rd pin of photoelectrical coupler by the 3rd resistance.
In the control device of described Massage sofa, described load module comprises input interface, the 5th resistance and the 6th resistance; The 1st pin of described input interface connects the second feeder ear, the 2nd pin of input interface connect MCU the 18th pin, also connect the second feeder ear by the 6th resistance, the 3rd pin of input interface connect MCU the 17th pin, also connect the second feeder ear by the 5th resistance, the 4th pin ground connection of input interface.
In the control device of described Massage sofa, described electric hammer control module comprises control module and interface circuit, and described control module comprises the first control module, the second control module, the 3rd control module, the 4th control module, the 5th control module, the 6th control module; Described interface circuit comprises the first electric hammer interface, the second electric hammer interface, the 3rd electric hammer interface, the 4th electric hammer interface, the 5th electric hammer interface and the 6th electric hammer interface; The input end of described the first control module, the second control module, the 3rd control module, the 4th control module, the 5th control module, the 6th control module connects respectively the 21st pin, the 22nd pin, the 23rd pin, the 24th pin, the 25th pin, the 26th pin of MCU; The output terminal of the first control module, the second control module, the 3rd control module, the 4th control module, the 5th control module, the 6th control module connects respectively the 1st pin of the first electric hammer interface, the 1st pin of the second electric hammer interface, the 1st pin of the 3rd electric hammer interface, the 1st pin of the 4th electric hammer interface, the 1st pin of the 5th electric hammer interface, the 1st pin of the 6th electric hammer interface; The first electric hammer interface, the second electric hammer interface, the 3rd electric hammer interface, the 4th electric hammer interface, the 5th electric hammer interface and the 2nd pin of the 6th electric hammer interface all connect the live wire end.
In the control device of described Massage sofa, described the first control module comprises the 7th resistance, the 8th resistance, the 9th resistance, the tenth resistance, the 11 resistance, the first electric capacity, photoelectric coupling chip, bidirectional triode thyristor thyristor and the first triode; The 1st pin of described photoelectric coupling chip connects the first feeder ear by the 8th resistance, the 2nd pin of photoelectric coupling chip connects the collector of the first triode, the 4th pin of photoelectric coupling chip connects the gate utmost point of bidirectional triode thyristor thyristor, and the 6th pin of photoelectric coupling chip connects an end of the 9th resistance; The base stage of described the first triode connects the 21st pin of MCU, the grounded emitter of the first triode by the 7th resistance; The first anode of described bidirectional triode thyristor thyristor connects the live wire end, also connects successively the other end of the 9th resistance by the first electric capacity, the tenth resistance; The second anode of bidirectional triode thyristor thyristor connects the other end of the 9th resistance and the 1st pin of the first electric hammer interface; One end of described the 11 resistance connects the base stage of the first triode by the 7th resistance, the other end ground connection of the 11 resistance.
In the control device of described Massage sofa, the model of described photoelectric coupling chip is MOC3020, and the model of described bidirectional triode thyristor thyristor is BAT16-600B, and described the first triode is the NPN triode.
In the control device of described Massage sofa, described heating module comprises the 12 resistance, the 13 resistance, the 14 resistance, the second triode, the 3rd metal-oxide-semiconductor and adds hot interface; The base stage of described the second triode connects an end of the 13 resistance, the other end of the 13 resistance connect MCU the 12nd pin, also connect the first feeder ear by the 12 resistance, the collector of the second triode connect the 3rd metal-oxide-semiconductor grid, also connect the 3rd feeder ear by the 14 resistance, the grounded emitter of the second triode; The drain electrode of the 3rd metal-oxide-semiconductor connects the 1st pin that adds hot interface, the source ground of the 3rd metal-oxide-semiconductor; Described the 2nd pin that adds hot interface connects the 4th feeder ear.
In the control device of described Massage sofa, described the second triode is the NPN triode, and the 3rd metal-oxide-semiconductor is the NMOS pipe.
In the control device of described Massage sofa, described temperature detecting module comprises the 15 resistance and the 8th interface; The 1st pin of described the 8th interface connects the first feeder ear, and the 2nd pin of the 8th interface connects the 14th pin of MCU, the 3rd pin ground connection of the 8th interface, and described the 15 resistance is connected between the 2nd pin of the 1st pin of the 8th interface and the 8th interface.
Compared to prior art, the control device of Massage sofa provided by the invention, move to simulate the massage effect that fist raps by electric hammer control module control electric hammer, by heating module fever tablet is heated, the start-up temperature detection module detects the temperature of fever tablet and generates corresponding temperature signal simultaneously, judge that by MCU whether the temperature of fever tablet is greater than predetermined temperature threshold, the change control instruction opens and closes heating module, the temperature of fever tablet is controlled in the comfortable scope of human body sensory, avoided long-time use to make the overheated scald of fever tablet user, or the situation of leak electricity short-circuit appears, improved Systems balanth and security.
Embodiment
The invention provides a kind of control device of Massage sofa, clearer, clear and definite for making purpose of the present invention, technical scheme and effect, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The control device dress of Massage sofa provided by the invention is arranged on Massage sofa inside, and its control signal that receives hand controller output is controlled the electric hammer motion and realized massage functions and the heating of control fever tablet.Hand controller is connected by the usb data line with control device, and the button that hand controller is pressed according to the user generates corresponding control signal and is transferred to control device.See also Fig. 1, the control device of described Massage sofa comprises MCU 10, zero passage detection module 20, load module 30, electric hammer control module 40, heating module 50 and temperature detecting module 60.Described MCU 10 connects load module 30, zero passage detection module 20, electric hammer control module 40, heating module 50 and temperature detecting module 60.
Please consult simultaneously Fig. 2; in the present embodiment; the 6th pin of described MCU connects the output terminal of zero passage detection module 20; the 12nd pin of MCU connects the input end of heating module 50; the 17th, 18 pin of MCU connect load module 30; the 21st, 22,23,24,25,26 pin of MCU connect equal electric hammer control module 40, and the 20th pin of MCU is by protection capacitor C ground connection, the 19th pin ground connection of MCU.After Massage sofa was connected civil power, by the negative voltage of zero passage detection module 20 filtering electric mains, the 6th pin that produces pulse signal input MCU started MCU 10.Load module 30 receives described control signal and is transferred to the 17th, 18 pin of MCU 10.Described control signal is digital signal, and as comprising many steering orders in 0111001, one control signal, different steering orders can open and close corresponding module.MCU 10 parses corresponding steering order according to control signal, 40 work of control electric hammer control module, the 40 corresponding control electric hammer motions of electric hammer control module.Simultaneously, MCU 10 starts 50 pairs of fever tablet heating of heating module according to corresponding steering order, start-up temperature detection module 60 detects the temperature of fever tablet in real time, and whether MCU judges the current temperature of fever tablet greater than predetermined temperature threshold, and the change control instruction opens and closes heating module.In the time of need to closing heating function, MCU 10 closes heating module according to corresponding control signal.
It will be appreciated that, described control device also comprises the supply voltage modular converter, is used for the electric main of 220V is converted to the supply voltage of different pressure values, and it is prior art, is not described further at this.The the first feeder ear VCC1(that obtains through the supply voltage modular converter in the present embodiment such as Fig. 3, Fig. 7, Fig. 8 and shown in Figure 9) on voltage be 3.3V, the second feeder ear VCC2(is as shown in Figure 4) on voltage be 5V, the 3rd feeder ear VCC3(is as shown in Figure 8) on voltage be 12V, the 4th feeder ear VCC4(is as shown in Figure 8) on voltage be 24V.
After Massage sofa is connected civil power, need to pass through first the negative voltage of zero passage detection module 20 filtering electric mains, produce pulse signal and start MCU, whole control device could be worked.Please consult simultaneously Fig. 3, described zero passage detection module 20 comprises the first resistance R 1, the second resistance R 2, the 3rd resistance R 3, the 4th resistance R 4, diode D and photoelectrical coupler PC.The model of described photoelectrical coupler PC is P521.The 1st pin of described photoelectrical coupler PC (being anode) connects the negative pole of diode D, the 2nd pin of photoelectrical coupler PC (being negative electrode) connects zero line side N, the 3rd pin of photoelectrical coupler PC (being collector) connects the 6th pin of MCU 10, the 4th pin of photoelectrical coupler PC (being emitter) ground connection by the 3rd resistance; The positive pole of described diode D connects live wire end L by the second resistance R 2, the first resistance R 1 successively; One end of described the 4th resistance R 4 connects the first feeder ear VCC1, and the other end of the 4th resistance R 4 connects the 6th pin of MCU, also connects the 3rd pin of photoelectrical coupler PC by the 3rd resistance R 3.The electric main of 220V is by behind diode D and the photoelectrical coupler PC, filtering negative voltage, the pulse signal P11 that keeps positive voltage and convert the cycle to exports to the 6th pin of MCU 10, and MCU 10 is started.Wherein, the first resistance R 1 and the second resistance R 2 are protective resistance, mainly play metering function, prevent that the high pressure of 220V from damaging diode D and photoelectrical coupler PC.The 4th resistance R 4 is pull-up resistor.
After MCU 10 started, control device entered readiness for operation, and wait control signal is from load module 30 inputs.Please consult simultaneously Fig. 4, described load module 30 comprises input interface CON0, the 5th resistance R 5 and the 6th resistance R 6.Described input interface CON0 is USB interface, its the 1st pin connects the second feeder ear VCC2, the 2nd pin of input interface CON0 connects the 18th pin of MCU, also connects the second feeder ear VCC2 by the 6th resistance R 6, the 3rd pin of input interface CON0 connects the 17th pin of MCU, also connects the second feeder ear VCC2, the 4th pin ground connection of input interface by the 5th resistance R 5.The 2nd pin and the 3rd pin by input interface CON0 in the present embodiment transmit respectively transmission of control signals P16 and P15.
Behind the control signal P16 input MCU 10, be resolved into a plurality of steering orders.Please consult simultaneously Fig. 5 and Fig. 6, electric hammer control module 40 can be controlled 6 electric hammers simultaneously in the present embodiment, so MCU 10 parses 6 steering order control electric hammer motions or static.Described electric hammer control module 40 control modules and interface circuit, described control module comprise the first control module 401, the second control module 402, the 3rd control module 403, the 4th control module 404, the 5th control module 405, the 6th control module 406; Described interface circuit comprises the first electric hammer interface CON1, the second electric hammer interface CON2, the 3rd electric hammer interface CON3, the 4th electric hammer interface CON4, the 5th electric hammer interface CON5 and the 6th electric hammer interface CON6; The input end of described the first control module 401, the second control module 402, the 3rd control module 403, the 4th control module 404, the 5th control module 405, the 6th control module 406 connects respectively the 21st pin of MCU 10, the 22nd pin, the 23rd pin, the 24th pin, the 25th pin, the 26th pin; The output terminal of the first control module 401, the second control module 402, the 3rd control module 403, the 4th control module 404, the 5th control module 405, the 6th control module 406 connects respectively the 1st pin of the first electric hammer interface CON1, the 1st pin of the second electric hammer interface CON2, the 1st pin of the 3rd electric hammer interface CON3, the 1st pin of the 4th electric hammer interface CON4, the 1st pin of the 5th electric hammer interface CON5, the 1st pin of the 6th electric hammer interface CON6; The 2nd pin of the first electric hammer interface CON1, the second electric hammer interface CON2, the 3rd electric hammer interface CON3, the 4th electric hammer interface CON4, the 5th electric hammer interface CON5 and the 6th electric hammer interface CON6 all connects the live wire end.
Identical with the internal circuit configuration of the 6th control module 406 based on the first control module 401, the second control module 402, the 3rd control module 403, the 4th control module 404, the 5th control module 405, the present invention specifically sets forth its circuit structure and principle of work take the first control module 401 as example.Please consult simultaneously Fig. 7, described the first control module 401 comprises the 7th resistance R 7, the 8th resistance R 8, the 9th resistance R 9, the tenth resistance R 10, the 11 resistance R 11, the first capacitor C 1, photoelectric coupling chip U, bidirectional triode thyristor thyristor BT and the first triode Q1.The model of described bidirectional triode thyristor thyristor BT is BAT16-600B, and described the first triode Q1 is the NPN triode.The model of described photoelectric coupling chip U is MOC3020,1. its 1st pin connects the first feeder ear VCC1 by the 8th resistance R 8,2. the 2nd pin of photoelectric coupling chip U connects the collector of the first triode Q1,4. the 4th pin of photoelectric coupling chip U connects the gate utmost point G of bidirectional triode thyristor thyristor BT, and 6. the 6th pin of photoelectric coupling chip U connects an end of the 9th resistance R 9; The base stage of described the first triode Q1 connects the 21st pin of MCU, the grounded emitter of the first triode Q1 by the 7th resistance R 7; The first anode A1 of described bidirectional triode thyristor thyristor BT connects live wire end L, also connects successively the other end of the 9th resistance R 9 by the first capacitor C 1, the tenth resistance R 10; The second anode A2 of bidirectional triode thyristor thyristor BT connects the other end of the 9th resistance R 2 and the 1st pin of the first electric hammer interface CON1; One end of described the 11 resistance R 11 connects the base stage of the first triode Q1, the other end ground connection of the 11 resistance R 11 by the 7th resistance R 7.
The 21st pin of MCU 10 output steering order P00 through the 7th resistance R 7 current limlitings after the base stage of input the first triode Q1.When steering order P00 is high level, the first triode Q1 conducting with photoelectric coupling chip U 2. pin drag down.The 6. Control1 signal of pin output high level of photoelectric coupling chip U, between the first control module 401 and the first electric hammer interface CON1, form the loop, be connected with electric hammer based on the first electric hammer interface CON1, electric hammer was done continuous ejection, was regained the ground motion this moment, realized the massage effect of electric hammer vibration.When steering order P00 is low level, the first triode Q1 cut-off photoelectric coupling chip U the 6. pin be high-impedance state, do not form the loop, this moment, electric hammer was static.
In like manner, please continue to consult Fig. 5 and Fig. 6, steering order P01, P02, P03, P04, P05 input respectively the second control module 402, the 3rd control module 403, the 4th control module 404, the 5th control module 405, the 6th control module 406.By the corresponding output of these control modules Control2 signal, Control3 signal, Control4 signal, Control5 signal, Control6 signal to the second electric hammer interface CON2, the 3rd electric hammer interface CON3, the 4th electric hammer interface CON4, the 5th electric hammer interface CON5 and the 6th electric hammer interface CON6.In the present embodiment, the first electric hammer interface CON1 connects left shoulder electric hammer, the second electric hammer interface CON2 connects left shoulder electric hammer, the 3rd electric hammer interface CON3 connects left back of the body electric hammer, the 4th electric hammer interface CON4 connects right back of the body electric hammer, the 5th electric hammer interface CON5 connects left waist electric hammer, and the 6th electric hammer interface CON6 connects right waist electric hammer.
Described control device can also start 50 pairs of fever tablet heating of heating module, please consult simultaneously Fig. 8, described heating module 50 comprises the 12 resistance R 12, the 13 resistance R 13, the 14 resistance R 14, the second triode Q2, the 3rd metal-oxide-semiconductor Q3 and adds hot interface CON7; Described the second triode Q2 is the NPN triode, and the 3rd metal-oxide-semiconductor is the NMOS pipe.The base stage of described the second triode Q2 connects an end of the 13 resistance R 3, the other end of the 13 resistance R 13 connects the 12nd pin of MCU, also connects the first feeder ear VCC1 by the 12 resistance R 12, the collector of the second triode Q2 connects the grid of the 3rd metal-oxide-semiconductor Q3, also connects the 3rd feeder ear VCC3, the grounded emitter of the second triode Q2 by the 14 resistance R 14; The drain electrode of the 3rd metal-oxide-semiconductor connects the 1st pin that adds hot interface CON7, the source ground of the 3rd metal-oxide-semiconductor Q3; Described the 2nd pin that adds hot interface CON7 connects the 4th feeder ear VCC4.
When steering order P10 was high level, the second triode Q2 conducting dragged down the grid of the 3rd metal-oxide-semiconductor Q3, the HOT signal of the 3rd metal-oxide-semiconductor cut-off output high-impedance state.Do not form the loop between hot interface CON7 and the heating module based on adding hot interface CON7 connection fever tablet, adding, this moment, fever tablet can not heat.When steering order P10 is low level, the second triode Q2 cut-off, the grid of the 3rd metal-oxide-semiconductor Q3 is drawn on the 14 resistance R 14 to be high level, and the 3rd metal-oxide-semiconductor conducting becomes low level with the HOT signal, and the loop is arranged this moment, the fever tablet heating.
In the specific implementation, can overheated scald user in order to ensure the temperature of fever tablet, please consult simultaneously Fig. 9, described control device can be controlled temperature by temperature detecting module.Temperature detecting module comprises the 15 resistance R 15 and the 8th interface CON8; The 1st pin of described the 8th interface CON8 connects the first feeder ear VCC1, the 2nd pin of the 8th interface CON8 connects the 14th pin of MCU, the 3rd pin ground connection of the 8th interface CON8, described the 15 resistance R 15 are connected between the 2nd pin of the 1st pin of the 8th interface CON8 and the 8th interface.
In the specific implementation, the 8th interface CON8 connects temperature sensor.The temperature transition of the current fever tablet that temperature sensor will be sensed becomes temperature signal P12 to be transferred to MCU, MCU judge the current temperature of fever tablet whether greater than predetermined temperature threshold, be the value of temperature signal P12 whether greater than predetermined temperature threshold: if then steering order P10 is transformed into high level and closes heating module; If the temperature of fever tablet is suitable, do not exceed predetermined temperature threshold, then steering order P10 keeps low level, and heating module is held open state.
In sum, the control device of Massage sofa provided by the invention, move to simulate the massage effect that fist raps by electric hammer control module control electric hammer, by heating module fever tablet is heated, the start-up temperature detection module detects the temperature of fever tablet and generates corresponding temperature signal and is transferred to MCU simultaneously, judge that by MCU whether the value of temperature signal is greater than predetermined temperature threshold, if close heating module greater than change control instruction then, if less than the work that then keeps heating module, the temperature of fever tablet is controlled in the comfortable scope of human body sensory, avoided long-time use to make the overheated scald of fever tablet user, or the situation of leak electricity short-circuit appears, improved Systems balanth and security.
Be understandable that, for those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection domain of the appended claim of the present invention.