sensor and devices
sensor and devices
Three Hours
: m: Marks
Answer ALL Questions.
Part A – (10 × 2 = 10 Marks)
1. Define IoT. K1 CO
Answer: 1
IoT (Internet of Things) refers to the network of physical objects or
devices that are connected to the internet and can communicate with
each other, share data, and be remotely monitored or controlled. These
devices, often embedded with sensors, software, and other
technologies, collect and exchange data in real time.
S
No
. Arduino Raspberry Pi
The web server in IoT acts as an intermediary between devices, sensors, and users,
enabling data exchange, remote monitoring, and control of IoT devices through web-based
interfaces.
Part B – (5 × 13 = 65 Marks)
11. a Discuss the physical design of an IoT system. What are the core 1 K1 CO
components involved, and how do they work together to form a
3 1
functional IoT architecture?
Core Components of an IoT System (4 marks)
Functional IoT Architecture (6 marks)
Interactions Between Components (4 marks)
Security Considerations (2 marks)
Answer :
The Physical design of IoT deals with the individual devices
connected to the IoT network and the protocols used to create a
functional IoT environment.
Each IoT device can perform tasks of remote sensing, actuating,
monitoring, etc due to the IoT network they are connected to.
OR
b Explain various IoT communication protocols. Compare and 1 K1 CO
contrast different protocols in terms of their use. Features and
3 1
application.
IoT Communication Protocols (6 marks)
Comparison of IoT Communication Protocols (4 marks)
Features and Application of IoT Communication Protocols (4
marks)
Use Cases and Applications (2 marks)
Answer :
Here are various IoT communication protocols:
Wireless Protocols
Wired Protocols
SDN NFV
Various enterprise
networking software and Telecom service providers or
hardware vendors are operators are prime initiative
initiative supporters of supporters of NFV.
SDN.
SLA assurance
Video Servers
Content Delivery
Networks (CDN)
SDN Contributions
NFV Contributions
OR
Answer
Here's the explanation of the role of YANG in network
management and its facilitation of IoT networks:
Arduino Setup
Answer
Unipolar Stepper Motors
Advantages
1. Simpler Driver Circuitry: Unipolar stepper motors require a simpler driver
circuit, as the motor windings are connected to a common ground.
2. Easier Control: Unipolar stepper motors are easier to control, as the
direction of rotation is determined by the sequence of pulses applied to the
windings.
3. Lower Cost: Unipolar stepper motors are generally less expensive than
bipolar stepper motors.
Disadvantages
1. Lower Torque: Unipolar stepper motors typically have lower torque ratings
than bipolar stepper motors.
2. Lower Efficiency: Unipolar stepper motors are less efficient than bipolar
stepper motors, as some of the windings are not used during rotation.
Bipolar Stepper Motors
Advantages
1. Higher Torque: Bipolar stepper motors have higher torque ratings than
unipolar stepper motors.
2. Higher Efficiency: Bipolar stepper motors are more efficient than unipolar
stepper motors, as all windings are used during rotation.
3. Smaller Size: Bipolar stepper motors can be designed to be smaller in size
than unipolar stepper motors.
Disadvantages
1. More Complex Driver Circuitry: Bipolar stepper motors require more
complex driver circuitry, as the motor windings must be driven with both
positive and negative voltages.
2. More Difficult Control: Bipolar stepper motors are more difficult to control, as
the direction of rotation is determined by the polarity of the voltages applied to
the windings.
3. Higher Cost: Bipolar stepper motors are generally more expensive than
unipolar stepper motors.
const int stepsPerRevolution = 2048; // change this to fit the number of steps
per revolution
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
myStepper.setSpeed(10);
}
void loop() {
myStepper.step(stepsPerRevolution);
delay(500);
}
Raspberry Pi
1. Connect the motor: Connect the unipolar stepper motor to the Raspberry Pi
board. Typically, the motor has 5 or 6 wires: 4 for the coils and 1 or 2 for the
common ground.
2. Install the RPi.GPIO library: Install the RPi.GPIO library to control the motor.
3. Define the motor pins: Define the Raspberry Pi pins connected to the motor
coils in the code.
4. Set the motor speed and steps: Set the motor speed and number of steps in
the code.
5. Use the GPIO.output() function: Use the GPIO.output() function to rotate the
motor.
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
GPIO.setup(25, GPIO.OUT)
while True:
GPIO.output(17, GPIO.HIGH)
GPIO.output(23, GPIO.LOW)
GPIO.output(24, GPIO.LOW)
GPIO.output(25, GPIO.LOW)
time.sleep(0.01)
GPIO.output(17, GPIO.LOW)
GPIO.output(23, GPIO.HIGH)
GPIO.output(24, GPIO.LOW)
GPIO.output(25, GPIO.LOW)
time.sleep(0.01)
Arduino
1. Connect the motor: Connect the bipolar stepper motor to the Arduino board.
Typically, the motor has 4 wires: 2 for each coil.
2. Define the motor pins: Define the Arduino pins connected to the motor coils
in the code.
3. Include the Stepper library: Include the Stepper library in the Arduino code
to control the motor.
4. Set the motor speed and steps: Set the motor speed and number of steps in
the code.
5. Use the step() function: Use the step() function to rotate the motor.
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps
per revolution
Stepper myStepper(stepsPerRevolution, 2, 3, 4, 5);
void setup() {
myStepper.setSpeed(10);
}
void loop() {
myStepper.step(stepsPerRevolution);
delay(500);
}
Raspberry Pi
1. Connect the motor: Connect the bipolar stepper motor to the Raspberry Pi
board. Typically, the motor has 4 wires: 2 for each coil.
2. Install the RPi.GPIO library: Install the RPi.GPIO library to control the motor.
3. Define the motor pins: Define the Raspberry Pi pins connected to the motor
coils in the code.
4. Set the motor speed and steps: Set the motor speed and number of steps in
the code.
5. Use the GPIO.output() function: Use the GPIO.output() function to rotate the
motor.
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
GPIO.setup(25, GPIO.OUT)
while True:
GPIO.output(17, GPIO.HIGH)
GPIO.output(23, GPIO.LOW)
GPIO.output(24, GPIO.HIGH)
GPIO.output(25, GPIO.LOW)
time.sleep(0.01)
OR
b Discuss the working principle of wireless Bluetooth sensors and
their role in IoT applications.
7 K1 CO
Working Principle of Bluetooth Sensors (4 marks)
Role of Bluetooth Sensors in IoT Applications (6 marks) 6 K1 4
Advantages and Challenges of Bluetooth Sensors (4 marks)
CO
IoT Applications and Use Cases (2 marks)
Answer 4
Working Principle of Wireless Bluetooth Sensors
Answer:
Here are the different types of cloud storage models, along with
examples of cloud services that implement these models:
Examples:
Examples:
- OpenStack Swift
- Ceph
- EMC Atmos
Examples:
Examples:
- OpenStack
- Ceph
- OwnCloud
OR
b Compare and contrast the two popular python web application 13 K1 CO
frameworks Django and Flask. Discuss their architecture and
5
core features.
Comparison of Django and Flask (8 marks)
Contrast of Django and Flask (8 marks)
Answer key:
Here's a comparison of Django and Flask, two popular Python
web application frameworks:
Similarities:
Differences: