Board 3 is responsible for the control of the smart bridge in case of flooding, it also manages emergency communication (call & SMS) in response to fire & flood incidents.
-
Servo Motors for Bridge Control:
- Servo 1: Connected to pin
servoPin (5)
. - Servo 2: Connected to pin
servoPin2 (6)
.
- Servo 1: Connected to pin
-
Fire Signal In (from Board 2 - Fire Sigal Out): Connected to pin
fireInPin (10)
. -
Flood Signal In (from Board 2 - Flood Signal Out): Connected to pin
in (9)
. -
Emergency Communication:
- SIM900 TX: Connected to pin
7
. - SIM900 RX: Connected to pin
8
. - Buzzer (for emergency alarm): Connected to pin
alarmBuzzerPin (11)
.
- SIM900 TX: Connected to pin
-
NB: all negative (-ve/GND) wires are connected to GND.
For detailed connections, refer to the Circuit Diagram.
- The servos control the bridge's position.
- Bridge Up Position:
BRIDGE_UP_POSITION (70)
. - Bridge Down Position:
BRIDGE_DOWN_POSITION (0)
.
- Bridge Up Position:
- Fire Detection:
- Fire Signal In: Connected to pin
fireInPin (10)
. - Automatic emergency call and SMS alert are triggered in case of fire.
- Fire Signal In: Connected to pin
- Water Level Detection:
- Flood Signal In: Connected to pin
waterInPin (9)
. - Automatic emergency call and SMS alert are triggered in case of rising water levels.
- Flood Signal In: Connected to pin
- Adjust configurations in the code if necessary.
- Upload the Board3_SmartBridge_SMS.ino code to your Arduino board.
- Connect the components as specified in the connections section.
- Power on the system and test the smart bridge control and emergency communication systems.
Refer to the code file for detailed comments and configuration instructions.
Contribute to the improvement of the smart bridge and emergency communication by creating issues, suggesting new features, or opening pull requests.