This board was then mounted very close to another copper-clad board (using only a thin spacer). When the board is subjected to acceleration, it deforms, causing a change in capacitance. To detect this capacitance change, an oscillation circuit was designed. In this circuit, the period of the oscillation changes as C47 changes, resulting in a PWM waveform that is affected by the capacitance value. The output is then connected to the PA9 pin of the microcontroller to detect the PWM period.
This circuit series was then drawn on another copper-clad board, and
the two boards were finally mounted together. After writing the program, acceleration detection was achieved. Due to factors such as PCB material and microcontroller timer resolution, the final resolution was only 1.96 meters per second squared. The resolution could be further improved by replacing the PCB with a thinner one and using a microcontroller with a higher clock speed.
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