Data Acquisition from Sensors
摘要
Machine learning methods depend on data. Therefore, the first step for a machine learning system is data acquisitionData acquisition from sensors. We consider this operation in this chapter. To do so, we divide the operation into five parts: First, we handle data transfer between the PC and STM32 microcontroller. The aim here is twofold. When we transfer data from the microcontroller to PC, we can analyze and display it in detail there. When we transfer data from the PC to microcontroller, we can perform controlled experiments for our machine learning system running on the microcontroller. Second, we evaluate data acquisition from the relative humidity and temperature sensor. Third, we cover data acquisition from the accelerometer,Accelerometer gyroscope, and magnetometer sensor. Fourth, we introduce audio signalAudio signal acquisition. Fifth, we focus on the B-CAMS-OMV camera module and explore acquiring digital imagesDigital image from it. In all these operations, we follow the same strategy as hardware setup, data acquisition and transfer at the microcontroller side, and data transfer at the PC side. Hence, the reader can form a complete setup to acquire and transfer data between the microcontroller and PC. Moreover, we cover all the mentioned topics from the STM32CubeIDE and Mbed Studio perspectives. Hence, the reader can select the appropriate platform to perform all the mentioned operations.