0% found this document useful (0 votes)
22 views

emergency rescue system using raspberry pi

Uploaded by

Suba Selvi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

emergency rescue system using raspberry pi

Uploaded by

Suba Selvi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Emergency Rescue system using Raspberry Pi

1. AIM:

The primary objective of our project is to set up some form


of communication within an organization that is independent of the current
mobile network for cost-free voice and text message communication, also has
the capability to support around 50 users in an audio conferencing.

2. REQUIREDCOMPONENTS:

Raspberry Pi-Model B (must be compatible for WiFi module applications).


VNC Viewer along with server installed in the computer.

SD-Card with pre-installed NOOBS Operating system.


Modem (if to be used in practical home applications).
Mumble Application that can be downloaded from playstore

3. ABSTRACT AND OVERVIEW OF THEPROJECT

In this project we will be setting up a Wireless intercom using the Raspberry Pi


3 Model B. The contributions of this project are : to establish
(i) Full duplex communication between twousers
(ii) Half duplex call like walkitalki
(iii) Text messages and also toperform
(iv) Conference call between manyusers
These are done within the coverage range of Raspberry pi without much cost. In
this project the raspberry pi is programmed to operate as server using raspbian
OS, the mumble software is installed in the mobile to interact with the server
and establish theservice.
1
RaspberryPi:

The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer
monitor or TV, and uses a standard keyboard and mouse. It is a capable little device
that enables people of all ages to explore computing, and to learn how to program in
languages like Scratch and Python. It’s capable of doing everything you’d expect a
desktop computer to do, from browsing the internet and playing high-definition video,
to making spreadsheets, word-processing, and playing games.

The Raspberry Pi has the ability to interact with the outside world, and has been used
in a wide array of digital maker projects, from music machines and parent detectors to
weather stations and tweeting birdhouses with infra-red cameras. We want to see the
Raspberry Pi being used by kids all over the world to learn to program and understand
how computers work.

Here in this project we have used a Raspberry Pi 3 Model B as shown below.

Figure 1.1 Raspberry PI’s Parts


Mumble:

A Mumble server (called Murmur) has a root channel and a hierarchical tree of
channels beneath it. Users can temporarily connect channels to create larger virtual
channels. This is useful during larger events where a small group of users may be
chatting in a channel, but are linked to a common channel with other users to hear
announcements. It also matches team-based first-person shooter (FPS) games. Each
channel has an associated set of groups and access control lists which control user
permissions. The system supports many usage scenarios, at the cost of added
configuration complexity.

Mumble application is an Open-Source Platform and it can be


found available in the Google Play Store.

Figure 1.2 Mumble’s


logo

Figure1.3 Mumble App


STEPS TO BOOTUP AND CONFIGURE THE
RASPBERRY PI

STEP1:

Installing the NOOBS or the Raspbian OS onto the SD card.


Here in this step we will be installing the Raspbian Operating System in the SD card
(minimum 16GB free space required).

InitiallybeforestartingtheSDcardmustbeformattedsothattheOSrunswithout
problem.ToformattheSDcard,ifyouareusingWindowsOSdownloadtheSD card
formatter from the link below.
https://www.sdcard.org/downloads/formatter_4/

Insert the SD card onto a SD card reader and then in the formatter select the
required drive that need to be formatted.

Now install the NOOBS or the Raspbian OS from the official Raspberry Pi
website

https://www.raspberrypi.org/downloads/raspbian/

Now the installed OS file has to be written as an image file into the SD card so
for this we require a software named, Windows32disk Imager. Download this
from the link as below,
https://sourceforge.net/projects/win32diskimager/

Using this Disk Imager the image file is now written into the SD card and is
now ready to be inserted into the Raspberry Pi.

6
STEP 2:

WORKING WITH RASPBERRY PI:


METHOD 1:
Connecting Raspberry Pi with an HDMI display.
Here the Raspberry Pi is connected to the HDMI display via the HDMI port available
in the Pi module.
If in case we do not have a monitor with an HDMI Port the Pi is connected
through an HDMI-VGA or DVI adapter. The adapter is easily available and is
asshown.

Figure 1.4 HDMI to VGA adapter

As soon as you connect the Raspberry Pi with and HDMI display the Pi will
boot up automatically during the first boot some of the parameters of the pi
must be configured such as the Time Zone, Language etc.….

NOTE:
If in case on the first Boot-up of the Pi the HDMI display shows ‘No
Signal’ or The screen remains Blank the following configuration changes
must be applied in the ‘CONFIG.TXT’ which is present in the SD card
drive.

7
STEP 3:

CONFIGURATION CHANGES FOR THE HDMI DISPLAY

In the ‘config.txt’ text file the following changes in the code must be applied for the
proper display.
ApplyingthesechangesenablestheusertheworkontheGraphicalUser
Interface of the RaspbianOS

#hdmi_force_hotplug=1
#hdmi_drive=2

To solve the problem you just have to uncomment (ie remove the sign # at the
beginning) these lines and save the file (Ctrl + o, Enter, Ctrl + x with nano). Restart
your Raspberry Pi and you’re done!

Just for information, here is what these two lines do:

hdmi_force_hotplug=1:

Forces to display through HDMI event if no HDMI screen is detected. Remember to


re-comment this line if you need to display the Raspberry Pi on a different port than
the HDMI.

hdmi_drive=2:

Trying to use HDMI mode rather than DVI mode, this allows you to solve certain
sound problems.

