Professional Documents
Culture Documents
ON
DIPARTMENT
Of
electronics engineering
-:GUIDED BY:-
Mr. SUDHANSHU SIR
1). abhishek
ACKNOWLEDGMENT
THIS PROJECT IS DONE AS A SEMESTER PROJECT.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Access the data of LoRaWAN sensors in minutes and quickly
forward data to building management systems on-premises.
The Wattsense solution offers more functionalities than a
traditional gateway as it converts LoRaWAN data to BACnet.
• Quick ROI
SX127X GPS HAT is a expansion module for LoRa and GPS for use
with the Raspberry Pi.This product is intended for those interested in
developing LoRa solutions.
The transceivers of the HAT feature the LoRa™ long range modem
that provides ultra-long range spread spectrum communication and
high interference immunity whilst minimising current
consumption.The Lora/GPD HAT can achieve a sensitivity of over -
148dBm using a low cost crystal and bill of materials. The high
sensitivity combined with the integrated +20 dBm power amplifier
yields industry leading link budget making it optimal for any
application requiring range or robustness. LoRa also provides
significant advantages in both blocking and selectivity over
conventional modulation techniques, solving the traditional design
compromise between range, interference immunity and energy
consumption.
This board can calculate and predict orbits automatically using the
ephemeris data (up to 3 days) stored in internal flash memory, so the
HAT can fix position quickly even at indoor signal levels with low
power consumption.With AlwaysLocate™ technology, the SX127X
GPS HAT can adaptively adjust the on/off time to achieve balance
between positioning accuracy and power consumption according to
the environmental and motion conditions.The GPS also
supports automatic antenna switching function. It can achieve the
switching between internal patch antenna and external active
antenna.Moreover, it keeps positioning during the switching process.
INDEX
=========
CHAPTERS
---------------------------------------------------------------------------------------------
1). Introduction.
3).Required components.
3(a).Raspberry Pi 3 (any version would be fine).
3(b). dragino (pi lora gps module)
3(c).Power Supply (5V,2A/3A).
4).Required software.
4(a). RASPBERRIAN OS.
4(c).VNC VIEWER.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5).Python ( Programming language).
6).Working
7).Component connection.
8).Used commonds.
9).Future scope.
10).Refrance.
======^^^^^^^========^^^^^^^^========^^^^^^^^=========^^^^^^^^^^
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<@>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-: INTRODUCTION :-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-:REQUIRED COMPONENTS:-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here we are using Raspberry Pi 3 Raspbian OS. All the basic Hardware and
Software requirements are previously discussed, you can look it up in
the Raspberry Pi Introduction and Raspberry PI LED Blinking for getting started,
other than that we need:
Raspberry Pi has four USB 2.0 ports. These ports can be connected to
any USB devices, like mouse and keyboard. With the first start itself, we
need mouse and keyboard, we will discuss it later. The four USB ports are
shown the figure.
Raspberry Pi 2 has one Ethernet port. This port is for internet connectivity
to the RASPBEERY PI 2. This Ethernet port can also be used to transfer
data between PI2 and your PC.
PI has a single HDMI port for connecting a LCD/LED screen. The graphics
provided by the chip is fairly good.
There is a micro USB port on the board; we provide power for the
complete board through this port. If there are any fluctuations in voltage
provided at this port, the board will not work properly.
There are GPIO (General Purpose Input Output) pins and a couple power
ground terminals. We can program there GPIO pins for any use. Few of
these pins also perform special functions, we will discuss them later.
There are GPIO (General Purpose Input Output) pins and a couple power
ground terminals. We can program there GPIO pins for any use. Few of
these pins also perform special functions, we will discuss them later.
1. Availability
Availability is one of the most critical parameters to consider
before deciding to use any board or module for your product
development. Generally speaking, it takes 18–24 months to
develop a sellable product and then you need 3–4 years to sell
before you start thinking about migration to new board or module.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. Onboard eMMC
Raspberry Pi compute modules comes with an option of onboard
eMMC ( 8GB/16GB/32GB eMMC Flash) which eliminates the
unreliability of OS residing on an SD Card. Lite variant comes with
an option where onboard eMMC is not present but for the
commercial or industrial applications, it is recommended to use
the eMMC version. Also, eMMC memory soldered on the module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
itself and not plugged in some connector (causes issues in the field
due to vibration)
The eMMC and LPDDR2 have the narrowest range, these are
rated for -25 to +80 degrees Celsius. Therefore the nominal range
for the CM3+ and CM3+ Lite is -25C to +80C.
5. IO Interfaces
In such a small form factor board lot of IOs are available which are
quite good for any commercial or industrial applications.
• 48x GPIO
• 2x SD/SDIO
• 1x HDMI 1.3a
Please note all will be available at the same time, some are
multiplexed. Check the datasheet in detail proceeding with the
design using compute module.
a carrier board if the readily available boards in the market are not
good enough for your requirement or are very expensive.
And, you might also need 5V for USB, HDMI, etc. interfaces.
SDIO
4. Thermal Management
Raspberry Pi computer module doesn’t have any special provision
for thermal management like thermal pads from where the heat
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3. SODIMM Connector
In order to use Raspberry Pi compute module SODIMM connector
is required, which add cost & a little complexity to the carrier or IO
board design.
I hope the above information was useful for you and will help you
make a decision on using the Raspberry Pi compute module in
your design.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you like the article, please share it with others. Any suggestion
or comments, let me know here. Read my other articles on
embedded system design.
For connecting the micro USB power, you need a good quality
cable. If you do not power the board from a good USB cable, no
matter what the power source, you will
always have power shortage on the board. You need a good
quality USB cable as shown in figure.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For higher operations of PI, you need a power source which could
deliver at least 2000mA or 2A. So if you don’t have a power
source of such kind, don’t drive the PI by lower rated power
source, its better get a new one.
But if you have two adapters which can provide each, you can
connect one adapter output to the micro USB, and the second
one to the USB 2.0 port, they both can share the load. Here I
have a 0.7A or 700mA adapter which I connect to one of 4 USB
ports on the chip.
2. You need a LCD or LED screen, you can use your old PC
screen as a Raspberry Pi screen. After choosing your screen, you
have to look whether the screen supports HDMI inputs or not. If
your screen has a HDMI port then you just need to get a male to
male HDMI ca If your screen does not support HDMI like mine,
then your screen must have VGA support as shown in figure.
You need a HDMI to VGA converter; you can buy this at any
electronic store. This device converts HDMI from PI to VGA
output. So we can interface a VGA monitor to a PI. The device is
shown in figure. ble as shown in figure. 3.You need a Mouse and
Keyboard, make sure they are USB driven type or you won’t be
able to connect it to PI, since PI only has USB ports.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Two wires inside the cable are twisted together. Twisted Pairs is
the industry standard cable. They have the best results in terms
of maximum length and speed drops. They are only beaten in
performance by fiber - optic cabling.
One of the reasons for their quality is that the two cables carry
data in both directions, which balances the electrical fields. This
reduces electrical noise within the wire.
Categories
Ethernet cables come in different variations, known as Categories
or Cat. Each category refers to a different set of standards. As the
standards change over time, new categories are created.
However, some older devices may not support newer cable types,
so you may need to check before you buy.
The transceivers of the HAT feature the LoRa™ long range modem
that provides ultra-long range spread spectrum communication and
high interference immunity whilst minimising current
consumption.The Lora/GPD HAT can achieve a sensitivity of over -
148dBm using a low cost crystal and bill of materials. The high
sensitivity combined with the integrated +20 dBm power amplifier
yields industry leading link budget making it optimal for any
application requiring range or robustness. LoRa also provides
significant advantages in both blocking and selectivity over
conventional modulation techniques, solving the traditional design
compromise between range, interference immunity and energy
consumption.
This board can calculate and predict orbits automatically using the
ephemeris data (up to 3 days) stored in internal flash memory, so the
HAT can fix position quickly even at indoor signal levels with low
power consumption.With AlwaysLocate™ technology, the SX127X
GPS HAT can adaptively adjust the on/off time to achieve balance
between positioning accuracy and power consumption according to
the environmental and motion conditions.The GPS also
supports automatic antenna switching function. It can achieve the
switching between internal patch antenna and external active
antenna.Moreover, it keeps positioning during the switching process.
Features:
• Frequency Band: 868 MHZ/433 MHZ/915 MHZ(Pre-
configure in factory)
• Low power consumption
• Compatible with Raspberry Pi 2 Model B/Raspberry Pi 3.
• LoRa™ Modem
• FSK, GFSK, MSK, GMSK, LoRa™and OOK modulation
• Preamble detection
• Baud rate configurable
• Built-in temperature sensor and low battery indicator
• Excellent blocking immunity
• Automatic RF Sense and CAD with ultra-fast AFC
• Support DGPS, SBAS(WAAS/EGNOS/MSAS/GAGAN)
• GPS automatic switching between internal patch antenna
and external active antenna
• PPS VS. NMEA can be used in time service
• Support SDK command
• Built-in LNA for better sensitivity
• EASY™, advanced AGPS technology without external
memory
• AlwaysLocate™, an intelligent controller of periodic mode
• GPS FLP mode, about 50% power consumption of normal
mode
• GPS support short circuit protection and antenna
detection
LoRa Spec:
• 168 dB maximum link budget.
• +20 dBm - 100 mW constant RF output vs.
• +14 dBm high efficiency PA.
• Programmable bit rate up to 300 kbps.
• High sensitivity: down to -148 dBm.
• Bullet-proof front end: IIP3 = -12.5 dBm.
• Excellent blocking immunity.
• Low RX current of 10.3 mA, 200 nA register retention.
• Fully integrated synthesizer with a resolution of 61 Hz.
• FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
• Built-in bit synchronizer for clock recovery.
• Preamble detection.
• 127 dB Dynamic Range RSSI.
• Automatic RF Sense and CAD with ultra-fast AFC.
• Packet engine up to 256 bytes with CRC.
• Built-in temperature sensor and low battery indicator.
GPS Spec:
• Power Acquisition:25mA,Power Tracking:20mA.
• Compliant with GPS, SBAS.
• Programmable bit rate up to 300 kbps.
• Serial Interfaces UART: Adjustable 4800~115200 bps,Default:
9600bps.
• Update rate:1Hz (Default), up to10Hz.
• Protocols:NMEA 0183,PMTK.
• Horizontal Position Accuracy:Autonomous <2.5 m CEP.
• TTFF@-130dBm with EASY™:Cold Start <15s,Warm Start
<5s,Hot start <1s;TTFF@-130dBm.
• without EASY™:Cold Start <35s,Warm Start <30s,Hot Start
<1s.
• Timing Accuracy:1PPS out 10ns,Reacquisition Time <1s.
• Velocity Accuracy Without aid <0.1m/s,Acceleration Accuracy
Without aid 0.1m/s².
• Sensitivity Acquisition -148dBm,Tracking -
165dBm,Reacquisition -160dBm.
• Dynamic Performance Altitude Max.18000m,Maximum
Velocity Max.515m/s,Maximum Acceleration 4G.
• L1 Band Receiver(1575.42MHz) Channel 22 (Tracking) /66
(Acquisition).
-: USED SOFTWARE :-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1). RASPBERRIAN OS
3).VNC VIEWER
4) . PUTTY SOFTWARE
-: RASPBERRIAN OS :-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raspberry Pi OS[3] (formerly Raspbian) is a Debian-
based operating system for Raspberry Pi. Since 2015, it
has been officially provided by the Raspberry Pi
Foundation as the primary operating system for the
Raspberry Pi family of compact single-board
computers.[4] The first version of Raspbian was created by
Mike Thompson and Peter Green as an independent
project.[5] The initial build was completed in June 2012.[6]
Raspberry Pi OS is highly optimized for the Raspberry Pi
line of compact single-board computers with ARM CPUs.
It runs on every Raspberry Pi except the Pico
microcontroller. Raspberry Pi OS uses a
modified LXDE as its desktop environment with
the Openbox stacking window manager, along with a
unique theme. The distribution is shipped with a copy of
the algebra program Wolfram Mathematica[4] and a version
of Minecraft called Minecraft: Pi Edition, as well as a
lightweight version of the Chromium web browser.
Raspberry Pi OS looks similar to many common desktops,
such as macOS and Microsoft Windows. The menu bar is
positioned at the top and contains an application menu
and shortcuts to Terminal, Chromium, and File Manager.
On the right is a Bluetooth menu, a Wi-Fi menu, volume
control, and a digital clock.
-:BALENA ETCHER:-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In computing, Virtual Network Computing (VNC) is a
graphical desktop-sharing system that uses the Remote
Frame Buffer protocol (RFB) to remotely control
another computer. It transmits
the keyboard and mouse input from one computer to
another, relaying the graphical-screen updates, over
a network.[1]
VNC in KDE
Operation
• The VNC server is the program on the machine that
shares some screen (and may not be related to a
physical display – the server can be "headless"),
and allows the client to share control of it.
• The VNC client (or viewer) is the program that
represents the screen data originating from the
server, receives updates from it, and presumably
controls it by informing the server of collected local
input.
• The VNC protocol (RFB protocol) is very simple,
based on transmitting one graphic primitive from
server to client ("Put a rectangle of pixel data at
the specified X,Y position") and event
messages from client to server.
Putty software
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above diagram shows how LoRaWAN operates. The top bar
indicates if the gateway is transmitting or not. (If it’s orange, it’s
transmitting; if it’s blue, it’s not.) The bar at the bottom
demonstrates the receiver channels. Nearly all LPWAN
systems, including LoRaWAN, have multiple receive channels,
and most LoRaWAN systems can receive eight messages
simultaneously, across any number of frequency channels.
Components connection
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Future scope
~~~~~~~~~~~~~~~~~~~~~~~~~
As the Internet of Things (IoT) is embraced across industry
verticals with a growing number of connected devices, the
connectivity technology landscape remains complex and
fragmented. There is no single IoT network that has ubiquitous
coverage and is capable of addressing all vertical IoT use cases.
Optimizing Operations
A Cohesive Coexistence
As IoT continues to connect millions of physical devices to digital
assets, Semtech’s LoRa devices and the LoRaWAN protocol will
play an integral role. ABI Research estimates that, by 2026, LoRa
will be the leading non-cellular LPWA network technology and will
account for more than half of all non-cellular LPWA connections.
The firm estimates the total non-cellular LPWA connections in
2026 will reach 1.3 billion and Cellular LPWA connections, which
include NB-IoT, LTE-M, and 5G, will reach 1.5 billion connections,
including the large 2G customer base migrating towards NB-IoT
and LTE-M.
▪ ~~~~~~~~~~~~~~~~~~~~~~
Hardware
Source: https://github.com/dragino/Lora/tree/master
/Lora_GPS%20HAT
▪ Where to buy this
board: http://www.dragino.com/buy.html
▪ RoHS
Report: http://www.dragino.com/downloads/index.p
hp?dir=datasheet/RoHS/&file=Lora_GPS_HAT_Ro
HS_Report.pdf
▪ Technical Support for LoRa/GPS HAT:
support@dragino.com
▪ LoRa
Shield: http://wiki.dragino.com/index.php?title=Lora
_Shield
▪ L80-R GPS module home
page: http://www.quectel.com/product/prodetail.asp
x?id=62
▪ Getting GPS to work on a Raspberry
Pi:https://blog.retep.org/2012/06/18/getting-gps-to-
work-on-a-raspberry-pi/
▪ How GPS
Works:https://www.maptoaster.com/maptoaster-
topo-nz/articles/how-gps-works/how-gps-
works.html
▪ GPSD: http://www.catb.org/gpsd/
▪ The Things Network
forum:http://forum.thethingsnetwork.org/
▪ LoRa™ network:https://github.com/Lora-net
▪ Arduino-LMIC
library:https://github.com/matthijskooijman/arduino-
lmic
▪ LMIC source code for Raspberry
Pi:https://github.com/ernstdevreede/lmic_pi/archive/
master.zip
▪ UART for Serial Console or HAT on Raspberry Pi
3 :https://www.hackster.io/fvdbosch/uart-for-serial-
console-or-hat-on-raspberry-pi-3-5be0c2
▪ Raspberry Pi 3 UART Overlay
Workaround:http://www.briandorey.com/post/Raspb
erry-Pi-3-UART-Overlay-Workaround
conclusion
~~~~~~~~~~~~~~~~~~~~~~~~~~~
As the Internet of Things (IoT) is embraced across industry
verticals with a growing number of connected devices, the
connectivity technology landscape remains complex and
fragmented. There is no single IoT network that has ubiquitous
coverage and is capable of addressing all vertical IoT use cases.