
This project is a combinational logic controller for a hydroponic system. The 8 DIP switches simulate sensor conditions such as low water level, high air temperature, abnormal pH/EC, high humidity, low light, high water temperature, and flow failure. Logic gates process these inputs and activate outputs for alarm, pump, fan, lighting, tank filling, nutrient warning, critical state, and normal operation.
Run the simulation and toggle the 8 DIP switches to simulate different sensor conditions. A switch at 0 represents a normal condition and 1 represents an alert condition. Observe the output LED bar to verify the controller response. For example, 00000000 represents normal operation, 10000000 simulates low water level, and 00000001 simulates a flow failure.
List external hardware used in your project (e.g. PMOD, LED display, etc), if any
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | LEVEL_LOW | ALARM | |
| 1 | AIR_TEMP_HIGH | PUMP_EN | |
| 2 | PH_ALERT | FAN_EN | |
| 3 | EC_ALERT | LIGHT_EN | |
| 4 | HUMIDITY_HIGH | FILL_EN | |
| 5 | LIGHT_LOW | NUTRIENT_ALERT | |
| 6 | WATER_TEMP_HIGH | CRITICAL | |
| 7 | FLOW_FAULT | SYSTEM_NORMAL |