1. Project name, main content of the project and current progress

Project Name: Free fall electronic drum.

Project Background: In the 21st century, where technology is rapidly developing, entertainment consumption is a new trend that cannot be ignored, and the consumption methods are becoming more and more diversified. Among them, electronic products consumption has great prospects. This project is a free-falling electronic drum that conforms to the trend, mainly for entertainment development, games, performing arts, music and other entertainment fields.

The main content of the project: This project is mainly for consumer electronics and entertainment products. It mainly uses PIC microcontroller to simulate the physical rhythm of free fall on LCD display, and different objects (such as basketball, table tennis, plates, metal, etc.) The free fall falls on the ground and emits different sounds, and the corresponding object simulates the sound corresponding to a similar instrument (such as an electronic drum, a keyboard, etc.). The effect of the electronic musical instrument is achieved by controlling the time interval at which the object falls. The audio of different voices can be pressed through the wireless remote control button, and different objects appear on the screen to fall freely to the ground to emit different audio, and an animation is artificially created. It is also possible to let the program be executed by designing the audio melody. Different objects appear on the screen to freely fall off the ground and make a sound, and the sound is played rhythmically. This interesting animation continues until the melody is played.

Current progress: Experience in developing PIC microcontrollers.

2. Discussion of key technologies and innovations of the project

Innovation point (1): Use the LCD display to simulate the free fall of the object, giving a good visual effect.

Innovative point (2): Simulate the sound emitted by the free fall of the object to achieve the effect of the electronic drum, giving a good auditory effect.

Innovative point (3): The music beat can be played by remote control, and the dynamic object is displayed on the LCD as a free fall with the beat.

Key Technology (1): Use the program to control the PIC microcontroller and DAC to continuously output analog signals, simulate the tone of the different objects landing, and output through the power amplifier.

Key Technology (2): Use a rigorous program to control the LCD to simulate free fall of objects.

Key Technology (3): Use the program to control the analog audio to achieve uniformity with the sound of the free fall of the simulated object.

Key Technology (4): Simulate the sound of the object landing, convert the digital signal into an analog signal through D/A.

3. Technical maturity and reliability discussion

We have proved through simulation experiments that this method not only operates effectively. The team members have a solid foundation in MCU and design expertise and audio signal processing expertise. They are fully capable of ensuring the smooth implementation of the project and finalizing the project.

Project implementation plan

1. Basic functional block diagram and description

Free fall electronic drum system, consisting of PIC32 microcontroller, LCD gray screen, D/A power amplifier, power supply, speaker, infrared remote control and other parts.

2. basic skills

(1) Design a (4 & TImes; 4) infrared keyboard controller and set 16 keys to 16 tones.

(2) Sending a signal to the controller through the infrared keyboard, converting the digital signal into an analog signal to amplify the output audio through the D/A power amplifier, emitting a scale corresponding to the keyboard, and correspondingly dynamically displaying the object from the top on the LCD. effect.

(3) Simulate the free fall of the object and the sound of the object landing. Simulated objects such as basketball, table tennis, plates and other objects are free to fall and land as a signal to simulate the effect of the electronic drum, forming a rhythm, to achieve uniform sound.

3. System component

(1) PIC microcontroller

The PIC32 provides a 32-bit MIPS processor core operating at 80MHz, 512KB of programmable FLASH, 32KB of RAM memory, and numerous peripherals. These devices include USB controllers, timer/counters, serial controller A/D converters, and more. The board has a large number of I/O interfaces and power options, including USB power. Based on the PIC32 MCU design free fall electronic drum, because the tone actually has a fixed cycle signal, we can use a timer control of PIC32, the square wave periodic signal is output on the pin to generate the tone. According to different signals, adjust the overflow time of the timer, and output the music of different frequencies. The pitch (frequency) of each tone is fixed. A fixed-frequency square wave signal is generated by the D/A converter to push the horn to emit a melody. And use the LCD display to display related messages of the image corresponding to the scale input.

(2) LCD display

In the digital circuit, all data is saved in 0 and 1, and different data operations are performed on the LCD controller to obtain different results. LCD LCD module read and write control signals /RD, WR, RAM are controlled by PIC32 RE0, RE1, RE2 connected chip select signal / CE, RC5 connection command and data channel selection signal C / D, liquid crystal module reset by PIC32 program Control, reset the liquid crystal when the microcontroller is initialized, VO is used to adjust the contrast of the liquid crystal display.

(3) D/A power amplifier

The digital signal is first converted into an analog signal, and the audio power amplifier is amplified against a smaller audio signal to increase its power and then output. The principle is as shown in the figure. The preamplifier mainly completes the amplification of the small signal, and uses a co-directional amplification circuit to amplify the voltage of the input audio small signal to obtain the input required by the latter stage. The latter stage mainly powers up the audio so that it can drive the resistor to get the desired audio.

(4) Infrared remote control

The remote control is implemented in a relatively simple solution. The buttons on the remote control are identical to the buttons on the base unit.

4. Required development platform

(1) MPLAB IDEv8.41 hardware debugging and programming tools.

(2) Software development environment MPLAB IDE v8.41.

(3) Compiler MPLAB IDE.

5. Peripheral daughter board that needs to be extended

(1) PmodAMP1 - Speaker / Headphone Amplifier

(2) Pmod-DA2 - two 12-bit D/A output interfaces

52W Medical Adapter

52W Medical Adapter,52W Medical Outlet Adapter,52W Medical Ivd Adapter,52W Breast Pump Adapter

Shenzhen Longxc Power Supply Co., Ltd , https://www.longxcpower.com

Posted on