8
METHOD 2:
SETTING UP THE RASPBERRY PI FOR WINDOWS OS
In order to work with the Raspberry Pi using the Laptop with a Windows OS the
‘VNCViewer’ must be used through which the Graphical User Interface of the Raspbian OS
can be accessed.

Downloading and Working with the VNC Viewer:


STEP 1:
The VNC Viewer is open-source and can be downloaded from
https://www.realvnc.com/en/connect/download/viewer/

VNC is thus extracted and is downloaded and is available for accessing the Raspberry
Pi.

STEP2:
Power up the Raspberry Pi and the Wi-Fi module that is present in the Pi can be
connected through the ‘Mobile Hotspot’ of the Laptop.

Turning on the Mobile Hotspot in the Laptop will connect automatically with the
Raspberry Pi and the IP Address of the Raspberry Pi will be displayed.

This IP Address is then entered into the VNC Server and the GUI of the Raspberry Pi
is then displayed. The ‘Username’ and the ‘Password’ of the Raspberry Pi are default
and they are

USERNAME: pi.
PASSWORD: raspberry.

Thus now we are ready to work with the Raspberry Pi in a GUI


environment provided by the VNC server. All the inbuilt applications and
the ‘Terminal’ within the Pi can be directly accessed.
9
5. Configuring the Raspberry Pi with the Mumble Server:

With our Raspberry Pi powered up and at the Desktop, we need to open a terminal
and install the Mumble server software.

STEP 4:

1. sudo apt update && sudo aptinstall mumble-server

Next step is to configure mumble-server. In the terminal

type

2. sudo dpkg-reconfiguremumble-server

 A new menu will appear and it will ask you a series of questions. We need to
do thefollowing.

Set Autostart to Yes

Set High Priority to Yes

Create a SuperUser password.

 Once completed close the menu to finalise theconfiguration.


The next step provides both security and means to identify the “Channel”.
In a terminal type the following command to open the mumble server configuration
file.

3. sudo leafpad/etc/mumble-server.ini

 Scroll down the file and look for“registerName”

1. registerName=HomeIntercom

 Then look for “serverpassword” and set this to a password that will be used
by all those that wish toconnect.

1. serverpassword=*****

Save the file and then close theeditor.


 In the terminal type the following command to restart the service that is
running our server and reload the configurationfiles.

4. sudo service mumble-serverrestart

The reload should produce no errors.

The last step on the Raspberry Pi is to fix our IP address and to do this we need to edit
a configuration file.

In the terminal type

5. hostname–I

Write down your IP address and when ready edit the file by typing this line into the
terminal.

STEP 5:

1. sudo leafpad/etc/dhcpcd.conf

The lines that needed changes look as follows

1. # example static IPconfiguration:


2. # interfaceeth0
3. # static ip_address=192.168.137.228
4. # static routers=192.168.137.228
5. # static domain_name_servers=192.168.137.228 8.8.8.8

We will need to uncomment these lines by removing the “#” and change the
corresponding line to match those issued by your router and the IP address your Pi
currently has. In our case our Ip address was 192.168.137.228, and our router has an
IP address of 192.168.137.228. We also added to DNS (Domain Name Servers) so
that our Pi was able to connect to the Internet. The first is our router, the second is
Google’s DNS server.
Here is our example, change it to match yours and then save the file.

1. # example static IPconfiguration:


2. interfaceeth0
3. static ip_address=192.168.137.228
4. static routers=192.168.137.228
5. static domain_name_servers=192.168.137.228 8.8.8.8

Our server is now configured and ready for use. So let's power down the Raspberry
Pi, remove every accessory apart from the microSD card, power and Ethernet. Now
place the Pi somewhere safe and power itup.

STEP 6:

6. Configuring our mobile devices:


 Install the Mumble client on your Androiddevice.

 Open the Mumble app and you will be asked to press the Menu key to
configure a server. The Menu key are the three dots present in the bottom right
of the screen. Press that and then press the Add Serverbutton.

 In the next screen enter the details for your Mumble server. The label option is
optional and it is used if you have multiple servers saved in the Mumble client.
The address is our server address, the port for Mumble is always 64738 by
default. Username is where we can identify this Mumble device on the
network, so call it either a room or something personal. The password is the
same password we set in the Mumble server configuration file. Enter the details
and then press AddServer.

 To connect to the server press the entry in the list ofServers.

You will hear a robotic voice that tells that you are connected. Now connect another
device and start a conversation! All you need to do is press PTT (Push To Talk) and
then speak! There is even a text chat facility built in to Mumble where groups can
chat and share information!
STEP 7:

Open the server.


Make sure you are in the “Channel” page.
The members in the network will be listed in the server.
Click on the three stacked dots in the top right corner and follow,
Transmit mode > Continuous
Now you are ready to make a group call among the users in the network.
The Mic and Speaker Icons are used to mute and deafen the call. (Refer
Fig 1.20)
The red microphone indicates that you are speaking.

To Create a Chatroom:
Power up the raspberry pi using a adapter of 2.5A and 5V and it looks
like this,

Open Plumble and click on “Add New Server” Repeat

this in your other devices too. (More than two) Open

the server.
Swipe to the right and you will get to see the “Chat” page.

INFERENCE:

Thus from this project we were able to build our own intercom that is absolutely cost-free for
vice and text message communication and along with the conferencing capability.
The only limitation we try to improve is the range of the communication as this depends only
on the WiFi range of the Raspberry Pi, and can be only used for short range communication.

You might also like