You are on page 1of 60

CHAPTER 2

IOT HARDWARE

PhD. Cao Van Kien


caovankien@iuh.edu.vn
Sensor Controller
IoT EcoSystem
OUTLINE
Commu-
Actuator
2.1 Introduction nicator

2.2 IoT device characteristics Power

2.3 Thing design


2.4 IoT hardware requirements for deploying IoT project
2.5 Python - Building Embedded Linux Systems
2.1. INTRODUCTION

The definition of a “Thing” in the Internet of


Things varies a lot. At hear, we define a Thing
as an embedded computing device (or
embedded system) that transmits and receives
information over a network
2.1. INTRODUCTION

Cloud Cloud
server server

Global networks
Global networks
IoT
Gateway

Local networks

Thing 1 Thing 2 Thing n Thing 1 Thing 2 Thing n

Approach 1 Approach 2
2.2. IOT DEVICE CHARACTERISTICS

 Data acquisition and control


 Data processing and storage
 Connectivity
 Power management
DATA ACQUISITION AND CONTROL
Data acquisition (DAQ) is the process of measuring real-world conditions and
converting these measurements into digital readings at fixed-time intervals (the
data sample rate).

DAQ is used to manipulate and scale raw sensor readings, and analog-to-digital
converters, which are used to convert the analog sensor readings into digital
values so that they can be processed and analyzed.

Signals: analog, digital ... Resolution: 10 bit, 12bit

Range, conditions, Sensity, accuracy and


manufacturers precision

Hơn triệu Sensors, chọn như thế nào?


DATA ACQUISITION AND CONTROL

Manufacturing to move and grip products?

Chọn như thế nào?


DATA PROCESSING AND STORAGE

Require data
processing and
storage IoT devices Can transmit this
capabilities to data to other
perform basic devices, gateway
handling, devices, or cloud
transformation, services or apps for
and analysis of aggregation and
the data that they analysis
capture Edge IT

Can process data


directly
DATA PROCESSING AND STORAGE
Edge analytics involves performing data analysis at the edges of a network rather
than in a centralized location.

Data can be analyzed in near real-time on the devices themselves, or on a nearby


gateway device (like a router) that the IoT devices are immediately connected to,
rather than devices transmitting large volumes of data upstream to a cloud server
or data center for further analysis.

Processing data at the edge provides an opportunity to aggregate and filter the
data as it is collected, with only the most salient data selected to be sent
upstream.

Ultimately, edge analytics reduces the upstream processing and storage


requirements as well as relieves the load on the network.
DATA PROCESSING AND STORAGE
The processing power and storage that is used by an IoT application will depend
on how much processing occurs on the device itself as opposed to how much
processing is performed by the services or apps that consume the data.

The amount of memory that is available and the specifications of the processor,
including the clock speed and number of cores, determine the rate at which data
can be processed by the device.

The capacity of the non-volatile flash memory, which is used to persist data until it
can be transmitted upstream, determines how much data can be stored on the
device.

Devices performing edge analytics will require substantially more processing


capabilities than devices that perform only basic data processing like validating,
normalizing, scaling, or converting readings.
CONNECTIVITY

Wire or Wireless

Local or Global
POWER MANAGEMENT

Power management is of particular concern for portable and


wearable IoT devices that rely on batteries or other non-wired
power sources like solar
2.3. THING DESIGN

Sensor Controller
IoT EcoSystem

Commu-
Actuator
nicator

Power
“thing” structure
2.3. THING DESIGN

“thing” structure
2.3. THING DESIGN
sensors and
actuators
Actuators – thiết bị chấp hành đóng ngắt

Basic switches Relay


Limit switch Thermal Relay

Contactor MCB Push button


Actuators – thiết bị chấp hành động cơ

17
Classification of Motor
Actuators – thiết bị chấp hành động cơ

Đối tượng là động cơ bước

Động cơ DC nam châm vĩnh cửu

18
Actuators – thiết bị chấp hành động cơ

Brushed DC Servo Motors

AC Servo Motor

Brushless AC Servo Motor

19
Brushless DC (BLDC) Servo Motors
Actuators – thiết bị chấp hành khí nén, thủy lực

20
Pneumatic cylinders and actuators
Actuators – thiết bị chấp hành khác - smart material actuators

21
Actuators – thiết bị chấp hành khác - smart material actuators

Harvard's New
Ambulatory MicroRobot

Global Piezoelectric Actuators and motor

