| As a bridge of communication between human and computer,human-computer interaction is the only way for computer to understand human instructions and perceive human intentions.With the development of science and technology,human-computer interaction is not limited to the communication between people and traditional computers,but widely used in a variety of wearable devices.Wearable devices create new usage scenarios and experiences for human-computer interaction.However,rigid wearable devices have certain shortcomings in terms of wearing comfort,which limits the use scenarios of wearable devices.Therefore,this paper proposes and implements the software and hardware design of using flexible strain sensors to make wearable drums,which not only has good wearing comfort,but also proposes a judgment algorithm that can reduce the delay of tapping response,and makes full use advantage of the flexible sensor to simulate the working principle of the drum in the real world,which has certain theoretical significance and practical value.In this paper,the low-cost yarn type flexible strain sensing material is used to make the sensor,and a variety of designs are proposed for the sensing structure.After making the sensor according to different designs,comparative experiments are carried out.According to the experiments,the sensing performance differences of different structures are explored,which turned out the sensor structure designed in this paper has good stability,real-time performance and sensitivity.On the hardware design level,after comparing the comprehensive performance of various chips in the market,ESP32 is selected as the core chip of the system,and the corresponding peripheral circuit is designed for ESP32 core chip,and the corresponding signal acquisition circuit is designed according to the signal acquisition mode.In the aspect of software design,the hardware module is scheduled by transplanting Free RTOS,which improves the running speed of the system.And a method to determine the impact force of the flexible strain sensor is proposed.This method greatly reduces the determination time and effectively reduces the delay.In order to solve the misjudgment caused by noise interference in the process of signal acquisition,Kalman filter algorithm is used to improve the accuracy.The driver is also designed for ADC and Bluetooth module,which can realize high-speed,realtime signal acquisition and wireless data transmission.The function of phone app to make sound after tapping fingers is designed,and a graphical interface is written to show the tapping status.In order to carry out detailed tests on the designed hardware and software systems,a variety of test instruments are used to verify the system in terms of mechanics,electricity,and sound waves.And write a set of test procedures to solve the problem of inconsistent data transmission between different test instruments.The final result shows that the design of this article has a strong accuracy while greatly improving the response time,and can complete the expected functional design. |