This board focuses on energy efficiency and environmental monitoring within the Radiance Smart City project. It manages street lighting based on ambient light conditions, allows manual control via remote, remote functions, and monitors fire and flood situations.
-
IR Receiver: Connected to pins
6
. -
LDR (Light Dependent Resistor): Connected to pin
A0
. -
Water Level Sensor: Connected to pin
A1
. -
Street Light LEDs: Connected to pin
SLledPin (8)
. -
Residential Blocks Light LEDs: Connected to pins:
block1LEDPin (A2)
,block2LEDPin (A3)
,block3LEDPin (A4)
,block4LEDPin (A5)
. -
Gate Control Pin (to Board 1 - Remote Signal Pin): Connected to pin
controlgate (4)
. -
Gate Lockdown Pin (to Board 1 - Remote Lockdown Pin): Connected to pin
gateLockdownPin (5)
. -
Alarm System, LEDs and Buzzer:
-
Fire Alarm:
- Fire Sensor: Connected to pin
flameInPin (7)
. - Fire Red LED: Connected to pin
fireRedLedPin (13)
. Indicates fire detection. - Fire Green LED: Connected to pin
fireGreenLedPin (12)
. Indicates no fire. - Fire Signal Out (to Board 3 - Fire Signal In): Connected to pin
fireOutPin (10)
.
- Fire Sensor: Connected to pin
-
Water Alarm:
- Water Level Sensor: Connected to pin
waterInPin (A1)
. - Water Red LED: Connected to pin
waterRedLedPin (3)
. Indicates rising water levels. - Water Green LED: Connected to pin
waterGreenLedPin (2)
. Indicates safe water levels. - Flood Signal Out (to Board 3 - Flood Signal In): Connected to pin
waterOutPin (9)
.
- Water Level Sensor: Connected to pin
-
Buzzer: Connected to pin
alarmBuzzerPin (11)
.
-
-
NB: all negative (-ve/GND) wires are connected to GND.
For detailed connections, refer to the Circuit Diagram.
-
LDR Mode: The street lights are controlled based on ambient light conditions using the LDR sensor. Adjust the
LDR_LOW_LIMIT
value to fine-tune the sensitivity of the LDR to achieve optimal performance in various lighting environments. -
Remote Control: Aside the gate operation, the IR remote allows manual control of street lights and residential blocks lights.
- Street light control: When the switch mode button is pressed, it switches the mode from automatic mode to manual mode. In the manual mode, a pressed power button turns the light on/off. The switch mode button needs to be pressed to switch the mode back to automatic mode.
- Residential blocks light control: When the appropriate button is pressed, it triggers the various block LED pin. This turns the respective lights on/off.
-
Fire Alarm System: The fire sensor constantly monitor the environment for potential fire incidents.
-
Water Alarm System: The water level sensor actively gauges water levels.
-
Both systems, integrates visual indicators to signal detection, ensuring a visual distinction. In conjunction with the visual indicators, an alarm is employed to provide an audible alert during critical situations.
- Adjust configurations in the code if necessary.
- Upload the Board2_EnergyEmergency.ino code to your Arduino board.
- Connect the components as specified in the connections section.
- Power on the system and test the LDR-based street light control, remote functions and fire/water alarm systems.
Refer to the code file for detailed comments and configuration instructions.
Feel free to contribute to the enhancement of the security system by creating issues, submitting feature requests, or opening pull requests.