This document provides an overview of a hands-on workshop on building IoT solutions with Raspberry Pi. It introduces Raspberry Pi and the GrovePi+ starter kit for connecting sensors. It describes how AWS services like IoT Core and Alexa can be used to build IoT systems. The workshop demonstrates setting up a basic IoT system with Raspberry Pi, testing sensors connected to it, and broadcasting sensor data to the AWS cloud. It aims to help participants understand how to create synergy between sensors, devices, and cloud services to develop health and other applications.
Injustice - Developers Among Us (SciFiDevCon 2024)
Build IoT Solutions with Pi Sensors
1. Building IoT Solutions
with the Pi
Mini Hands-on
#ISSLearningDay
Dr Matthew Chua, NUS-ISS
Mr. Nicholas Ho, NUS-ISS
2 August 2019
2. Dr CHUA Chin Heng Matthew, BEng, PhD, CSM, PMP
Lecturer and Consultant, Smart Health
Leadership Centre, Institute of Systems Science,
NUS
Honorary Joint Faculty, Saw Swee Hock School
of Public Health, NUS
Residential Fellow, Kent Ridge Hall, NUS
Research Interests: Medical Systems, Robotics
and Artificial Intelligence.
Principal Investigator of over S$1 million of
health grant funding
#ISSLearningDay
3. Introduction
• Data and IoT in Health industries forms the backbone of many
applications in our society today
• Applications ranges from:
• Rehabilitation
• Medical Devices
• Assistive and Diagnostic Systems
• Decision Systems
• Monitoring Systems
#ISSLearningDay
4. Enabling Technologies
• These building blocks helps create synergy with data
for health applications:
• Machine Vision
• Geo-tagging
• Telepresence
• Internet of Things
• Robotics
• Machine Learning
• Software Systems and Design
#ISSLearningDay
https://tincture.io/robots-for-everyone-3fddd94f77e0
https://www.med-technews.com/features/medical-robots-friend-or-foe/
8. Contents
• Introduction to Raspberry PI
• Introduction to GrovePi+ Starter Kit
• Introduction to AWS Products (Selected)
• Mini Hands-on
• Demonstration
#ISSLearningDay
9. Introduction to Raspberry PI
This section will enable you to understand what is a Raspberry PI and its potential
use for IoT systems.
#ISSLearningDay
10. What is a Raspberry PI?
#ISSLearningDay
Source: https://www.youtube.com/watch?v=f5CHEfdVE-Y
11. What is a Raspberry PI?
Various components:
1. ARM CPU/GPU
2. GPIO (General-purpose input/output
connection)
3. RCA (allows connection of analog TVs)
4. Audio out
5. LEDs
6. USB
7. HDMI
8. Power
9. SD cardslot
10. Ethernet
#ISSLearningDay
12. What is a Raspberry PI?
• An IoT device
• Low cost, credit-card sized computer
• Capable of doing everything a desktop computer can do
• Ability to interact with the outside world
• Built-in wireless/bluetooth connectivity
#ISSLearningDay
13. Intro to GrovePi+ Starter Kit
This section will enable you to understand what is a GrovePi+ Starter Kit and why it
may be useful for beginners.
#ISSLearningDay
15. Introduction to GrovePi+ Starter Kit
#ISSLearningDay
Source: https://www.youtube.com/watch?v=WnOJa4vlS3w
16. Introduction to GrovePi+ Starter Kit
• Compatible with Raspberry Pi
• Add-on board with 15 Grove 4-pin interfaces, which connects
the Grove sensors to the PI
• Easy-to-use and modular system
• No need for soldering or breadboards; plug and play
#ISSLearningDay
17. Introduction to GrovePi+ Starter Kit
Many sensors selection:
1. Temperature
2. Humidity
3. Light
4. Sound
5. Ultrasonic
6. Rotary Angle
#ISSLearningDay
18. Understanding Sensors
• Light sensor – Analog
• Sound sensor – Analog
• Temperature & Humidity (DHT) Sensor – Digital
19. Introduction to AWS Products
This section will enable you to understand are some of the AWS products that can be
utilized to build IoT systems.
#ISSLearningDay
20. • Managed cloud service that lets connected devices easily and securely interact
with cloud applications and other devices
• Supports HTTP, WebSockets, and MQTT
• MQTT A lightweight communication protocol specifically designed to tolerate
intermittent connections, minimize the code footprint on devices, and reduce
network bandwidth requirements
AWS IoT Core
21. • Cloud-based voice service
• Voice user interface (VUI) design platform
Build skills (i.e. configure keywords to recognize from voice)
Test skills
AWS Alexa Developer Console
23. Mini Hands-on & Demonstrations
This section will allow you to try out an already developed mini IoT system and
understand what are its potential advantages at first hand.
#ISSLearningDay
24. Stuff you need for a basic IoT System
1. Raspberry PI already-assembled with GrovePi+ board, and the
Grove Sensors (i.e. LED, DHT, light, sound)
2. Charger for Raspberry PI
3. HDMI Wire
4. Monitor
5. Mouse and Keyboard
#ISSLearningDay
25. (A) Basic Setup for PI
The HDMI wire is connected from your Raspberry Pi’s
HDMI port to the monitor:
#ISSLearningDay
26. (A) Basic Setup for PI
The charger is connected from the power supply to the
PI:
#ISSLearningDay
Your monitor should display the
PI desktop like the above image
27. (A) Basic Setup for PI
The Mouse and Keyboard are connected to the USB
ports of your PI:
#ISSLearningDay
28. (A) Basic Setup for PI
Your PI can be controlled by you like a PC/Laptop:
#ISSLearningDay
Note: The PI actually requires
internal setup via the Linux
command codes for it to work with
Grove and AWS; this will only be
covered in the full workshop. Your
PI has already been programmed
and updated to achieve AWS IoT
functionalities.
29. (B) Testing your Sensors using your
Assembled PI
1. Click on the Terminal or “>_” button on your PI; found
at the top left corner of the display
#ISSLearningDay
A window will pop out. This platform enables you to gain remote access to your
Raspberry PI; you can write Linux codes here to execute files.
30. (B) Testing your Sensors using your
Assembled PI
2. In your PI’s Terminal, change directory (cd) to
the file with the python file, and execute the
following codes:
• cd /home/pi/Documents/groveproject
• python ssdiot01.py
#ISSLearningDay
You can see the various sensors’ values (i.e. light, sound, temp and hum, which represents
the brightness, sound, temperature and humidity levels respectively) appearing every 2
seconds
31. (B) Testing your Sensors using your
Assembled PI
3. Once you have executed the codes, you can
check if the sensors are working; for example:
• Cover the light sensor (to make it dark) or shine a bright light
over the light sensor (to make it bright); the light values will
change accordingly
• Make noises in front of the sound sensor; the sound values will
increase
• Put your finger/thumb over the DHT sensor; the temperature
and humidity values will increase
#ISSLearningDay
33. An IoT system enables you (via the Internet) to collect,
analyse and manage data in real-time and from a
sensory system that may NOT be within close
proximity!
(D) Summary of Today’s Session