Published online by Cambridge University Press: 09 January 2021
Learning Outcomes
After reading this chapter, the reader will be able to:
Understand the common hardware platforms, sensors, and actuators used in IoT
Assess the importance of each sensor or hardware in various applications
Understand the code structure required to operate these hardware and sensors /actuators connected to them
Relate the IoT hardware and sensors according to the requirements of their applications
Introduction to Arduino Boards
Arduino is an open-source platform which comprises both hardware and software modules. The hardware are typically processor boards with analog and digital pins for various functions. Arduino IDE (integrated development environment) is the software that is used to communicate to the hardware and program them to perform specific functions. We cover the process right from the installation of Arduino IDE to loading codes to the processor boards.
Arduino vs. Raspberry Pi: Choosing a board
An Arduino board has a mounted micro controller chip to perform simple tasks. The board can execute single tasks at a time, in a repetitive manner. The main focus area of Arduino is integration of hardware to the board rather than complex computation or multitasking. For example, the Arduino board can sense the ambient temperature of an area and display it on an output console. Raspberry Pi is a more complex system, much like a minicomputer. It has an advanced processor, uses Linux-based operating systems, and is able to perform multiple tasks with complex computation. Raspberry Pi gives the option forWi-Fi connectivity and access point formation, something which would require external components to be connected on to a regular Arduino board. The choice of selecting Raspberry Pi or Arduino depends solely on one's application. If users want to perform rudimentary, basic level tasks then Arduino is the best option; it avoids any kind of complexities. If the intended application needs multiple tasks to be done with complex computations, Raspberry Pi is a much more suitable choice as it has pretty much everything integrated on-board. Once the users decide which board to choose, they can narrow down the options based on their requirement and the available features on the board such as operating voltage, RAM size, clock speed, storage, and additional wireless connectivity modules.
Arduino installation and setup
Installer files are available for different variants of the operating system on the official website of Arduino. Download the installer (Figure 16.1) and execute the file.
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.