meta data for this page
  •  

Sample Projects

No idea where to start?

This page shows you a simple way to use the Keyestudio IoT Smart Home Kit in your system. 🏠✨

This example demonstrates how you can automate a room using the Keyestudio IoT Smart Home Kit. The system handles entry, exit, lighting, and even reacts to environmental changes like water droplets.

Description

The system automates a smart room with the following features:

  1. When entering the room, the user taps an RFID card or tag on the RFID sensor. The door opens for 2 seconds, the fan turns on, and the light switches on. RFID is needed so that only authorized users can enter the room or house.
  2. When exiting, the user presses a button. The door opens for 2 seconds, then closes.
  3. If the room is empty (no motion detected by the PIR motion sensor), the light and fan automatically turn off to save energy.
  4. The water drop sensor is placed outside to detect rain and if water droplets are detected by the steam/water drop sensor and the window is open, the system closes the window and triggers the buzzer. If the window is already closed, the buzzer simply beeps as a warning.

Flow of Scenario

  1. Entering the room:
    1. User taps the RFID card/tag on the RFID sensor.
    2. The door opens for 2 seconds.
    3. The fan and light turn on.
    4. The door closes.
  2. Exiting the room:
    1. User presses the button.
    2. The door opens for 2 seconds.
    3. The door closes.
  3. Room empty:
    1. PIR motion sensor detects no motion.
    2. The light and fan automatically turn off after a delay.
  4. Water droplets detected:
    1. Steam/water drop sensor detects water.
    2. If the window is open:
      1. The window closes.
      2. The buzzer beeps as a warning.
    3. If the window is already closed:
      1. The buzzer simply beeps.

List of Components

  1. Input Devices:
    • RFID sensor
    • Button
    • PIR motion sensor
    • Steam/water drop sensor
  2. Processing Unit:
    • ESP32 PLUS Development Board
  3. Output Devices:
    • Servo motor (for door and window)
    • Fan (DC motor)
    • Light (Yellow LED)
    • Buzzer

Source Code

This example was done using Arduino IDE. You can find the Arduino code for this system here: samplecode