Summary of the invention
For deficiency and the defect of above technology, object of the present invention aims to provide a kind of simple to operate, is convenient to promote, the fan that can control by distance interactive gesture.
The object of the invention is by realizing by the following technical solutions: a kind of interactive gesture with stall protection designed by this object controls fan; its circuit feature; comprise closely gesture sensing circuit unit, closely induction alarm circuit unit, touch induction circuit unit; time indicator lamp circuit unit; motor-drive circuit unit, OLED display circuit unit, WiFi circuit unit; alarm circuit unit, power circuit and electric fan.
Its structure characteristic: user closely gesture sensing circuit unit is positioned at the two ends of the horizontal pcb board of folding rack, closely induction alarm circuit unit is positioned at the neutral position of horizontal pcb board, time indicator lamp circuit unit lays respectively on horizontal pcb board with on vertical pcb board, touch induction circuit unit is positioned on the right crus of diaphragm of folding rack base for supporting, OLED display screen is positioned at the left foot position of base for supporting, the motor-drive circuit unit of closed loop control, WiFi circuit unit and alarm circuit unit are positioned on master control borad, master control borad and lithium cell are positioned at the chassis interior of folding rack, external power interface is positioned on base for supporting right crus of diaphragm, electric fan is positioned at the top of folding rack.
Described closely gesture sensing circuit unit, comprises infrared tube, comparator chip, action indicator, work indicator light, potentiometer, resistance; When staff be in infrared tube induction predeterminable range within the scope of time, one high level is delivered to single-chip microcomputer by comparator, simultaneously action indicator action luminous prompting, when staff is in outside default distance range, one low level is delivered to single-chip microcomputer by comparator, and action indicator extinguishes simultaneously; Can realize thus closely gesture sensing to the adjustment of timing, fan speed, mode of operation; Work indicator light is positioned at by infrared tube, for pointing out the position of infrared tube at night; The distance of reaction of infrared tube can be adjusted by the size of regulator potentiometer resistance.
The working principle of described closely induction alarm circuit unit, with closely gesture sensing circuit unit is identical, is no longer repeated here.When within the scope of the alarm distance that staff enters into closely induction alarm circuit unit, one high level is delivered to single-chip microcomputer by comparator, and motor-drive circuit quits work, motor stalls, buzzer work is simultaneously sounded, and the LED flicker of time indicator lamp circuit unit is reminded; After staff leaves, single-chip microcomputer carries out processing and the state before triggering of recovering to report to the police.
Described closely gesture sensing circuit unit, infrared tube module can be substituted by ultrasonic distance measuring module and infrared distance measurement module, the distance between staff and range finder module is measured by range finder module, time within the distance range that staff is in distance measuring sensor triggering, single-chip microcomputer processes, trigger two or more sets range finder modules by simple gesture, the adjustment of aerial gesture to timing, fan speed, mode of operation can be realized; Misoperation is avoided with this by arranging multiple electronic lock.
Described closely gesture sensing circuit unit, can use infrared tube module and range finder module to combine, open electronic lock by infrared tube module, carries out rapid adjustment by range finder module to timing, fan speed, mode of operation.The adjustment to timing and motor speed is entered after opening electronic lock by hand triggering infrared tube module, distance and motor speed, relationship model between timing is set up by mathematical modeling, namely by range finder module, rapid adjustment is carried out to motor speed and timing, after setting motor speed, timing by range finder module, close electronic lock by infrared tube module, avoid misoperation with this.
Described closely gesture sensing circuit unit, can use infrared tube module and range finder module to combine, open electronic lock by infrared tube module, carries out rapid adjustment by range finder module to timing, fan speed, mode of operation.In different time sections, the distance difference between staff and range finder module is measured by range finder module, the travelling speed of staff relative to range finder module can be measured, by range finder module not in the same time in measure staff relative to the speed difference between range finder module, the translational acceleration of staff can be measured.By processing speed and acceleration, the rapid adjustment to timing and motor speed can be realized.
Described closely induction alarm circuit unit; can arrange multiple infrared tube, the induction direction of each infrared tube is different, and infrared tube shares a comparator delivery outlet; when wherein there being an infrared tube to trigger, comparator exports a high level and carries out stall protection to single-chip microcomputer.
Described touch induction circuit unit, comprises the infrared tube of paster encapsulation, triggers tutorial light, resistance; When staff touches infrared tube, the infrared part that infrared transmitting tube is launched is reflexed in the receiving tube of infrared tube by staff, gathered by the AD value of single-chip microcomputer to infrared tube collector electrode, when the AD value collected is less than default AD value, then touch effectively, single-chip microcomputer processes, if when being greater than default value, it is invalid then to touch, and single-chip microcomputer does not process; By touching with hand, timing, fan speed, mode of operation are adjusted thus.
Described time indicator lamp circuit unit, comprise the 74H595 chip of paster encapsulation, resistance, potentiometer, photoresistor and two groups of LED lights, often organize LED light and comprise 8 LED, photoresistor and potentiometer acting in conjunction carry out the light intensity of regulation time tutorial light.
Wherein, in first group of tutorial light, first LED represents 0.5h, second LED represents 1h, and the 3rd LED represents 2h, and the 4th LED represents 4h, 5th LED represents 8h, 6th LED represents 16h, and the 7th LED represents 32h, and the 8th LED represents 64h; In second group of tutorial light, first LED represents 7 minutes, second LED represents 15 minutes, 3rd LED represents 22 minutes, 4th LED represents 30 minutes, and the 5th LED represents 37 minutes, and the 6th LED represents 45 minutes, 7th LED represents 52 minutes, and the 8th LED represents 59 minutes.
User can carry out quick-setting by mobile phone and computer client software to timing, motor speed, mode of operation.
Described OLED display circuit unit is used for showing fan Inter parameter information.
Described alarm circuit unit carries out acousto-optic hint by buzzer and LED.
Described power supply unit comprises in-line power and externally fed, and in-line power part is powered by lithium cell, and externally fed part is connected with external power supply by conventional mini-USB datawire socket or other socket.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further described.
First embodiment
See Fig. 1-Fig. 9, this electric fan, its circuit feature: comprise, closely gesture sensing circuit unit 2.1, closely induction alarm circuit unit 2.2, touch induction circuit unit 1.6, time indicator lamp circuit unit 2.3 and 2.4, WiFi circuit unit, OLED display circuit unit, alarm circuit unit, motor-drive circuit unit, power circuit and the electric fan of closed loop control.
See Fig. 1, its structure characteristic: user closely gesture sensing circuit unit 2.1 is positioned at the two ends of the horizontal pcb board 4.2 of folding rack, closely induction alarm circuit unit 2.2 is positioned at the neutral position of horizontal pcb board 4.2, time indicator lamp circuit unit 2.4 and 2.3 lays respectively on horizontal pcb board 4.2 with on vertical pcb board 4.1, touch induction circuit unit 1.6 is positioned on the right crus of diaphragm of folding rack base for supporting 4.4, OLED display screen 1.3 is positioned at the left foot position of base for supporting 4.4, the electric-motor drive unit of closed loop control, WiFi circuit unit and alarm circuit unit are positioned on master control borad, the base for supporting 4.4 that master control borad and lithium cell are positioned at folding rack is inner, external power interface 3.3 is positioned on base for supporting 4.4 right crus of diaphragm, electric fan is positioned at the top of folding rack.Horizontal pcb board 4.2 is connected with vertical pcb board 4.1 by a running shaft, vertical pcb board 4.1 is connected with support arm 4.3 by a running shaft, support arm 4.3 is connected with base for supporting 4.4 by a running shaft, when rotary vertically is to pcb board 4.1, motion with vertical pcb board 4.1 is moved by horizontal pcb board 4.2, the wind direction of fan can be kept thus with closely gesture sensing direction and closely induction alarm direction is consistent, horizontal pcb board 4.2 can be rotated separately, itself and vertical pcb board 4.1 is made to produce certain angle, thus change closely gesture sensing direction and closely induction alarm direction.The position of wind direction and center of gravity can be adjusted by rotary vertically to the left and right pin of pcb board 4.1, support arm 4.3 and base for supporting 4.4, stablize to keep it; Space can be reduced by rotary folding.
User can carry out quick-setting by mobile phone and computer client software to timing, motor speed and mode of operation.
Described OLED display circuit unit is used for showing parameters information.
Described alarm circuit unit carries out acousto-optic hint by buzzer and LED.
Described power supply unit comprises in-line power and externally fed, and in-line power part is powered by lithium cell, and externally fed part is connected with external power supply by conventional mini-USB datawire socket or other socket.
Second embodiment
See Fig. 4: above-mentioned touch induction circuit unit 1.6 is divided into three groups of separate touch sensible modules, first group of touch sensible module comprises infrared tube Opto1, action indicator LED2, resistance R2, R3, R5; The collector electrode of infrared tube Opto1 is connected with single-chip I/O mouth.
Second group of touch sensible module comprises infrared tube Opto2, LED light LED3, resistance R7, R8, R9, and the 3rd group of touch sensible module comprises infrared tube Opto3, action indicator LED4, resistance R10, R11, R12; Second group of touch sensible module is connected with the I/O port of single-chip microcomputer respectively with the collector electrode of the infrared tube of the 3rd group of touch sensible module.
When touching infrared tube with hand, the infrared part that infrared transmitting tube is launched is reflexed in the receiving tube of infrared tube by staff, gathered by the AD value of single-chip microcomputer to infrared tube collector electrode, when the AD value collected is less than default AD value, then touch effectively, single-chip microcomputer processes, if when being greater than default value, it is invalid then to touch, and single-chip microcomputer does not process.Can realize thus adjusting timing, fan speed, mode of operation by touching with hand.
Because the receiving tube of action indicator and a resistance and infrared tube is cascaded, when staff touches infrared tube, the infrared rays that infrared receiving tube receives is more, resistance between infrared tube collector and emitter is less, the pressure drop of getting is less, the pressure drop that action indicator is got is larger, after reaching the conduction voltage drop of action indicator, and action indicator luminescence instruction.
As the flow diagram that Fig. 9 is by touch induction circuit unit adjustment motor speed, timing and mode of operation.
Three groups of touch modules, when touching the infrared tube of the 1st, 2 group with hand simultaneously, single-chip microcomputer gathers two groups of AD values, when touch effectively and working lipe more than 2 seconds after, open electronic lock and enter the adjustment to timing and motor speed, now, the 3rd group of infrared tube and when touching effective is touched when first time, enter the adjustment to motor speed, now, when staff touches separately the infrared tube of the 1st group and touches effective, motor speed continues to increase, when staff touches separately the infrared tube of the 2nd group and touches effective, motor speed continues to reduce.Thus by touching the stepless time adjustment realized motor.
Opening electronic lock and after entering the adjustment to timing and motor speed, now, when second time touches the 3rd group of infrared tube and when touching effective, enter the adjustment to timing, now, when staff touches separately the infrared tube of the 1st group and touches effective, timing continues to increase, when staff touches separately the infrared tube of the 2nd group and touches effective, timing continues to reduce, and can realize the adjustment to timing thus.
After the adjustment of timing and motor speed is completed, again touch the infrared tube of the 1st, 2 group with hand simultaneously, single-chip microcomputer gathers two groups of AD values, when touch effectively and working lipe more than 2 seconds after, close electronic lock and the adjustment exited time and motor speed, can avoid thus changing timing and motor speed because of mistaken touch operation.When not opening electronic lock, when touching the 3rd group of infrared tube with hand and when touching effective, the selection to fan operating mode can being realized.
3rd embodiment
See Fig. 5: closely gesture sensing circuit unit 2.1 comprises comparator LM393U3, work indicator light LED12, LED11, action indicator LED7, LED8, infrared transmitting tube LED10, LED9, infrared receiving tube ACC3, ACC2, potentiometer SLIDER3, SLIDER2, resistance R25, R26, R27, R28, R29, R30, R31, R22, R23, R24; Comparator U3 the 1st, 7 pins are connected with the I/O port of single-chip microcomputer respectively.
See Fig. 6: closely induction alarm circuit unit 2.2 comprises comparator LM393U2, action indicator LED5, infrared transmitting tube LED6, infrared receiving tube ACC1, potentiometer SLIDER1, resistance R16, R17, R18, R19; 1st pin of comparator U2 is connected with the I/O port of single-chip microcomputer.
See Fig. 5: closely gesture sensing circuit unit 2.1, time within the predeterminable range scope that staff is in infrared tube induction, a high level is delivered to single-chip microcomputer by comparator U3 action, simultaneously action indicator LED7/LED8 luminous prompting; When staff is in outside default distance range, a low level is delivered to single-chip microcomputer by comparator U3, and simultaneously action indicator LED7/LED8 extinguishes, can realize thus closely gesture sensing to the adjustment of timing, fan speed, mode of operation; Work indicator light LED12 and LED11 is positioned at by infrared tube, for pointing out the position of infrared tube at night; The distance of reaction of infrared tube can be adjusted by the size of regulator potentiometer resistance.
See Fig. 6: closely the working principle of induction alarm circuit unit 2.2 is with closely gesture sensing circuit unit 2.1 is identical, but the distance of reaction preset is than closely gesture sensing circuit unit 2.1 is little.When within the scope of the alarm distance that staff enters into closely induction alarm circuit unit 2.2; 1st pin of comparator U2 exports high level to single-chip microcomputer; single-chip microcomputer process also carries out stall protection; motor-drive circuit quits work; motor stalls; buzzer work is simultaneously sounded, and the LED flicker of persond eixis circuit unit 2.3 and 2.4 is reminded.After staff leaves, a low level is delivered to single-chip microcomputer by comparator, and single-chip microcomputer processes, and recovers the state before triggering of reporting to the police.
In closely induction alarm circuit unit; arrange multiple infrared tube, the induction direction of each infrared tube is different, and infrared tube shares a comparator delivery outlet; namely, when wherein there being one or more infrared tube to be triggered, comparator carries out stall protection with regard to exporting a high level to single-chip microcomputer.
Enter into when staff distance of reaction that closely gesture sensing circuit unit 2.1 presets and do not reach the distance of reaction of closely induction alarm circuit unit 2.2, the adjustment to timing, fan speed, model selection can be realized.
In like manner, circuit unit is regulated the speed by touching for the flow diagram of closely sensor circuit unit 2.1 pairs of timings and motor speed adjustment and Fig. 9, the flow diagram of timing and model selection is similar, no longer repeats here.
Described closely gesture sensing circuit unit, infrared tube module can be substituted by ultrasonic distance measuring module and infrared distance measurement module, the distance between staff and range finder module is measured by range finder module, time within the distance range that staff is in distance measuring sensor triggering, single-chip microcomputer processes, trigger two or more sets range finder modules by simple gesture, the adjustment of aerial gesture to timing, fan speed, mode of operation can be realized; Misoperation is avoided with this by arranging multiple electronic lock.
4th embodiment
Described closely gesture sensing circuit unit, can use infrared tube module and range finder module to combine, open electronic lock by infrared tube module, carries out rapid adjustment by range finder module to timing, fan speed, mode of operation.The adjustment to timing and motor speed is entered after opening electronic lock by hand triggering infrared tube module, when adjusting motor speed, by setting up the relationship model between distance and motor speed, such as, when the range finder module action radius recorded in two seconds between staff and distance measuring sensor is 30cm, margin of error is+-3cm time, then now corresponding motor speed is 45, action radius between the staff recorded in two seconds when range finder module and distance measuring sensor is 40cm, margin of error is+-3cm time, then now corresponding speed is 60, the relationship model between distance and motor speed is set up by mathematical modeling, namely by range finder module, rapid adjustment is carried out to motor speed, after setting motor speed by range finder module, electronic lock is closed by infrared tube module, misoperation is avoided with this.
In like manner, the adjustment to timing and motor speed is entered after opening electronic lock by hand triggering infrared tube module, when adjusting timing, by setting up the relationship model between distance and timing, such as, when the range finder module action radius recorded in two seconds between staff and distance measuring sensor is 40cm, margin of error is+-3cm time, then now corresponding timing is 4h, when the range finder module action radius recorded in two seconds between staff and distance measuring sensor is 50cm, margin of error is+-3cm time, then now corresponding timing is 8h, the relationship model between distance and timing is set up by mathematical modeling, namely by range finder module, rapid adjustment is carried out to timing, after setting timing by range finder module, electronic lock is closed by infrared tube module, misoperation is avoided with this.
5th embodiment
Described closely gesture sensing circuit unit, can use infrared tube module and range finder module to combine, open electronic lock by infrared tube module, carries out rapid adjustment by range finder module to timing, fan speed, mode of operation.In different time sections, the distance difference between staff and range finder module is measured by range finder module, the travelling speed of staff relative to range finder module can be measured, by range finder module not in the same time in record staff relative to the speed difference between range finder module, the translational acceleration of staff can be measured.By processing speed and acceleration, the rapid adjustment to timing and motor speed can be realized.Such as: when adjusting timing, drawn near by staff, realize timing and continue to reduce, staff from the close-by examples to those far off, realizes timing and continues to increase, and the change of staff travelling speed is faster, and timing change greatly.Speed, relationship model between acceleration and timing is set up by mathematical modeling, namely realize carrying out rapid adjustment to timing by range finder module, after setting timing by range finder module, close electronic lock by infrared tube module, avoid misoperation with this.In like manner, to the adjustment mode of fan speed with similar to the adjustment mode of timing.
6th embodiment
See Fig. 7: time indicator lamp circuit unit 2.3 comprises 74HC595 chip U4, LED light LED13, LED15, LED17, LED19, LED21, LED23, LED25, LED27, resistance R32, R34, R36, R38, R40, R42, R44, R46, potentiometer SLIDER4, photoresistor RS2; Chip U4 the 12nd, 11,14 pins are connected with the I/O port of single-chip microcomputer respectively.
See Fig. 8: time indicator lamp circuit unit 2.4 comprises 74HC595 chip U5, LED light LED14, LED16, LED18, LED20, LED22, LED24, LED26, LED28, resistance R33, R35, R37, R39, R41, R43, R45, R47, potentiometer SLIDER5, photoresistor RS3; Chip U5 the 12nd, 11,14 pins are connected with the I/O port of single-chip microcomputer respectively.
In time indicator lamp circuit unit 2.3, first LED represents 0.5h, second LED represents 1h, 3rd LED represents 2h, 4th LED represents 4h, and the 5th LED represents 8h, and the 6th LED represents 16h, 7th LED represents 32h, and the 8th LED represents 64h.In time indicator lamp circuit unit 2.4, first LED represents 7 minutes, second LED represents 15 minutes, 3rd LED represents 22 minutes, 4th LED represents 30 minutes, and the 5th LED represents 37 minutes, and the 6th LED represents 45 minutes, 7th LED represents 52 minutes, and the 8th LED represents 59 minutes.In time indicator lamp circuit unit 2.3 and 2.4, photoresistor and potentiometer carry out the light intensity of regulation time tutorial light by acting in conjunction in parallel.When at night, photoresistor resistance increases, and photoresistor and potentiometer resistance in parallel increase, and the brightness of LED time indicator lamp reduces, and by day, brightness increases, and can realize illumination compensation thus.
Such as: when timing is 10 hours 53 minutes, then the first five LED of time indicator lamp circuit unit 2.3 is lit, and the first seven LED of time indicator lamp circuit unit 2.4 is lit; Reduce gradually when the time, the tutorial light be lit extinguishes gradually, and when timing is 6 hours 32 minutes, front four LED of time indicator lamp circuit unit 2.3 are lighted, and front four tutorial light of time indicator lamp circuit unit 2.4 are lit.
When being carried out speed adjustment by closely gesture sensing or touch sensible, time indicator lamp circuit unit 2.4 carries out wind speed feedback by the flowing of simulation running lamp, and when the wind speed after adjustment is larger, running lamp flowing velocity is faster; When exiting the adjustment to wind speed, time indicator lamp circuit unit is pointed out 2.4 pairs of remaining times.
The foregoing is only preferred embodiment of the present invention, be not used for limiting practical range of the present invention; Every equivalence change of doing according to the present invention and amendment, all cover by the scope of claims of the present invention.