0% found this document useful (0 votes)
2 views

IoT_Components_Details

The document details various IoT components including switches, potentiometers, sensors, and modules, outlining their pin configurations, uses, working principles, connections with Arduino, example codes, and power requirements. Each component serves specific functions such as measuring light intensity, heart rate, temperature, and enabling Wi-Fi connectivity. The information is structured for easy reference for those working with Arduino and IoT projects.

Uploaded by

vishalbhateria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

IoT_Components_Details

The document details various IoT components including switches, potentiometers, sensors, and modules, outlining their pin configurations, uses, working principles, connections with Arduino, example codes, and power requirements. Each component serves specific functions such as measuring light intensity, heart rate, temperature, and enabling Wi-Fi connectivity. The information is structured for easy reference for those working with Arduino and IoT projects.

Uploaded by

vishalbhateria
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Details of IoT Components

### 1. Switch

- Pins: Usually 2 or 3 pins.

- 2-pin: Connected in series.

- 3-pin: One is the common terminal, and the other two are Normally Open

(NO) and Normally Closed (NC).

- Use: Used to turn circuits on or off.

- Working: Completes or breaks the electrical circuit when toggled.

- Connection with Arduino:

- Connect one terminal to a digital pin and the other to ground with a pull-up

resistor.

- Example Code: Use digitalRead() to detect the state (HIGH/LOW).

- Power: No external power required.

### 2. Potentiometer

- Pins: 3 pins (VCC, GND, Output).

- Use: Acts as a variable resistor or voltage divider.

- Working: Turning the knob changes the resistance, altering the output

voltage.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Output to an analog pin (e.g., A0).

- Example Code: Use analogRead() to measure the output voltage.

- Power: 5V from Arduino.

### 3. LDR (Light Dependent Resistor)


- Pins: 2 pins (Non-polarized).

- Use: Measures light intensity.

- Working: Resistance decreases as light intensity increases.

- Connection with Arduino:

- Use a pull-down resistor to form a voltage divider.

- Connect the output to an analog pin (e.g., A0).

- Example Code: Use analogRead() to measure voltage.

- Power: 5V from Arduino.

### 4. Pulse Sensor

- Pins: 3 pins (VCC, GND, Signal).

- Use: Measures heart rate.

- Working: Detects pulse by measuring changes in light intensity.

- Connection with Arduino:

- Connect VCC to 3.3V/5V, GND to GND, and Signal to an analog pin.

- Example Code: Use libraries like "PulseSensorPlayground".

- Power: 3.3V or 5V.

### 5. LCD with I2C Board

- Pins: 4 pins (VCC, GND, SDA, SCL).

- Use: Displays text and numbers.

- Working: The I2C module reduces the number of pins required for connection.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, SDA to A4, and SCL to A5 (for Uno).

- Example Code: Use the "LiquidCrystal_I2C" library.

- Power: 5V.
### 6. Gas Sensor (MQ-7)

- Pins: 4 pins (VCC, GND, Digital Out, Analog Out).

- Use: Detects carbon monoxide (CO) gas.

- Working: Changes resistance based on gas concentration.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Analog Out to an analog pin.

- Example Code: Use analogRead() to measure gas concentration.

- Power: 5V; preheating required for stability.

### 7. DHT-11

- Pins: 3 pins (VCC, GND, Signal).

- Use: Measures temperature and humidity.

- Working: Uses a thermistor and capacitive humidity sensor.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Signal to a digital pin.

- Example Code: Use the "DHT" library.

- Power: 3.3V to 5V.

### 8. Water Level Sensor

- Pins: 3 pins (VCC, GND, Signal).

- Use: Measures water level.

- Working: Detects water through resistance variations.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Signal to an analog pin.

- Example Code: Use analogRead() to measure water level.

- Power: 5V.
### 9. Fire Detection Sensor

- Pins: 3 pins (VCC, GND, Signal).

- Use: Detects flames or IR light.

- Working: Infrared-sensitive photodiode detects flames.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Signal to a digital pin.

- Example Code: Use digitalRead() to check for flame detection.

- Power: 3.3V to 5V.

### 10. Buzzer

- Pins: 2 pins (VCC, GND).

- Use: Produces sound for alerts.

- Working: Oscillates to create sound waves when powered.

- Connection with Arduino:

- Connect VCC to a digital pin and GND to GND.

- Example Code: Use tone() function to generate sound.

- Power: 3.3V to 5V.

### 11. Sound Sensor

- Pins: 3 pins (VCC, GND, Signal).

- Use: Detects sound levels.

- Working: Converts sound waves into electrical signals.

- Connection with Arduino:

- Connect VCC to 5V, GND to GND, and Signal to an analog pin.

- Example Code: Use analogRead() to measure sound intensity.

- Power: 5V.
### 12. IR Sensor with Servo Motor

- Pins:

- IR Sensor: 3 pins (VCC, GND, Signal).

- Servo Motor: 3 pins (VCC, GND, Signal).

- Use: Detects objects and rotates the servo motor accordingly.

- Working:

- IR Sensor detects objects using infrared light.

- Servo Motor rotates to a specific angle based on the input signal.

- Connection with Arduino:

- IR Sensor: Connect VCC to 5V, GND to GND, and Signal to a digital pin.

- Servo Motor: Connect VCC to 5V, GND to GND, and Signal to a PWM pin.

- Example Code: Use Servo library for motor control and digitalRead() for the

sensor.

- Power: 5V; external power recommended for the servo motor.

### 13. ESP8266

- Pins: 8 or more pins (depends on the module version).

- Common pins: VCC, GND, TX, RX, GPIOs, EN, CH_PD.

- Use: Provides Wi-Fi connectivity for IoT applications.

- Working: Acts as a Wi-Fi module for transmitting and receiving data over the

internet.

- Connection with Arduino:

- Use SoftwareSerial for TX/RX communication.

- Connect TX to RX (Arduino), RX to TX (Arduino) via voltage divider, VCC to

3.3V, and GND to GND.

- Example Code: Use "ESP8266WiFi" library.

- Power: 3.3V (requires a stable power supply).

You might also like