background
Reviewing the previous year, artificial intelligence is undoubtedly the hottest topic, if you make a few years, such as 14 years of Google acquire Nest, Apple release homekit, smart home is in a moment, everyone seems to have blowing The pigs on the sky, but the truth is not giving us a mouth, from the latest data, Jingdong, Ali and other domestic online sales platforms are bleak, the consumer is endless, not only adding WiFi / The Bluetooth module, but what is the smart home device for these wireless features that require app control, why?
Before answering this question, let's first look at another set of data, Amazon launched the Echo smart speaker at the end of 14 years, and currently derived Echo Tap, DOT simple products, the latest data show, the ECHO series is currently at least 500 Most sales. From user feedback, the voice control of Echo is very popular, consumers are happy to pay for Echo, and after all things are successful, other smart home platform Google Nest, Philips hue lamp, Samarts, SamartThings, etc. Many devices have access to the ECHO platform, coupled with various music, weather, news, taxi, etc., Echo smart speakers have become a new entrance to smart home through voice interaction.
Let's take a look at the beginning, the answer wants to come out, and the speech interactive is the future of smart homes! ! ! Not our current WiFi / Bluetooth-based smart home product is not good, but it is necessary for App to control this interaction. The most suitable position of the app is auxiliary control. It is mainly configured as a configuration device to access the device. Work, and control interaction certainly give people the most convenient, most natural interactive way - voice interaction. It is also a bit ironic, which is like everyone who is looking for a smart home, but I don't know how to find him thousands of Baidu, but I will look back in dim light. " Here, the author boldly predicts that the hardware solution to the smart home series applied to the smart home series is upgraded, and it is imperative to carry a reliable voice interaction scheme.
NUC505 hardware solution
Today, the pair of panels throws bricks to introduce a product that can be used as a voice interactive home program, which is launched by New Tang's NUC505 series development board.
The NUC505 development board and the new Tang have a great style, open the common red, green, yellow series card, and I have used a white PCB for the first time. The first impression is still small, but I can feel obvious. Simple is not simple. The basic peripheral microSD card, MIC, LINE IN, and headphone output can be inferred with a complete audio scheme.
Many times we got the new Tang Dynasty, which was basically based on the minimum system board of microcontrollers, all IO pins reserved for users, so although it is convenient for engineers to DIY, it is also subject to additional preparations. The module is functional test, but the NUC505 series board has a good improvement, it is estimated that the mouth of the engineer can be blocked.
Some detailed peripheral resources of the NUC505 development board are shown below.
Here you have to pay attention to the next few places, one is the DIP switch next to the MicroSD card, saying that it is boot boot setting switch, the role is ideal, but the actual operation is very pit, and even if there is any operation in burning and running procedures. The troubles of back and forth (specifically described when using it).
Another thing to note is that the NU-Link debugger, the V3.1 version identified on the board is the latest, not only can set the serial port / Nulink through the DIP switch, but also add USB's large capacity storage mode, similar to Mbed U disk mode, but this function does not seem to be too sound, and did not find more information.
NUC505UO13Y microcontroller
Of course, the focus of the board is still the microcontroller product of this NUC505 series, and the specific specification model is NUC505UO13Y, using QFN88 package, suitable for the application of product space sensitive.
The microcontroller mounted on the board is a product that is the highest in the NUC505 series. Based on the ARM CoretX-M4 processor, the maximum frequency supports 100MHz, the internal integration of 2MB large-capacity storage and 128KB SRAM, of course, the most important Or integrated I2S interface and 24-bit audio CODEC unit, digital MIC, ADC, SD HOST, USB full speed / high speed and other interfaces, very suitable for audio-related applications.
However, from the list above, not all NUC505 series products are integrated with audio CODEC, and the microcontroller Nuc505YO13Y on this board has indeed integrated 24-bit Sigma-Delta Codec to support stereo. Also worth mentioning, the MCU also integrates a PMOC plus decoding mechanism. This is the unique function of the new Tang products, ensuring the security of the user program (saying that it is anti-crack, anti-mountain).
Used
The NUC505 development board has four power supply, namely the external 5V, 3.3V power interface, and the USB power supply interface of the microcontroller and the supply interface of NU-Linkme.
For engineers, NU-Linkme's Miniusb interface is better, set up the debugging, serial port, USB storage, and power supply function.
In addition, there are two DIP switch settings to be pay attention to when power-on operations.
One is the Dialog Switch SW1 next to the MicroSD card, which is to set different boot methods and download methods, as shown in the following table.
When using NU-LinkMe to download, you need to set the Dial switch S4 next to the MicroSD card. As shown in the figure below, the New Tang has designed different start-up methods on the board, which is very much more impact on the engineer's flexibility, and passed The setup of the DIP switch is more friendly relative to the jump, but for many engineers only use a single start-up mode, this design will have a uncomfortable place to burn the program to execute the program. Tap the switch, re-power, very troublesome.
Another point of attention is the DIP switch next to Nu-Linkme, which can be downloaded, serial port, USB storage settings.
Serial port settings
USB storage
MBED? With this prototype, I learned that the new Tang is signing with the ARM, and the future will support MBED, it seems that the board card that does not support MBED is a big weakness.
Although it is functional, there is still a lot of doubts about the NU-Link ME V3.1 version, for example, when setting the serial port function and USB storage, the serial number changes, and the other serial port and USB storage function are used at the same time. At the time of conflict?
Development environment
NUC505 supports third-party Keil, IAR and other IDE tools. It is recommended to use Keil, and most of the officially provided routines are keil, which is convenient for engineers to start as soon as possible. For NUC505 development boards, new Tang's microcontroller routines and board applications are also relatively abundant, and there may be a relationship with board cards.
From the previous hardware, the board is mainly for audio applications, so it mainly tests an audio recording and audio playback, and contacts the beginning of the article, which is the original intention of smart home based on voice interaction.
There is a pit when recording, although the MIC circuit is board, but it can only be made through the Line In interface when recording.
If you turn down the schematic, you can design it here that there is a set of bias voltages when using MIC or LINE input, but uses 0 ohm's resistance on the NUC505 board. This is not Should you use the design of the choice of jumping more ideal? If you really need to use Miche you can only re-weld it, but this is troublesome.
So use the LINE I to collect sound input.
Recording information of serial port output, sample rate 8000 Hz, 16 bits, I2S
After collecting, the file name and format will be stored in the microSD card. The file name and format is small luck. AMR (after modification), the AMR format An audio format abbreviation, many recording files generated by the recording are all in this format, comparison Small clever is more clear, it can be said that it is a format that has been widely recognized by major mobile phone manufacturers, and it is very good for the collection of vocals.
Recording sounds we need to reproduce, still through the audio codec function on the NUC505 development board, set the played file as a small luck .AMR
Compile, download, you can see the playback record from the serial port after completion.
Height to restore people, the effect is very good, then try the MIC collection on the board next time.
summary
New Tang launched NUC505 development board is a complete audio collection, playing circuit, and a high-board price-specific NUC505YO13Y microcontroller, integrated ARM Cortex-M4 processor, 100MHz frequency, built-in 2MB flash, 128KB SRAM's large capacity storage , Unique 24-bit double-channel codec chip, PMOC plus codeward mechanism, both performance, security, whether it is a spatial sensitive microphone, audio-related application products, or human-machine interaction for foreground The smart home plan, NUC505 is very advantageous. If you are considering the engineer applied in this area, don't let go of the new Tang Dynasty to apply for samples or development boards, maybe you can't think of surprises.
Original declaration: This article is originally created by the panel network, declined!
Other voice interaction products application recommendation:
Open source creative prototype platform on the giant shoulders - FiReduino evaluation
Human-machine interaction, from "core" definition --lark7618 speech recognition WiFi module development board evaluation
Our other product: