Device function introduction
(1) Horizontal measurement. Placing the drum horizontally indicates whether the drum is currently in a horizontal position.
(2) Inclination measurement. Place the drum on a flat surface and lift one end of the drum to display the tilt angle of the drum with an error of ≤1°.
(3) Rolling measurement. Place the roller on a flat surface and push the roller forward to display the rolling distance of the roller (the rolling range is 100~200cm) with an error of ≤2cm.
(4) Horizontal rotation measurement. Twist the drum forcefully on a flat surface. After the rotation stops, the number of complete turns will be displayed. The error of the number of turns is ≤ 1 turn.
(5) Measuring the height of the inclined plate. Place the roller on the inclined plate (the inclination angle of the inclined plate ranges from 5° to 15°). The roller rolls down freely from the inclined plate. After rolling out of the inclined plate, grab the roller with your hand and stop it. At this time, the roller measuring device makes a sound. Alarm and display the height of the roller on the inclined plate, the height error is ≤3mm. Device design ideas
(1)Hardware and structure
The stm32f103rct6 microcontroller is used as the host computer, and the mpu6050 sensor and wireless transceiver module are externally connected.
The Zhengdian Atom Elite board is used as the lower computer to display measurement data, and the upper computer data is obtained through the wireless transceiver module.
The power supply is powered by four Nanfu batteries.
(2) Programming
Configure mpu6050 and wireless transceiver module.
Determine whether the rolling is tilted by measuring the z-axis acceleration of the gyroscope and determine the precise angle by looking up the table.
The rolling distance is determined by integrating the angular velocity of the rolling axis and multiplying by the circumference
The number of rotations is obtained by integrating the angular velocity of the rotation axis divided by 360 degrees.
The height measurement is based on the principle that the square of the speed is equal to 2gh. Since friction is not considered, a compensation coefficient is added to make the measurement value accurate enough, and then the optimal coefficient is obtained by adjusting parameters.
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