The dual-horn actuator was designed on a piezo-


ratcheting motor, providing actuation on both sides of the
piezoelectric stack. This design allows rotation of wheels

22
with no moving parts besides the rotors
Actuators – thiết bị chấp hành khác - smart material actuators

Pneumatic muscle actuator

ExoHand: New areas for action for man and machine

Humanoid
Robotic Leg
via pneumatic
actuator

23
Airic’s_arm: Robot arm with Fluidic Muscles
Sensors – Cảm biến
Cảm biến ( Sensor ): Là thiết bị chuyển các đại lượng vật lý thành các tín hiệu
điện cung cấp cho hệ thống nhằm nâng cao khả năng linh hoạt và độ chính xác
trong điều khiển.

Cảm biến có thể cho tín hiệu


tương tự (Analoge) hoặc tín hiệu
số (Digital), ngoài ra còn sử
dụng các bộ mã hoá vị trí, mã
hoá góc dịch chuyển Encoder,
Resolver…
(Proximity Sensor)
Phát hiện vật không cần tiếp xúc.
Tốc độ đáp ứng cao.
Đầu sensor nhỏ có thể lắp ở nhiều nơi.
Có thể sử dụng trong môi trường khắc nghiệt.

Cảm Biến
Vật Cảm Biến
Vật Cảm Biến

Cảm Biến

25
(Sensors for displacement, distance & position)
Đo sự dịch chuyển của vật theo khoảng cách để xác định chính xác vị trí của vật

Inductive sensor Capacitive sensor Laser sensor

26
(Sensors for displacement, distance & position)
Đo sự dịch chuyển của vật theo khoảng cách để xác định chính xác vị trí của vật

Linear Variable Differential Transformer - LVDT Encoder


Potentiometer
Displacement Transducer

27
Honeywell
(Sensors for force and pressure) Pressure Sensors

Hydraulic Presure Sensor

Force sensor Loadcell

Blood Pressure
Sensors

28
Force sensor
Force Sensitive Resistor
(Temperature Sensors)
Resistive Temperature
Thermistor
Detectors - RTD

Semiconductor-based sensors

29
Thermocouples
2.3. THING DESIGN
Embeded
Controller hardware system

ASIC and FPGA


Microcontroller Computer board solution

Microchip PC 104 Application-specific integrated circuit


Texas Instrument Raspberry Pi SAMSUNG
ARM Beagleboard ….
NVIDIA embeded computer
AVR
Fanless Embedded Computer Field-programmable gate array
Freescale Advantech Embedded Computer ALTERA
NXP … ….

2.3. THING DESIGN
Embeded
software system
Python

Rust
VHDL and Verilog
2.3. THING DESIGN
Examples
2.3. THING DESIGN
Examples

 The MCU is STM32F411 which delivers the performance of Cortex®-M4 core


with floating point unit, running at 100 MHz.

 The communication is divided into Lora communication module and RS485


communication. The Lora hardware based LoRa Ra-02 SX1278 module is
connected to SPI pin of MCU and RS485 hardware based IC MAX485 is
connected to TXD and RXD pins of MCU.

 MCU collects sensor information through ADC module or serial RS485


communication and generates the control signal to actuators through digital
output, PWM or serial RS485 communication

 The power module including 24VDC, 5VDC and 3.3VDC support for all part of
IoT node
2.4. IOT GATEWAY DESIGN

Communication Communication
technology A technology B
Gateway

WAN LAN

Internet Internet Home


provider gateway networks
Security implementation
2.4. IOT
Data fusion Edge computing
GATEWAY Communication bridging
DESIGN
Networks
Connected Internet or
sensors intranet
IoT Gateway

Data center
Internal
Connected Sensors/ actuators
actuators

Wireless: Zigbee, Z-wave, BLE …


LAN or WAN
Wire: Modbus, frofinet, CAN bus …
2.4. IOT GATEWAY DESIGN
Examples
2.4. IOT GATEWAY DESIGN
WISE-3610Wireless IoT LoRa Private Network Gateway
Examples

“IoT gateway” Cisco® 819 4G LTE

SIMATIC IOT2020
2.3. THING DESIGN
WHAT IS AN EMBEDDED SYSTEM?
Embedded systems are based on processor and run
software with a small memory footprint

Medical equipment Misfit wearable

Smart home devices - google


5 BEST IOT HARDWARE PLATFORMS
1) Arduino Yun

Arduino Yun is a hybrid board


