I saw a lot of awesome people on the Internet who made small boards that play music. I thought it was very practical, so I followed them. It happened that this time Lichuang had an extended version event, so I took this opportunity to try it out. Maybe Many places are not handled well, and there are more or less problems. But after all, this is the first time to build such a board, so I am going to fix it with a learning attitude! Note: This time it seems to be a bit off-topic. I accidentally adjusted a lot of modules, which seems a bit off-topic. Maybe it’s because I want to give ART_PI more functions! Also, I don’t have much contact with Lichuang, so it’s good to get more familiar with it through this drawing board.
Main functions : The extended version is equipped with an LCD (OLED, TFT) that can directly display the status of the output songs; with the addition of a joystick and touch buttons, you can select and control some settings, and the joystick can also be used to do many other things. things; a hard decoding chip was chosen to convert the data from the microcontroller into an analog signal. Considering the power issue, a power amplification chip was used to greatly amplify the signal, and finally a speaker was connected for external amplification.
其他功能:有红外收发电路,可以进行红外数据传输;当然还引出了串口,便于使用串口进行串行通信;还有温湿度传感器,用来检测环境的温湿度,最后装了一个模拟开关以备不时之需。
Specific module introduction :
- touch module
Let’s take a look at the following principle. The PCB wiring should not be covered with copper around the touch point to reduce some interference.
2. Rocker module
The touch module I chose is the Korean 3D161 3D joystick self-restoring joystick. I chose it mainly for fun. Its internal structure seems to be two things similar to sliding rheostat. In order to use it, I directly use ADC to measure the voltage. To judge the twisting condition of the switch, you can use code to determine what kind of twisting condition determines what kind of event to execute. This is what I thought. In principle, it should work. I decided to try it.
3.LCD interface
The LCD was recycled before. There is no relevant circuit reference and the circuit diagram cannot be obtained. However, both LCD screens use SPI for communication.
4. Audio hard decoding circuit
5.Power amplifier
What the power amplifier amplifies here is the AOUTR data. AOUTL is not used, but I used both pins to lead them out so that I can see the actual situation during debugging.
6. Temperature and humidity module
7. Infrared transceiver module
8.Analog switch
What I chose is CD4051, a relatively common 8-select one analog switch. The address terminals A, B, and C are used to control which channel is turned on.
Related circuit references
1. Touch module reference circuit
2. Audio decoding circuit reference circuit
3. Power amplifier reference circuit
4. Infrared transceiver module reference circuit
Problems encountered when drawing PCB and schematic diagrams
1. When drawing the schematic diagram, I feel that the selection of devices is a bit random. It is difficult to find a particularly suitable device. In addition, I do not know the parameters of some devices very well.
2. The schematic diagram can be enhanced in the layout and routing, so that the PCB layout is easier to carry out when passing parameters.
3. When drawing a PCB, the main thing is layout and wiring. This time I felt that my wiring was very bad, very random, and looked very messy. I didn’t find a good solution, and the board was beaten like a wasp.
4. The wiring diagram on the board (really messy, Wori)
Final results display
Schematic diagram
PCB
3D model
reward
1. I have become more proficient in using Lichuang EDA;
2. Learned the selection of LED;
3. Understand where you are lacking and which direction you should go.
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