SS CH - 5 Questions
SS CH - 5 Questions
SS CH - 5 Questions
Sensors are vital components in IoT systems, collecting data from the environment for
analysis and decision-making. Below is a list of easy-to-remember sensors commonly used in
IoT applications, along with brief descriptions:
1. Temperature Sensor
2. Humidity Sensor
• Example: DHT22.
3. Motion Sensor
HARDIK KHAMBHAYATA 1
Applications based on IoT
4. Light Sensor
5. Pressure Sensor
• Example: BMP180.
6. Proximity Sensor
7. Gas Sensor
8. Vibration Sensor
HARDIK KHAMBHAYATA 2
Applications based on IoT
Actuators are devices that convert energy into mechanical motion or action based on
signals from IoT systems. Here is a list of easy-to-remember actuators with brief descriptions:
1. DC Motor
2. Stepper Motor
3. Servo Motor
HARDIK KHAMBHAYATA 3
Applications based on IoT
4. Solenoid
• Purpose: Creates linear motion by converting electrical energy into a magnetic field.
5. Relay
6. Linear Actuator
7. Piezoelectric Actuator
8. Hydraulic Actuator
HARDIK KHAMBHAYATA 4
Applications based on IoT
9. Pneumatic Actuator
• Group them by motion type: Rotational (DC, Stepper, Servo), Linear (Solenoid,
Linear Actuator).
• Use real-world examples like automatic doors (Solenoid) or HVAC systems (Relay,
Pneumatic Actuator).
Interfacing sensors and actuators with an Arduino involves connecting them to the
Arduino board and writing a program to process input from the sensors and control the
actuators. Here's a simple step-by-step explanation:
HARDIK KHAMBHAYATA 5
Applications based on IoT
• Actuators: Perform actions based on the signals from the Arduino (e.g., turn on a
motor or light).
• Use analog pins (A0-A5) for sensors that output variable voltages.
• Use digital pins (D2-D13) for sensors with binary outputs (e.g., motion
detection).
• Use PWM pins (marked with ~) for controlling actuators like servo motors.
HARDIK KHAMBHAYATA 6
Applications based on IoT
int ledPin = 9;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
• The sensor provides input, and based on the input, the Arduino controls the actuator.
5. Hardware Connections
• Sensors: Connect power (VCC and GND) and data pins to Arduino.
• Actuators: For devices like motors, use external power and a driver (e.g., L298N
Motor Driver).
HARDIK KHAMBHAYATA 7
Applications based on IoT
6. Applications
• IoT Home Automation: Use sensors to detect room temperature and actuators to turn
on/off fans.
• Robotics: Combine proximity sensors and motors for obstacle detection and
navigation.
understand how an Arduino-based Smart Light System works in simple steps. This
system uses a Light Dependent Resistor (LDR) as a sensor to measure light intensity and
an LED as an actuator to control lighting automatically.
1. Components Required
2. Objective
The LED automatically turns ON in the dark and OFF in bright light using the LDR to
measure light levels.
Step 1: Connections
1. LDR Circuit:
HARDIK KHAMBHAYATA 8
Applications based on IoT
2. LED Circuit:
• Connect the positive leg (longer leg) of the LED to digital pin 9.
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
ldrValue = analogRead(ldrPin);
if (ldrValue < 500) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
delay(100);
}
4. How It Works
• In bright light, the resistance of the LDR decreases, producing a higher analog
voltage at pin A0.
HARDIK KHAMBHAYATA 9
Applications based on IoT
• If the light level is below a threshold (e.g., 500), the LED is turned ON
using digitalWrite(ledPin, HIGH).
• If the light level is above the threshold, the LED is turned OFF.
5. Applications
1. Automatic Street Lighting: Streetlights turn ON at night and OFF during the day.
Key Concepts
• Processing: Arduino analyzes the data and decides whether to turn the LED ON or
OFF.
HARDIK KHAMBHAYATA 10