Working with sensor shields
We will work on two projects that measure environmental data and motion data. We will do two new things in these projects:
- Get time from an NTP server so that we have a sense of when exactly we are taking sensor readings. This is useful because it’s important to assign a date and time to any reading that we will be storing.
- Learn to put readings into a format called JSON. JSON is short for JavaScript Object Notation and is a useful format for sending data over the internet.
Project 1 – Working with the MKR ENV Shield R2
In this project, you will learn to take sensor readings from the Arduino MKR ENV Shield R2. This shield has the following onboard sensors:
- LPS22HP: Atmospheric pressure sensor from ST Microelectronics
- HTS221: Temperature and humidity sensor from ST Microelectronics
- TEMT6000: Light intensity sensor from Vishay
The code for this project is available in the following GitHub repository...