The LEGO Weather Station—SPI Sensor with EV3 I2C Interface

Grady J. Koch · Apress eBooks · 2020

Another sensor interface often encountered is the serial peripheral interface (SPI), which will be worked with in this chapter. The SPI interface will be used to transfer commands and data between the sensor and the Arduino. I2C is brought in to transfer data to the EV3 Intelligent Brick. So, two interfaces are used in the project described in this chapter: SPI and I2C. The I2C setup is similar to that used in Chapter 8 , so the emphasis will be on the SPI interface in this chapter. The project involved is to build a weather monitoring sensor, using the EV3 Intelligent Brick as a display and data logger. An EV3 Color Sensor is also part of the system to record ambient light levels. Weather measurements are made with the Sparkfun Atmospheric Sensor ( www.sparkfun.com ), shown in Figure 9-1, which provides data on temperature, humidity, and barometric pressure. These measurements, along with ambient light level from the EV3 Color Sensor, will be displayed on the EV3 Intelligent Brick and stored in a file that can be downloaded for study of weather variables over time.

Read the paper · More papers on PaperTik