Question: Code in python for the following scenario living room can become quite hot and humid during certain time of the day. a. efan (exhaust fan)

Code in python for the following scenario

living room can become quite hot and humid during certain time of the day. a. efan (exhaust fan) helps to reduce room's temp and humidity b. people using living room has the habit of truning on both lamps and air con even when lighting in room is adequate, and room's temp is low. thus, contributes to electrical power wastage.

task: design an automated environment controller (AEC) to minimize electrical power wastage by auto control of lamps, efan and aircon. contains: thermopile sensors [TSA](measure human body temp), light intensity sensors (measure brightness), temp & huimdity sensor (measure temp and humidity level)

AEC detects presence of human when TSA measures human body temp as >_32 degrees and absence as <32 degress celcius. controlling led lamps: relay 1 efan: relay 2 air con: relay 3

when AEC powers up, led lamps (light) and air con (acon) are OFF. humidity threshold: 60% intrnsity TH: 160 room temp TH: 28 degrees celcius human body temp TH: 32 degrees celcius

if TEMP is > TEMP_TH (temp threshold), EFAN = ON if TEMP is < TEMP_TH, EFAN = OFF

to detect a person: if INTENSITY >_ INTENSITY_TH, LIGHT = OFF if INTENSITY >_ INTENSITY_TH, LIGHT = ON.

if TEMP>_ TEMP_TH, ACON = ON if TEMP>_ TEMP_TH, ACON = OFF

when no person is detected, LIGHT and ACON are switched OFF after 60 secs. when person is detected before 60s timeout, the above is repeated. EFAN ON/OFF control is dependant on room temp or humidity lvel after 60s.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!