Skip to content
Phuc's Blog
Go back

Introduction to Internet of Things (IoT)

Edit page
📌Series:Internet of Things
Part 1 of 7
View all articles in this series

This blog will cover some of introductory concepts around Internet of Things (IoT), its applications, and how to get started with IoT development.

Note

📌 IoT Series (Part 1 of 5): This post is the first entry in our 5-part IoT series. Next up: Part 2: Deeper Dive into Internet of Things (IoT).

Internet Of Things

Table of contents

Open Table of contents

What is the ‘Internet of Things’ (IOT)?

Note
  • Sensors gather information from the world such as measuring speed, temperature, humidity, light or location.
  • Actuators convert electrical signals into real-world interactions such as turning on a light, make sounds or sending control signals to hardware.

IOT devices

1. Microcontrollers

A microcontroller (also called MCU - Microcontroller Unit) is a small computer consisting of:

Microcontrollers are designed to be programmed to do a very specific task rather than being general-purpose computers like PCs or Macs. MCU usually come with additional sensors and actuators on board. Some microcontrollers have built-in wireless connectivity such as Bluetooth or Wifi.

Note

Microcontrollers are usually programmed in C/C++.

2. Single-board computers

A single-board computer is a complete computer contained on a single circuit board. They are small, use less power and substaintially cheaper.

The Rasberry Pi is one of the most popular single-board computers.

Raspberry Pi 4

Like a microcontroller, single-board computers have a CPU, memory and I/O connections. But they have additional features like graphics chip allow to connect monitors, audio outputs, USB ports to connect keyboards, mice, webcams, … Programs are stored in SD cards or hard drives along with an operating system.

Note

You can think of a single-board computer as a smaller, cheaper version of PC.

Hardware choices

1. Arduino developer kit

If you are interested in learning Microcontroller Development, you can complete the assignment using an Arduino Device. You will need a basic understanding of C/C++ Programming.

2. Single-board computer developer kit

If you are interested in learning IoT using single-board computers, you can complete assignment using Raspberry Pi or a virtual device running on PC or Mac. You will need a basic understanding of Python Programming.

3. Virtual device

If you use the virtual device option, you will need to code directly on your computer. Instead of accessing sensors and actuators on a physical device, you will use a virtual device to simulate the hardware.

Set up your device

Before you start programming, you will need to do a small amount of setup.

Note

If you don’t have the hardware yet, refer to hardware guide to help device which device you are going to use.

These instructions do include links to third-party websites from the creators of the hardware or tools you will be using. This is to ensure you are always using the most up-to-date instructions for the various tools and hardware.

Virtual single-board computer

Tip

Instead of purchasing IoT devices, you can use your computer to simulate IoT hardware.

Setup

  1. Install Python and IDE
  2. Configure a Python virtual environment
mkdir nightlight
cd nightlight
python3 -m venv venv
source ./.venv/bin/activate
pip install CounterFit
pip install counterfit-connection
pip install counterfit-shims-grove

Running first CounterFit simulation - Connect the ‘hardware’

  1. Launch the CounterFit app with the following command:
counterfit

CounterFit

  1. Add counterfit connection to the code:
from counterfit_connection import CounterFitConnection
CounterFitConnection.init('127.0.0.1', 5000)
  1. Launch your app to a new terminal to connect couterfit simulation:
python app.py

CounterFit


📖 Series Navigation

👉 Continue to Part 2: Deeper Dive into Internet of Things (IoT)

📚 Complete IoT Getting Started Series

  1. Part 1: Introduction to Internet of Things (IoT)
  2. Part 2: Deeper Dive into Internet of Things (IoT)
  3. Part 3: Sensors and Actuators in Internet of Things (IoT)
  4. Part 4: Connect your device to the Internet
  5. Part 5: Overview of Physical Works in IoT

Edit page
Share this post:

Previous Post
Firebase Cloud Messaging (FCM)
Next Post
Hangfire Background Job

Comments