13 mark answers notes ES&IOT
13 mark answers notes ES&IOT
1.Here's a simple and clear 13-mark answer for the question on IoT System
Functional Components and Architecture (CS3691 – Embedded Systems and
IoT). This answer is structured for easy recall, diagram inclusion, and key
points coverage.
Sure! Here's a simplified version of the IoT system functional components sketch—easy to
draw and understand for exams:
Labels:
This version is exam-friendly, neat, and easy to reproduce from memory. Let me know if
you'd like the architecture diagram simplified too!
ES&IOT nOTES…..
1. Sensors/Actuators (Perception Layer)
3. Connectivity/Network
1. Perception Layer
2. Network Layer
3. Middleware/Processing Layer
ES&IOT nOTES…..
• Technologies: Cloud computing, Big Data, Edge computing.
4. Application Layer
• Use simple examples like smart home, wearable fitness tracker, smart agriculture.
1. Introduction
• Actuators (e.g., Motors, LEDs, Relays) perform actions based on sensor inputs.
2. Components Required
ES&IOT nOTES…..
• Power Supply
START
↓ ↓
ES&IOT nOTES…..
END
6. Key Points
7. Applications
8. Advantages
9. Conclusion
Arduino uses a simplified version of **C/C++** with predefined functions for embedded
systems. Programs are called **"Sketches"** and follow a structured format.
---
ES&IOT nOTES…..
### **1. `setup()`**
- Used to initialize:
- Reading sensors.
- Processing data.
- Controlling actuators.
---
```cpp
// Pin Definitions
void setup() {
void loop() {
ES&IOT nOTES…..
delay(1000); // Wait 1 second
```
### **Explanation:**
---
```cpp
#include <DHT.h>
void setup() {
Serial.begin(9600);
pinMode(MOTOR_PIN, OUTPUT);
dht.begin();
void loop() {
ES&IOT nOTES…..
float temp = dht.readTemperature(); // Read temperature
Serial.print("Temperature: ");
Serial.println(temp);
Serial.println("Fan ON");
} else {
Serial.println("Fan OFF");
```
### **Explanation:**
---
```plaintext
START
Initialize (setup())
ES&IOT nOTES…..
▼
│ (digitalWrite HIGH)
No → Deactivate Motor
(digitalWrite LOW)
Delay (2 sec)
Repeat (loop())
(Continuously)
```
1. **Mandatory Functions**:
2. **Common Functions**:
ES&IOT nOTES…..
- `digitalWrite()` → Writes HIGH/LOW to a pin.
3. **Libraries**:
4. **Real-Time Control**:
## **7. Applications**
## **8. Conclusion**
Arduino’s simple structure (`setup()` + `loop()`) makes it ideal for embedded systems and IoT.
Real-time sensor-actuator control is achieved through conditional logic in `loop()`.
## **1. Introduction**
---
ES&IOT nOTES…..
### **A. Short-Range Wireless Protocols**
- **Range**: ~10m
- **Range**: ~100m
- **Range**: 10–100m
4. **Z-Wave**
- **Range**: ~30m
---
1. **LoRaWAN**
ES&IOT nOTES…..
- **Advantage**: Long-range, low power.
4. **Sigfox**
---
ES&IOT nOTES…..
3. **RS-485 (Modbus)**
---
```plaintext
START
[IoT Application?]
No
No
ES&IOT nOTES…..
▼
```
---
|-----------|-------|-----------|-----------|----------|
---
4. **Power vs Range Tradeoff** → LoRa (low power, long-range) vs Wi-Fi (high power, high
speed).
---
## **6. Applications**
ES&IOT nOTES…..
- **Smart Home** → Wi-Fi, Zigbee.
---
## **7. Conclusion**
Choosing the right IoT protocol depends on **range, power, data rate, and cost**. Short-
range protocols suit homes, while long-range options like LoRaWAN serve agriculture/urban
IoT.
---
1. **Radio Layer**
2. **Baseband Layer**
ES&IOT nOTES…..
- Defines **connection states** (Standby, Inquiry, Page, Connected).
- **Profiles**: Define use cases (e.g., **HFP** for hands-free, **A2DP** for audio).
---
ES&IOT nOTES…..
- **Authentication & Encryption** (if required).
- Master queries slave for **supported services** (e.g., file transfer, audio).
```plaintext
START
ES&IOT nOTES…..
▼
[Connection Active]
[Disconnect (Optional)]
END
```
---
## **5. Applications**
ES&IOT nOTES…..
## **6. Conclusion**
Bluetooth architecture uses a layered protocol stack for reliable short-range communication.
The connection process involves **discovery, paging, authentication, and data transfer**. .
GSM (Global System for Mobile Communications) is a **2G cellular network** divided into
**3 subsystems**:
ES&IOT nOTES…..
- Database of **all registered subscribers** (permanent storage).
---
GSM modules enable **SMS, calls, and internet (GPRS)** in IoT devices.
- Module searches for the nearest **BTS** and registers with the network.
- Module locks onto the strongest **GSM frequency band** (900/1800 MHz).
4. **Data/Call Transmission**
- For **SMS**: Encoded as a digital signal → Sent via BTS → MSC → SMSC → Recipient.
```plaintext
START
ES&IOT nOTES…..
[Power ON GSM Module]
ES&IOT nOTES…..
│
END
```
3. **GPRS vs SMS**:
4. **Handover Types**:
## **6. Conclusion**
GSM architecture relies on **BSS, NSS, and SIM authentication** for secure communication.
GSM modules enable IoT devices to **send SMS, make calls, and access the internet** via
GPRS.
---
---
ES&IOT nOTES…..
## **1. Raspberry Pi Architecture**
- **RAM** (1GB–8GB)
3. Connect **LED anode to GPIO27** and **cathode to GND** via 220Ω resistor.
ES&IOT nOTES…..
## **3. Python Program for LDR-Based LED Control**
```python
# Pin Setup
LDR_PIN = 17
LED_PIN = 27
GPIO.setmode(GPIO.BCM)
GPIO.setup(LED_PIN, GPIO.OUT)
def read_ldr():
count = 0
GPIO.setup(LDR_PIN, GPIO.OUT)
GPIO.output(LDR_PIN, GPIO.LOW)
sleep(0.1)
GPIO.setup(LDR_PIN, GPIO.IN)
count += 1
return count
try:
while True:
light_value = read_ldr()
GPIO.output(LED_PIN, GPIO.HIGH)
else:
GPIO.output(LED_PIN, GPIO.LOW)
ES&IOT nOTES…..
sleep(1)
except KeyboardInterrupt:
GPIO.cleanup()
```
### **Explanation**
```plaintext
START
ES&IOT nOTES…..
▼
END
```
---
## **6. Applications**
## **7. Conclusion**
Raspberry Pi’s GPIO and Python enable easy sensor interfacing. The LDR-LED example
demonstrates **real-time light monitoring** for IoT systems.
ES&IOT nOTES…..
#### **1. IoT Application Design Process**
- Sensor-actuator interfacing.
**Phase 6: Maintenance**
- OTA updates.
- Performance monitoring.
ES&IOT nOTES…..
**Objective**: Optimize garbage collection routes.
3. **Data Flow**:
```plaintext
START
ES&IOT nOTES…..
▼
END
```
IoT transforms healthcare through **real-time monitoring, data analytics, and remote
care**, reducing human errors and hospital visits.
ES&IOT nOTES…..
- **Wearables** (e.g., ECG/smartwatches) track vitals (heart rate, SpO₂).
4. **Drug Compliance**
- **Smart pill dispensers** remind patients and notify doctors if doses missed.
5. **Telemedicine**
- **Early Disease Detection**: Continuous monitoring catches issues early (e.g., arrhythmia).
**Solution**:
2. **Cloud Analytics**
ES&IOT nOTES…..
- AI detects irregularities → Sends alerts to cardiologist.
3. **Emergency Response**
```plaintext
START
ES&IOT nOTES…..
▼
[Continuous Monitoring]
END
```
IoT in healthcare enables **preventive care, reduces costs, and improves outcomes**.
Cardiac monitoring exemplifies its life-saving potential.
---
ES&IOT nOTES…..