ABSTRACT

This lab session covers aspects of datalogging, digital interface types, and sensor networks. It starts by making a datalogger from an Arduino conducting several activities in sequence: adding a real-time clock (RTC) to an Arduino while learning the principles of I2C interface, pulsing power and reading a sensor, combining sensor reading and RTC, interfacing an SD card with an Arduino while learning the Serial Peripheral Interface, and combining the RTC and SD card. An Ethernet module is added to an Arduino to learn how to combine sensor readings with an interface based on TCP/IP that places information on a web server. Time is devoted to learning how to reduce program space and dynamic memory when writing Arduino sketches. Since some environmental sensors come equipped with a digital interface such as RS-485, UART, IC-2, or SDI-12, an example is worked out, interfacing an Arduino to a Raspberry Pi via a RS-485 module. The chapter ends with comments on Arduino datalogger and ethernet shields.