IoT Based Smart Home Appliances
• Skill Lab - Experiment No. 12
• Department of Electrical & Electronics
Engineering
Aim of the Experiment
• To develop IoT based smart control of home
appliances using Raspberry Pi.
Equipment Required
• Raspberry Pi kit (1.2 GHz, 1 GB RAM)
• Breadboard (400 points)
• Relay Module (10A)
• Memory Card (16GB micro SD)
• LED
• Lamp (100W)
• LCD Monitor, Keyboard, Mouse
• Jumper and Connecting Wires
Key Components: Raspberry Pi &
Relay Module
• Raspberry Pi: A small single-board computer with Wi-Fi,
Bluetooth, USB support.
• Relay Module: Controls high voltage/current devices through
Pi.
Key Components: Breadboard, LED,
Jumper Wires
• Breadboard: Solderless prototyping board.
• LED: Light emitting diode used for indication.
• Jumper Wires: Used to connect components without
soldering.
Python Programming Basics
• High-level, interpreted language.
• Emphasizes readability with indentation.
• Ideal for small to large scale projects.
Circuit: LED Blinking
• Simple LED and resistor connected to
Raspberry Pi GPIO pin.
• Resistor calculated using Ohm's Law to
prevent LED damage.
Python Code Overview
• import RPi.GPIO as GPIO
• from time import sleep
• GPIO.setmode(GPIO.BOARD)
• GPIO.setup(8, GPIO.OUT)
• while True:
• GPIO.output(8, GPIO.HIGH)
• sleep(1)
Circuit: Lamp Control
• Using Raspberry Pi to control a 100W, 240V
lamp via Relay Module.
• Ensures safe switching of high voltage load.
Procedure
• Connect equipment as per circuit diagram.
• Write and run Python program.
• Verify LED/Lamp operation.
Precautions
• Verify all connections before powering.
• Use safety equipment like shoes and apron.
• Handle all devices with care.
Observations and Conclusion
• Observe LED/Lamp blinking intervals.
• Successful demonstration of IoT based
appliance control.
Questions for Discussion
• What happens if the resistor is omitted?
• How can we extend this to control more devices?
• What are the real-world applications of this setup?