A kind of acoustic control lamp optical controller with Radio Control Function
Technical field
The utility model relates to the technical field of lamp dimmer, particularly a kind of acoustic control lamp optical controller with Radio Control Function.
Background technology
Current sound control circuit mainly contain sound signal collecting, sound amplify and shaping, delay circuit, control circuit composition, be mainly used in the state controlling single device, as light fixture, toy, switch gate etc.Shortcoming can only control single device exactly and have distance limit, and usual acoustic control device can not away from control device, so can reduce certain practicality.Sound control mode conversion is more single in addition, can only accomplish simple sounds trigger pattern, if need to change, as twice just triggering of clapping one's hands, and the pattern that can not trigger of once clapping one's hands just needs to increase circuit in addition, increases cost.
Utility model content
The purpose of this utility model is that the shortcoming overcoming prior art is with not enough, provides a kind of acoustic control lamp optical controller with Radio Control Function.
The purpose of this utility model is achieved through the following technical solutions:
There is an acoustic control lamp optical controller for Radio Control Function, comprise acoustic control module, MCU control module and wifi module; Described acoustic control module, comprises microphone circuit, mainly realizes the collection of voice signal, amplification and shaping feature; Described MCU control module, input is connected with acoustic control module, for running the control strategy of light, and carries out transfer of data by the data transfer mode of serial communication protocol and wifi module; Described wifi module, input is connected with MCU control module, for the control information of wireless transmission light.
Preferably, described microphone circuit by electret microphone MK1 collected sound signal as input, voice signal is coupled to the grid G by the first n type field effect transistor JFET-N by electric capacity C2 after 2 pin of MK1, be connected with 5V DC power supply after 2 pin of MK1 are also connected with slide rheostat R2, the 1 pin ground connection of MK1; The grid G of the first n type field effect transistor JFET-N is first connected with 5V DC power supply by resistance R4, ground connection after also being connected by resistance R6; The drain D of the first n type field effect transistor JFET-N is connected with 5V DC power supply by resistance R3, the direct ground connection of source S; Voice signal is exported by drain D after the first n type field effect transistor JFET-N amplifies, then be coupled by electric capacity C1 and carry out shaping to the grid G by the second n type field effect transistor JFET-N, last acoustic control induction exports V0 and is exported by the drain D of the second n type field effect transistor JFET-N; The drain D of the second n type field effect transistor JFET-N is also connected with 5V DC power supply by resistance R1 simultaneously, the direct ground connection of source S.
Preferably, described MCU control module comprises STC12C5608AD single-chip microcomputer, reset circuit, crystal oscillating circuit.
Preferably, the acoustic control induction of described voice signal after microphone circuit collection, amplification and Shape correction exports V0 and enters STC12C5608AD single-chip microcomputer by pin P1.0.
Preferably, described wifi module comprises chip AR9331, DDR chips W 9425G6JH-5 and FLASH chip S25FL032, and common co-ordination realizes the wireless transmission function of data.
Preferably, described STC12C5608AD single-chip microcomputer utilizes 1T instruction mode, completes the communication function with wifi module.
The utility model has following advantage and effect relative to prior art:
1, the utility model utilizes microphone circuit to carry out sound signal collecting, and after amplification, shaping, send into MCU control module, then carry out wireless transmission by WIFI module, make acoustic control module can become portable, practicality improves greatly.
2. in addition, MCU control module uses single-chip microcomputer, can accomplish amendment sounds trigger pattern very easily, and not need modification circuits, cost-saving.
3, the utility model is in conjunction with wifi radio network technique and lighting control technique, the TCP/IP agreement that wifi technology can not only use in internet compatible, its controlled in wireless scope is significantly extended, automatically can also form hierarchical network, the wireless automatic control of lamp lighting system can be realized easily, decrease a large amount of house wiring, save installation cost, simultaneously the installation of lamp dimmer is relatively independent, can dispersed placement equipment, and thus the system expandability is strong.
Accompanying drawing explanation
Fig. 1 is the theory structure block diagram of the utility model embodiment;
Fig. 2 is the acoustic control module microphone circuit schematic diagram of the utility model embodiment;
Fig. 3 is the MCU control module circuit theory diagrams of the utility model embodiment;
Fig. 4 is the wifi theory structure block diagram of the utility model embodiment.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the utility model is described in further detail, but execution mode of the present utility model is not limited thereto.
Embodiment
As shown in Figure 1, a kind of theory structure block diagram with the acoustic control lamp optical controller of Radio Control Function, comprises acoustic control module, MCU control module and wifi module.Acoustic control module comprises microphone circuit, carries out sound signal collecting, through amplifying, sending into MCU control module after shaping, has control program in MCU control module, by the identification of voice signal and judgement, and the control strategy of running indicator photosystem; Then send control strategy to wifi module by the data transfer mode of UART generic asynchronous serial mouth, wifi module realizes the wireless transmission of signal light control strategy.
Fig. 2 is the microphone circuit in acoustic control module, mainly realizes the collection of voice signal, amplification and shaping feature.In Fig. 2, MK1 is electret microphone, forms biasing circuit by R2, and R2 can control the sensitivity of microphone, voice signal is coupled to the rear class amplifying circuit Q2 be made up of n type field effect transistor JFET-N as input by C2 after MK1 gathers, and amplifying circuit is by R3, R4, R6, Q2 forms, and wherein R4, R6 provide biasing circuit to Q2, make Q2 be in amplification region, the voice signal that MK1 gathers can be amplified; Voice signal then through amplifying gives the Q1 be made up of the n type field effect transistor JFET-N function completing shaping through C1, and acoustic control induction exports V0 and exported by the drain electrode (D) of Q1.
As shown in Figure 3, MCU control module circuit comprises: STC12C5608AD single-chip microcomputer, reset circuit, crystal oscillating circuit.
Wherein STC12C5608AD single-chip microcomputer is the single-chip microcomputer of single clock/machine phase (1T) that STC produces, superpower jamproof 8051 single-chip microcomputers of new generation of high speed/low-power consumption, 8051 single-chip microcomputers that instruction code is completely compatible traditional, but the fast 8-12 of speed doubly, stable performance, is applicable to strongly disturbing occasion.This single-chip microcomputer operating voltage is 5V, user application space 8K byte, integrated 768 byte RAM on sheet, EEPROM function in chip, has high speed SPI (Serial Peripheral Interface: Serial Peripheral Interface (SPI)) and UART (Universal Asynchronous Receiver Transmitter: UART Universal Asynchronous Receiver Transmitter).Corresponding chip 5,4 pin of chip exterior input end of clock mouth XTAL1, XTAL2, external crystal-controlled oscillation Y10 is connected between two ports, owing to needing baud rate 115200 with wifi module communication, therefore select crystal oscillator Y10 to be 11.0592MHz, utilize the 1T instruction mode of this single-chip microcomputer simultaneously, complete and wifi module communication function, and port x TAL1, XTAL2 connect ground capacity C11, C12 respectively, capacitance size is 30PF.
Wherein C10, R10 form reset circuit, and single-chip microcomputer pin RST is connected with 5V power supply after being connected with 10UF electric capacity C10, simultaneously by the rear ground connection that is connected with 1K Ohmic resistance R10.H1 interface comprises STC12C5608AD single-chip microcomputer GND/P3.1/P3.0/VCC tetra-holding wires, complete download and with the function of docking of wifi module.Wherein voice signal V0 enters single-chip microcomputer by pin P1.0 after microphone circuit, single-chip microcomputer has been responded to the Discern and judge of output signal and the transmission of subsequent action instruction to acoustic control by program, improve stability and the precision of acoustic control module, as can be realized a bat and bright for lamp, or clap hands just bright isotype for 2 times, improve stability and the precision of acoustic control module.
As shown in Figure 4, wifi module produces chip AR9331, DDR chips W 9425G6JH-5 and the FLASH chip S25FL032 composition of highly integrated master control and radio communication function, completes the transfer function of wireless data.AR9331 is mainly used in WLAN (wireless local area network) and router platform, complete compatible IEEE 802.11n 1 × 1 wireless communication standard and router feature on a single die, the MIPS of processor 24K reaches as high as the processing speed of 400MHZ, there is the external interface of DDR1, DDR2, SDRAM of 16, support that SPI and NOR FLASH communicates, 4 LAN mouths and 1 WAN mouth, UART at a high speed, I2S/SPDIF audio output interface, supports USB2.0 interface, 25M or 40M reference clock inputs.Wifi module receives the signal light control strategy of MCU control module transmission, then by this tactful wireless transmission by the data transfer mode of UART generic asynchronous serial mouth.
Above-described embodiment is the utility model preferably execution mode; but execution mode of the present utility model is not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present utility model and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection range of the present utility model.