Task 3: Controlling the Buggy through a Device
For the device, you can use a common Android smartphone due to their good availability and
compatibility. To begin you need to download the VNC viewer. Then, by using a computer you
will be able to write the command on sudo “hostname -I”. It will generate an IP address that you
can insert on your phone. Now everything is much simpler and mobile as now you are able to
control the buggy from your phone.
Task 4: Adding Extra Sensors and Peripherals
Till now we have given mobility and control over the robot buggy. Now we can add more sen-
sors and devices to our robot buggy to make it more productive. We can add a camera and
microphone on the buggy to use it as a surveillance bot. By attaching an LCD display we can
display a message on the robot buggy, this could be really helpful to greet guests in an event. If
we install temperature, humidity, air pressure sensor the robot buggy then we can also use it
to forecast the weather. The use of motion sensor could greatly help the bot to detect obstacles
and motion in its path.
Project Idea
Detecting Santa
Do you wish to catch Santa on spot? Well, we have devised a solution with Pi that takes help
from an infrared sensor which sets o the alarm as soon as Santa sneakily enters your room!
This case study can prove to be useful for educational purposes, especially if you wish to get
familiar with the usage of sensors with Pi.
Requirements
On the software side, you require the latest Raspbian having support for Scratch 2 (GPIO sup-
port is a must). In case your version of Raspbian is an older one, you can just open the terminal
and go ahead with the following commands for the installation of Scratch 2.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install scratch 2
For hardware, you need a Raspberry Pi 3 (2 would suce too). The sensor in our project is
a PIR (passive infrared) motion sensor. To get the required sounds, you would require a speaker.
Moreover, 3 separate female-to-female jumper leads are essential. Lastly, you must know how
to carry a small screw driver for all the hand-work.
Sensors
We have used a PIR motion sensor because it can instantly detect the moving of a warm body
(human animals). These sensors are often used by security companies for alarm systems to
thwart burglaries and robberies.
So how does this sensor work? It senses temperature: when it detects a temperature com-
ing from an organism or object to be exceeding absolute zero, it instantly generates radiation
(infrared in nature). This wavelength is not visible for the naked eye but electronic components
of the PIR sensor are quick to identify them.
Before using a PIN sensor, it is important to tune it accordingly. In our example, we have
turned potentiometers in anti-clockwise direction.
340 Internet of Things
Internet_of_Things_CH13_pp327-348.indd 340 9/3/2019 10:17:04 AM