which has inbuilt Ethernet and
Wi-Fi connectivity features. This
board is powered by
ATmega32u4 which handles
USB communication whereas
the powerful Atheros AR9331
which handles the Wifi and
Ethernet interfaces and comes
with a Linux distribution based
on OpenWrt.
5 BEST IOT HARDWARE PLATFORMS
2)Raspberry Pi

Raspberry Pi is a credit card sized


computing platform which runs on linux
platform. This board features USB ports
for keyboard and mouse, a HDMI port
for display and an Ethernet port for
wired internet connectivity. However for
wireless connectivity we need to go for
Wifi adapters which we can get it from
the market without any trouble.
5 BEST IOT HARDWARE PLATFORMS
3)ESP8266

ESP8266 is a Wi-Fi module that is capable


of providing internet connectivity to any
microcontroller through UART
communication. Also it comes with an
integrated TCP/IP protocol stack
5 BEST IOT HARDWARE PLATFORMS
4)Beaglebone Black

Beaglebone Black is a pretty famous


low-cost development platform built
around ARM Cortex A8 processor. It
runs on Linux environment just like the
Raspberry Pi. This board has in-built
Ethernet Connectivity feature along
with HDMI port to connect a monitor to
work on
5 BEST IOT HARDWARE PLATFORMS
5) Particle.io (Photon and Electron)

Particle.io (formerly known as Spark Core)


Photon and Electron is a Wi-Fi enabled IOT
hardware platform. It was built using
powerful STM32 ARM Cortex M3 and
Broadcom Wi-Fi chip . The striking feature
of this Particle products is a website cloud
platform that allows user to send and
receive data seamlessly from anywhere
rather than only accessing data from your
local network.
5 BEST IOT HARDWARE PLATFORMS
Bài tập nhóm: Điền mô tả thông số kỹ thuật vào bảng sau:
Đặc tính Thông số kỹ thuật Raspberry Pi 4 BeagleBone Black Qualcomm
DragonBoard 410c
Thu thập dữ liệu và điều khiển
GPIO pins
Logic level voltage

Processor

Processor speed
Memory

Network Interfaces
Nguồn cấp
Recommended Power
Supply
Khác
Dimensions
Typical cost
LỰA CHỌN KÍT VI ĐIỀU KHIỂN HAY MÁY TÍNH NHÚNG

Dù kít phát triển dựa trên vi điều khiển và máy tính nhúng có thể chỉ giúp bạn bước đầu
tạo mẫu nhanh một giải pháp IOT, nhưng đây là bước ban đầu trong toàn bộ quá trình
thiết kế một giải pháp IoT hoàn chình. Để bắt đầu thiết kế cần xem xét các đặc điểm
chính của thiết bị IoT theo các yêu cầu ứng dụng, cụ thể:
 Xác định loại và số lượng cảm biến, số lượng đầu ra cần điều khiển thiết bị ngoại vi.
 Chọn vi điều khiển hoặc máy tính nhúng để thực hiện thu thập dữ liệu từ cảm biến và
điều khiển các thiết bị ngoại vi.
 Chọn giao thức mạng truyền thông mà bạn cần sử dụng để trao đổi dữ liệu giữa các
thiết bị ( ví dụ chọn giao thức I2C để vi điều đọc dữ liệu từ các cảm biến).
 Chọn phần cứng và giao thức mạng phù hợp mà bạn cần sử dụng để truyền/nhận dữ
liệu với các IoT gatway, IoT node khác hoặc với máy chủ điện toán đám mây
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

You will need to consider these kinds of hardware requirements:


 Security requirements
 Ease of development
 Data acquisition, processing and storage requirements
 Connectivity requirements
 Power requirements
 Physical device design
 Cost requirements
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT
Yêu cầu về bảo mật

Bảo mật là một yếu tố quan trọng trong ứng dụng IoT và phải được xem xét ở tất cả các giai
đoạn thiết kế và phát triển giải pháp. Tính bảo mật của dữ liệu được thiết bị thu thập phải còn
nguyên vặn, ngay cả trong quá trình tạo mẫu. Các yêu cầu bảo mật bao gồm:

 Đảm bảo rằng mỗi thiết bị có đủ sức mạnh xử lý và bộ nhớ để có thể mã hóa và giải mã dữ
liệu theo tốc độ mà các bức điện được gửi và nhận.

 Đảm bảo rằng các thư viện phát triển phần mềm nhúng hỗ trợ mọi cơ chế kiểm soát truy cập
