Abstract
In Lab 1, we connect sensors and actuators to Arduino and program code for interfaces to read values from sensors. In addition, we learn how to trigger the actuators. The hardware setup for this lab is shown in Fig. 4.1, whereby Arduinos connect to the workstation via USB ports. This lab is divided into five different parts. The first two parts are dedicated to writing interfaces to control the actuators, and the remaining three parts focus on writing interfaces for reading values from the sensors.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Libraries
Source code LiquidCrystal_I2C library: https://github.com/johnrickman/LiquidCrystal_I2C
Source code DHT11 library: https://github.com/adafruit/DHT-sensor-library
Tools
OpenSSH Server: https://ubuntu.com/server/docs/service-openssh
How to install Arduino IDE: https://www.arduino.cc/en/Guide/Linux
Other Resources
LCD Arduino sketch: https://github.com/tubskns/notelab-code/tree/master/arduino/actuators/LCD
DHT11 Arduino sketch: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/temperature/DHT11/DHT11.ino
External LED Arduino sketch: https://github.com/tubskns/notelab-code/blob/master/arduino/actuators/ext_led/ext_led.ino
HCSR04 Arduino header file: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/distance/HCSR04/HCSR04.h
HCSR04 Arduino source file: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/distance/HCSR04/HCSR04.cpp
HCSR04 Arduino sketch: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/distance/HCSR04/HCSR04.ino
PIR Arduino header file: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/motion/PIR/PIR.h
PIR Arduino source file: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/motion/PIR/PIR.cpp
PIR Arduino sketch: https://github.com/tubskns/notelab-code/blob/master/arduino/sensors/motion/PIR/PIR.ino
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Jukan, A., Masip-Bruin, X., Dizdarević, J., Carpio, F. (2023). Lab 1—Interfacing Sensors and Actuators. In: Network of Things Engineering (NoTE) Lab. Springer, Cham. https://doi.org/10.1007/978-3-031-20635-1_4
Download citation
DOI: https://doi.org/10.1007/978-3-031-20635-1_4
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-20634-4
Online ISBN: 978-3-031-20635-1
eBook Packages: EngineeringEngineering (R0)