This project implements a monitoring and control system using an Arduino board with various components, including temperature sensors, LEDs, a servo motor, and an Ethernet module. The system allows remote monitoring and control through a web server hosted on the Arduino board.
- Arduino Board
- Ethernet Shield
- DHT11 Temperature and Humidity Sensor
- Servo Motor
- LEDs
- Gas Sensor (Analog)
- SD Card Module
- Resistors, wires, and other basic electronic components
- DHT (for DHT11 sensor)
- SPI (for SD card)
- Ethernet (for Ethernet connectivity)
- SD (for SD card operations)
- Servo (for servo motor control)
- LEDs (Pin 34, 35, 36, 37)
- Servo Motor (Pin 22)
- Gas Sensor (Analog Pin A8)
- Temperature Sensors (Pin 30, 31, 32, 33)
- Other Devices (Fire Alarm, Water Pump, Fan - Pins 23, 24, 25)
- Attach the servo motor to the designated pin (
servoMotor
). - Connect the fire alarm, water pump, fan, and gas sensor to their respective pins.
- Ensure the correct pin configurations for LEDs (
led1
toled4
).
- Load the provided code onto the Arduino board.
- Connect the Arduino to the Ethernet network.
- Open a web browser and navigate to the assigned IP address (e.g., http://192.168.1.10).
- LED Control: Use the
/index.htm
page to control the LEDs. - Door Control: Use the
/index.htm
page to open/close the servo-controlled door. - Temperature Monitoring: Access temperature information using the
/tps.htm
pages.
- If gas concentration exceeds a threshold, the system activates the emergency response, turning on the fan, fire alarm, and indicating with an LED.
- If any temperature sensor records a temperature exceeding the threshold, the emergency response is activated, turning on the fan, water pump, and fire alarm.
- The Arduino reads temperature values from four DHT11 sensors and checks for abnormal temperature conditions.
- Gas levels are monitored using an analog gas sensor.
- LEDs can be controlled through HTTP requests to the Arduino server.
- The servo motor is used to simulate the opening and closing of a door.
- The system provides a basic web interface for control and monitoring.
index.htm
: Main HTML file for controlling LEDs and servo.tps.htm
: HTML file for displaying temperature information.
- Ensure that the required HTML files (
index.htm
andtps.htm
) are present on the SD card. - The project assumes a local network setup with a static IP address (
192.168.1.10
in the provided code). Adjust the IP address based on your network configuration.
Feel free to customize the code and adapt it to your specific requirements. For further assistance, refer to the Arduino documentation and the libraries used in the project.