được sử dụng để xác thực ứng dụng.

 Chọn nền tảng thiết bị trên thị trường thực hiện được các giao thức quản lý thiết bị để đăng
ký bảo mật cho thiết bị mới khi nó được thêm vào hệ thống mạng để tránh giả mạo, và các
thiết bị có khả năng tự cập nhập để vá lỗi bảo mật.
2.5 IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Dễ dàng phát triển

Trong khi thiết kế, đặc tính dễ dàng phát triển là một yêu cầu ưu tiên để chúng
ta có thể nhanh chóng và dễ dàng đưa bản mẫu thiết kế chạy thử, thu thập dữ
liệu, và giao tiếp với các thiết bị khác, giao tiếp với máy chủ điện toán đám mây.

Xem xét khả năng truy cập, tính khả dụng và chất lượng của API, công cụ phát
triển. Chọn các thiết bị nhanh chóng và dễ dàng để lập trình, cấu hình để tiết
kiệm thời gian, giảm thiểu thất bại trong khi bạn đang phát triển giải pháp IoT
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Thu thập dữ liệu, xử lý và lưu trữ

Số cảm biến được kết nối, độ phân giải của dữ liệu được ghi lại, tốc độ lấy mẫu
đều xác định lượng dữ liệu cần xử lý, ảnh hưởng đến yêu cầu lưu trữ và xử lý
dữ liệu.

Lượng dữ liệu cần được lưu trữ trên thiết bị phụ thuộc vào tần suất thiết bị kết
nối để truyền dữ liệu lên đám mây. Một thiết bị có dây luôn được kết nối, được
cài đặt trong các tòa nhà sẽ truyền dữ liệu thô đến máy chủ, sẽ cần ít sức mạnh
xử lý và lưu trữ dữ liệu hơn so với thiết bị cần xử lý dữ liệu lớn.

Một thiết bị chỉ cần kết nối với server sau vài giờ để tiết kiệm năng lượng sẽ
cần bộ nhớ lớn hơn để lưu trữ dữ liệu cục bộ trong thời gian tạm thời.
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Khả năng kết nối

Connectivity requirements for wireless networking include operating range, or


how far the signal will need to be transmitted, as well as the anticipated volume
and rate of data to be transmitted.

Consider fault-tolerance and the ability for a device to reconnect and retry
sending data after it was disconnected
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Nguồn cấp

Có nhiều yêu cầu khác nhau như số lượng cảm biến sử dụng, tốc độ truyền dữ
liệu sẽ tác động đến năng lượng tiêu thụ của thiết bị.

Xem xét liệu thiết bị có dây hay không, liệu thiết bị có yêu cầu nguồn pin hay
không. Nếu thiết bị yêu cầu pin, bạn cần biết kích thước, trọng lượng và yêu
cầu dung lượng của pin, cũng như liệu pin có thể sạc lại, thay thế được hay
không, liệu thiết bị có nên bị loại bỏ sau khi pin chết.

Nếu thiết bị có thể sạc lại, nên sạc thường xuyên như thế nào và bằng phương
tiện gì?
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Thiết kế thiết bị vật lý

Các yêu cầu thiết kế thiết bị vật lý bao gồm kích thước của thiết bị, các điều
kiện môi trường trong đó thiết bị sẽ được cài đặt cũng cần phải được xem xét.

Ví dụ, một thiết bị được lắp đặt ở mặt dưới của xe tải như là một phần của ứng
dụng giám sát xe sẽ cần được bảo vệ để đảm bảo nó tiếp tục hoạt động trong
điều kiện khắc nghiệt; nó sẽ cần phải chống thấm nước và chống bụi bẩn, sốc
và rung.…
2.5. IOT HARDWARE REQUIREMENTS FOR DEPLOYING IOT PROJECT

Chi phí
BÀI TẬP THIẾT KẾ THINGS

Sensor Controller
IoT EcoSystem

Commu-
Actuator
nicator

Power Processor
“thing” structure
Đọc tín hiệu cảm biến tiệm cận từ E2B-M12KS04-WP-B1 2M dung
processor tự chọn (16f887 hoac Raspi)

Đo mực nước trong bình dung cảm biến áp suất loại 4-20 mA
dung processor tự chọn (16f887 hoac Raspi)

Đo điện năng tiêu thụ dùng cảm biến ACS712 dùng processor tự
chọn (16f887 hoac Raspi)
Processor
THANK YOU!

You might also like