In this paper,a smart crib based on STM32F103 is designed to improve the sleep quality of infants and overcome the shortcomings of traditional cribs.The smart crib integrates a variety of functional modules,including kick detection,pressure sensor,music playback,terminal display and WIFI communication module.These sensors collect data in real time and analyze it,and finally transmit the information to the computer terminal to realize the comprehensive function of the system.The design focuses on the simplicity of operation and high cost performance,and provides an effective solution for parents to promote children to sleep in a safe and comfortable environment,showing a wide range of application prospects.