Note: * is required
Please fill it out during the registration stage↓
What was completed this time was the offline voice console light project . The original intention of the project was that recently we have a baby at home, and we often have to get up at night to feed milk powder or put him to sleep. There is a need to frequently turn on the lights. However, the switch is too far away. I heard that turning on the night light all night is not good for the baby's development, so I have the idea of making a voice console lamp, and last year I followed Lichuang to make an online IoT desk lamp, but it was not stable and has been gathering dust. This summer event organized by Lichuang EDA just met my needs. Then participated and completed it.
Offline voice control light, as the name suggests, uses voice to control the light switch. Inspired by the teachers at the summer training camp, I also went to Pinduoduo and bought a desk lamp priced at RMB 5.9. I found one with a base as shown in the picture, thinking that there would be room for the board to be installed. The original desk lamp can only be powered by USB. For convenience of use and regardless of application scenarios, a lithium battery and related charging and boosting circuits are added to it. At the same time, an RGB light was added to the board. At present, the light switch function has been implemented and the expected goal has been achieved~ps: The wake-up word is the baby's name haha. When the baby can speak later, the announcement word will also be changed to hers~
Problem 1: Unable to merge files
Cause analysis and solution: When I clicked Merge at the beginning, it always said that the path of my user.bin file was wrong, and it was not allowed to merge. Even changing the folder path did not work. Later, I found out that I did not have a user.bin file at all, because I did not have it yet. It has been compiled in eclipse (completely followed the video operation, it is not in it, but in fact it has been compiled before, because it only demonstrates the synthesis of voice control related files, so there is no need to recompile the project), compile it yourself and it will be ok. ps This is my first time using sdk for development. I used to use stm32 to develop on keil, so I learned a lot.
Problem 2: The program cannot be burned.
Cause analysis and solution: I added a CH340E to the board when designing the circuit. I thought that I could burn the program directly with the USB cable without converting it from USB to TTL, but Qiyingtailun's burning software didn't recognize it. Then I saw it. After watching the teaching video for N times, I found that the problem seems to be a power-on issue. You need to power on the serial port module first to let the burning software recognize the serial port. After checking the burning option, power on the C22GS02S module. However, my CH340E and C22GS02S use The one is a set of power supply, and then use various partitions and flying wires to verify that it is ok. I soldered another piece later without adding the CH340E. The programming wire was soldered directly to the corresponding interface. After the program was burned and verified to be OK, it was OK to remove the wire.
Question 3: The UART1_RX multiplexed IO port is used. I want to output high and low levels, but the actual measurement does not work. No matter whether it is high level or low level, the UART1_RX pin is always 0.8V.
Cause analysis: Is uart1 initialized somewhere, causing the reuse I wrote to be overwritten? It has not been solved yet, so I cut out the RGB control circuit controlled by the corresponding pin.
Question 4: The structure of the desk lamp is different from what I imagined. Because it is shaped like a pen holder, the space inside is extremely small.
Solution: Use a saw to cut off the recessed part of the pen holder, leaving space for the board.
Original
GPL3.0
Please fill in during the competition stage↓
The circuit mainly includes the following parts, power supply part (USB interface battery interface battery boost part battery charging circuit USB power supply and lithium battery power automatic selection circuit), offline language module (C22GS02S) peripheral circuit , load circuit (4-way MOS tube switch circuit One of the console lights loads the other three to control RGB lights).
1 After welding, since there is a CH340E module connected to UART0 on the board, after the board is connected to the computer, open the serial port assistant. After power-on reset, the serial port assistant will receive a bunch of characters, success.
2. Debugging the battery charging circuit. There are two indicator lights indicating charging is in progress and charging is completed. The debugging is OK.
3 Power selection circuit test ok
The software is relatively simple. The corresponding case is added to the deal_asr_msg_by_cmd_id() function in the user_msg_deal.c file in the SDK.
Please enter content...
Video requirements: Please shoot horizontally, with a resolution of no less than 1280×720, in Mp4/Mov format, and the size of a single video is limited to 100M;
Video title: Lichuang Electric Competition: {Project Name}-{Video Module Name}; such as Lichuang Electric Competition: "Autonomous Driving" - Team Introduction.
More details: https://diy.szlcsc.com/posts/06c94d90c2c447dfbd9ed7339ff4a5b1
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