0% found this document useful (0 votes)
12 views5 pages

Exp3 IOT

The document outlines a practical exercise for simulating a fan control system based on temperature and humidity using Arduino and Tinkercad. It details the components required, wiring connections, Arduino code logic, and the expected outcomes of the project. The learning outcomes include understanding sensor integration, relay control, and LCD display implementation.

Uploaded by

khushi
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)
12 views5 pages

Exp3 IOT

The document outlines a practical exercise for simulating a fan control system based on temperature and humidity using Arduino and Tinkercad. It details the components required, wiring connections, Arduino code logic, and the expected outcomes of the project. The learning outcomes include understanding sensor integration, relay control, and LCD display implementation.

Uploaded by

khushi
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/ 5

Worksheet 1

Student Name:Khushi Mittaliya UID:23MCI10221


Branch:MCA(AIML) Section/Group:23MAM-3
Semester: 4TH Date of Performance:11/02/2025
Subject Name:IOT Subject Code:23CAH702

1. Aim/Overview of the practical:

Simulate a control system by turning on/off fan based on temperature and humidity

2. Task to be done:
• Steps to Simulate Fan Control System in Tinkercad
• Select Components → Arduino Uno, DHT11/DHT22 sensor, NPN transistor (2N2222/BC547), fan (or LED),
resistors.
• Wire DHT Sensor → VCC to 5V, GND to GND, Data to Digital Pin 2 (use 10kΩ pull-up resistor if needed)..
• Connect Transistor & Fan →
1. Fan (+) → 5V
2. Fan (-) → Collector of 2N2222
3. Emitter → GND
4. Base → Digital Pin 9 via 1kΩ resistor
• Write Arduino Code → Read temperature & humidity, set threshold (e.g., Temp > 30°C or Humidity > 60%),
control fan via Pin 9
• Upload & Simulate → Run in Tinkercad, check Serial Monitor for data, ensure fan (or LED) turns ON/OFF based
on conditions.

3. Software/Tools used:
• Tinkercad – For circuit simulation and Arduino programming.
• Arduino IDE – For writing and uploading code to Arduino.
• DHT Library – To read temperature and humidity data from the DHT11/DHT22 sensor.
• Serial Monitor – To display real-time sensor readings and debug the system.

Required Components
• Arduino Uno (Microcontroller)
• TMP36 Temperature Sensor
• LCD 16x2 Display (With I2C or direct wiring)
• Relay Module (To control the fan)
• Fan (or DC Motor)
• Resistors (10kΩ for pull-up, others as needed)
• Breadboard & Jumper Wires

4. Practical implementation and steps to be done (with screenshots):

Wiring Connections
• TMP36 Temperature Sensor:
• VCC (Left Pin) → 5V (Arduino)
• VOUT (Middle Pin) → A0 (Arduino)
• GND (Right Pin) → GND (Arduino)
• LCD 16x2 Display (Direct Wiring / I2C Module)
• VCC → 5V (Arduino)
• GND → GND (Arduino)
• SCL (if using I2C) → A5 (Arduino)
• SDA (if using I2C) → A4 (Arduino)
• If directly wired, connect RS, E, D4-D7 to digital pins.

♦ Relay Module (For Fan Control):


• VCC → 5V (Arduino)
• GND → GND (Arduino)
• IN (Control Pin) → Digital Pin 9 (Arduino)

♦ Fan Connections:
• Fan (+) Positive → External Power 12V/5V
• Fan (-) Negative → Relay NO (Normally Open) Pin
• Relay COM (Common) Pin → GND

♦ Arduino Code Logic


• Read temperature from TMP36 sensor.
• Display temperature on LCD.
• If temperature exceeds 30°C, activate relay to turn fan ON.
• If temperature drops below 30°C, turn fan OFF.

♦ Upload & Simulate in Tinkercad


• Verify connections in Tinkercad.
• Upload the Arduino code.
• Monitor LCD display & fan operation based on temperature

CODE:
5. Result/Output/Writing Summary:

• The temperature sensor (TMP36) continuously measures the surrounding .


• The LCD display shows the real-time temperature readings.
• When the temperature exceeds 30°C, the relay activates, turning the fan ON.
• When the temperature falls below 30°C, the relay deactivates, turning the fan OFF.
Learning outcomes (What I have learnt):

• Understanding Sensor Integration – Learn how to interface the TMP36 temperature sensor with
Arduino to measure real-time temperature.
• Relay & Actuator Control – Gain knowledge on using a relay module to control high-power devices
like a fan with Arduino.
• LCD Display Implementation – Learn how to display sensor data on an LCD 16x2 screen for real-
time monitoring
.Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Demonstration and Performance 5
(Pre Lab Quiz)
2. Worksheet 10
3. Post Lab Quiz 5

You might also like