This Arduino-based project is an autonomous alarm system that utilizes PID (Proportional-Integral-Derivative) control to maneuver and respond to sensor inputs. The system integrates Firebase for remote control and monitoring.
- Sensor Integration: Utilizes IR sensors to detect position and trigger alarm response.
- PID Control: Implements PID algorithm to regulate motor speeds based on sensor readings.
- Firebase Integration: Allows remote control and monitoring through Firebase Realtime Database (RTDB).
- Autonomous Behavior: Self-regulates and responds to changes in sensor inputs, activating the alarm system as needed.
- Arduino board compatible with WiFi modules (e.g., ESP32, ESP8266)
- L298N motor driver
- Infrared (IR) sensors (quantity according to SENSOR_COUNT)
- Buzzer
- Power supply (e.g., 9V)
- Arduino IDE
- Libraries:
- L298N
- Firebase_ESP_Client
- Add-ons: TokenHelper, RTDBHelper
Sim_Final.mp4
- Connect the hardware components according to the provided pin mappings in the code.
- Open the Arduino IDE and install required libraries.
- Copy the provided code into the Arduino IDE.
- Replace placeholders (
Your_WiFi_SSID
,Your_WiFi_Password
,Your_Firebase_API_Key
,Your_Firebase_RTDB_URL
) with your network credentials and Firebase details. - Upload the code to your Arduino board.
- Ensure the hardware setup is properly connected.
- Power on the Arduino board.
- The system will attempt to connect to the configured Wi-Fi network and Firebase.
- Monitor the system's behavior via the serial monitor in the Arduino IDE.
- Utilize the Firebase Realtime Database to control the system remotely by changing the
/play/play
key value:0
: Deactivates the alarm system.1
: Activates the alarm system.
- Check the serial monitor for debugging information and error messages.
- Ensure proper connections and component configurations according to the provided pin mappings.
This project is licensed under the MIT License.