Reading serial data and uploading files to Google Drive with Python
When developing tinyML projects, our microcontrollers can use serial communication to transfer data of any type to our computer.
In this recipe, we will showcase how to develop a local Python script to retrieve the transmitted data from the PC’s serial port. The program will record one minute of data transmission to a file, which will be uploaded to Google Drive.
Getting ready
Throughout the book, the microcontroller will use serial communication for various scopes, such as:
- Tracking events when the program runs
- Debugging sensor functionalities
- Gathering relevant data for building the dataset used to train and test an ML model
The last point will likely be the most enjoyable. For instance, you will use the microphone to record your vocals or musical recordings and a camera to snap pictures. However, unlike our standard computers or laptops, which have an operating...