Using a dedicated speech recognition chip, we designed an offline voice-controlled socket that gets rid of network restrictions and can control the on and off of home devices through voice even when there is no network. This project provides a special shell that can be used in daily life after successful testing and has practical value.
(1) Learn the design ideas and methods of smart home products;
(2) Learn how to use offline speech recognition chips;
(3) Learn the principles of relay driving and understand the rules of high-voltage isolation wiring;
(4) Understand the design ideas of isolated power supply 220 to 5V;
(5) Understand the selection and use of electret microphones;
(6) Understand how to design a suitable PCB shape according to the shell;
(7) Learn to use Lichuang EDA to design schematic diagrams and PCB diagrams;
(8) Learn the composition of PCB boards and factory production processes;
(9) Practice welding skills and master the use of multimeters, soldering irons and other tools;
(1) Onboard 220V to 5V/1A isolated power module, which can be directly connected to the mains power;
(2) Onboard relay, which can be connected to external electrical equipment;
(3) Using a dedicated speech recognition chip, the firmware has been burned and can be used without code development;
(4) In addition to voice control, it also provides a button to manually control the on and off status of the device;
The circuit design is simple and is mainly composed of: 220V to 5V isolated power module interface circuit, SNR3512 voice recognition circuit, relay control circuit, LED indication circuit and button control circuit.
Since designing an isolated power supply is a little troublesome, in order to ensure the safety and success rate of the design, this case uses a 220V to 5V isolated power supply module. The input and output use a 4P terminal block or two 2P terminal blocks. The 3rd and 4th pins of the terminal marked CN1 in the picture are connected to the U1 power module, and 220V AC is used for input (you can find some two-wire plugs for modification). The isolated power module outputs 5V to power the voice chip. Pins 1 and 2 of the terminal block are connected to the power supply device and can be used with a light bulb. Pay attention to electrical safety during installation. The live and neutral wires cannot be connected to pins 2 and 3 at the same time to prevent short circuit! ! There are many similar modules, so I won’t recommend them for now. The next version will use 5V power supply directly.
220V to 5V isolated power module |
|
When customizing the function, the 8-pin PA3 button input control, the 9-pin PA4 external relay controls the electrical equipment, and the 13-pin PA15 external LED input
This part uses an NPN tube to design a switching circuit to control the on-off of the relay. The D1 diode protects the driving transistor from being broken down by the back electromotive force of the inductor in the relay. It is also called a freewheeling diode. The R3 input is connected to the PA4 pin of the voice chip. When the voice signal gives a high-level signal, the transistor is turned on, the relay is closed, and 220V_L is connected to 220V_OUT. |
|
5Application examples
Night light transformation |
Night light transformation |
Desk lamp modification |
What is written at the back: The speech recognition chip manufacturer has discontinued production, and this solution is only for schematic and PCB learning. If you are interested in speech recognition, please click to view the smart AI offline voice night light case: https://oshwhub.com/course-examples/zhi-neng-jia-ju-zhi-nengai-yu-yin-xiao-ye- deng
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet