Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Chapter 9 Logging Data

List 9.0.1. Parts List
List 9.0.2. Learning Objectives
  1. Record real time measurements from the CircuitPlayground using the Serial monitor
  2. Learn how to use the typing module to type data directly into a spreadsheet or text file
  3. Learn how to log data on the on board memory of the CircuitPlayground
Taking data is the core of any instrumentation project. Data Acquisition Systems (DAQ) come in all shapes and sizes. Believe it or not the CPX can be used as a crude and cheap DAQ. The CPX can easily take temperature data and monitor the temperature in a greenhouse or take humidity readings of a plant to monitor soil content. Before we learn about the different sensors on board the CPX, we want to make sure we can store that data later rather than just having it spit data out via the serial monitor. In this chapter you’re going to make a simple script that prints button presses and then log that in multiple different ways. The button presses are just a simple example but the same methods can be used to log any data you want from the CPX.