Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Smart Hospital Room Control System

A Pygame-based smart hospital room control system interface with integrated voice control functionality.

Features

  • Real-time temperature control (16-30°C)
  • Humidity adjustment (30-70%)
  • Light control (0-100%)
  • CO₂ level monitoring (400-1000ppm)
  • Voice control functionality
  • Intuitive slider control interface

Installation Requirements

  1. Python 3.8+
  2. Install dependencies:
pip install -r requirements.txt

Running the Program

python hospital_room_control.py

Important Notes

  • Ensure microphone is properly installed
  • Stable internet connection required for voice recognition

User Guide

Voice Commands Available

Temperature Control

  • "Set temperature to 22 degrees"
  • "Increase temperature by 2 degrees"
  • "Decrease temperature by 3 degrees"
  • "It's too hot in here" (will adjust to optimal cooler temperature)
  • "It's too cold" (will adjust to optimal warmer temperature)
  • "Make it warmer"
  • "Make it cooler"

Humidity Control

  • "Set humidity to 50 percent"
  • "Increase humidity by 10 percent"
  • "Decrease humidity by 5 percent"
  • "It's too dry in here" (will increase to optimal humidity)
  • "It's too humid" (will decrease to optimal humidity)

Lighting Control

  • "Set light to 60 percent"
  • "Increase brightness by 20 percent"
  • "Reduce light by 15 percent"
  • "It's too bright in here" (will dim to optimal level)
  • "It's too dark" (will brighten to optimal level)

CO2 Level Control

  • "Set CO2 to 500 ppm"
  • "Increase CO2 by 50 ppm"
  • "Decrease CO2 by 100 ppm"

Button Controls

Voice Control Buttons

  • Voice Control: Press to start voice recognition
  • Switch Mic: Cycle through available microphones
  • Cancel: Stop the current voice recognition session

Nurse Call Buttons

  • Call Nurse: Request nurse assistance (non-emergency)
  • Emergency: Call for urgent medical assistance

Optimal Ranges

  • Temperature: 21-24°C
  • Humidity: 40-60%
  • Light: 40-70%
  • CO2: 400-600 ppm

Notes

  • If you request a value outside the allowed range (e.g., "Set temperature to 35 degrees"), the system will display a warning and maintain the current setting.
  • The optimal range indicators are shown in green on each slider.
  • For best voice recognition results, speak clearly and at a normal volume.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages