ASSIGNMENT 2 (Embd&IOmT)
ASSIGNMENT 2 (Embd&IOmT)
EDITOR
• The first tool you need for Embedded Systems Software DevelopmentTools
is a
text editor.
• This is where you write the code for your embedded system.
• The code is written in some programming language. The most
commonlyused
language is C or C++.
• The code written in the editor is also referred to as source code.
COMPILER
LINKER
ASSEMBLER
assembler.
We all know that our computer understands binary and it works on
0or 1, so itis important to convert the code into machine
language.requires a linker.
• Physical Layer
Physical Layer consists of the three kinds of devices. First is Access system,this
system can have different sensors and RF ID systems to collect rawdata. Second is
Internet Devices, these devices are mainly used forcommunication. And last is
Transmission Line, it consists of all the highend communication devices such as
satellites, transmission hubs and datanetworks. Main purpose of Physical layer is to
collect data and transfer itto proper cloud based applications and database
application.
Application Layer
Application layer is the topmost layer of IoT architecture which doeseffective utilization of the data
collected. These applications mainly workon information for rendering them in more meaningful
manner. This layerprovides IoT services. Application Layer is responsible for securinginformation and
data. Certain situations require immediate responses. Thislayer helps to do that by extracting
information, managing the date flow and abstracting date.
It may not look much like the computers you are used to, but this is because we
areaccustomed to seeing a computer in a case, with a monitor, keyboard and
mouseattached.
The Raspberry Pi comes without any of these peripheral input, output and storage
devices. It is known as a single board computer, and the fact that it comes without
any additional peripherals, and uses hardware components more usually found in
mobile phones and tablets, means it can be sold for as little as $35.
The Raspberry Pi has several ports that enable you to connect a variety of devices.
Input devices let you send data to a computer. The two most common input
devicesare a keyboard and a mouse. You can plug a USB keyboard and mouse into
two of the four
Output devices let the computer send data to a user. Two of the most common
output devices are a monitor and speakers. You can connect an HDMI monitor or
television tothe Raspberry Pi using the single HDMI port. If you don’t have an
HDMI monitor, then you’ll need to use an adaptor. You can connect speakers or
headphones to the Raspberry Pi using the 3.5mm headphone port.
Storage devices are used to store data. On most computers this would be handled
by a hard drive. Most modern computers, tablets and mobile phones now use Solid
Statestorage devices. The Raspberry Pi uses a type of Solid State storage device
called a microSD card. This will be used to store the Operating System, your
software, and all the files you create.
The last thing you’ll need to do is provide your Raspberry Pi with power. For this,
we use a micro-USB power supply.
RASPBERRY PI INTERFACES
There are many peripherals that can be added to a microprocessor over the I2C
and SPI serial interfaces. These include atmospheric sensors, EEPROMS, and
several types of display
This tutorial will walk you through getting the I2C and SPI interfaces of your
Raspberry Pi working. These interfaces aren't enabled by default, and need some
extra configuration before you can use them.
The Raspberry Pi has three types of serial interface on the GPIO header. You're
probablyalready familiar with the UART serial port, which allows you to open a
login session froma serial terminal application, such as PuTTY.
The other two serial interfaces are the Serial Peripheral Interface (SPI) and Inter-
Integrated-Circuit bus (I2C). SPI on the Pi allows for up to two attached
devices,while I2C potentially allows for many devices, as long as their addresses
don't conflict.
Software Details
The software landscape for the Raspberry Pi has evolved considerably since the
introduction of the Pi. Many different operating systems have been ported to the Pi,
and the device driver infrastructure has also changed quite a bit.
For this tutorial, we'll be using a recent version of Raspbian (installed via
NOOBS), andthe wiringPi I/O library for C/C++ (or spidev/smbus for Python).
SPI on Pi Configuration
The SPI peripheral is not turned on by default. There are two methods to adjust the
settings. To enable it, do the following.
A window will pop up with different tabs to adjust settings. What we are interested
is the Interfaces tab. Click on the tab and select Enable for SPI. At this point, you
can enable additional interfaces depending on your project needs. Click on the OK
button to same.
We recommend restarting your Pi to ensure that the changes to take effect. Click
on the Pi Start Menu > Preferences > Shutdown. Since we just need to restart, click
on the Restart button.
• History: A 55 year old lady, presents with excessive thirst since 4 days. She has
bilateral knee pain. She has no other symptoms.
Tests: Fasting Plasma Glucose (FBG) - 142 mg/dl, Post-prandial plasma glucose
(PPPG) – 258 mg/dl, HbA1c - 8.1 %
Diagnosis: Type 2 Diabetes with Obesity (BMI: 32.87) Management
Diabetes awareness
Diet control- reduce refined carbohydrate intake, reduce oil intake, consume
at least two servings of vegetables per day
Physical Activity
Walking 30 minutes per day for 5 days or equivalent
Yoga / resistance exercises 2 days/ week
Tab Metformin 500mg twice daily
Screening for diabetes related complication
Explanation
Individuals can wear something that looks like jewelry but is designed to alert
family members or friends in case of an emergency. For instance, if an individual
is wearing a medical alert bracelet and fell out of bed in the middle of the night, the
people they designate to help in the case of an emergency would be immediately
notified on their smartphones that their help was needed.