Integration between fire alarm and smoke exhaust fan in emergencies.
There are 1 software and 3 inspired website used:
Tinkercad: used to make a virtual circuit and simulate it before applying it to check if it is applicable or not and to make a wiring diagram for the circuit of the device.
2. Google : used to find inspirational ideas and ways to apply them and search for solutions for problems faced.
3. Pinterest: used to find inspirational ideas and ways to apply them and search for solutions for problems faced.
4. Autodesk Instructables: used to find inspirational ideas and ways to apply them and search for solutions for problems faced.
5.Arduino IDE: to verify the code and upload it to Arduino
6.Arduino Bluetooth control App to control the components via mobile
Thinkercad
Google seach
Autodesk Instructables
Arduino ide
Arduino Bluetooth
Mini breadboard
ِAdaptor 9V
Arduino uno
Buzzer
Arduino Bluetooth Module
FAN
Inputs
Buttons 1, 2, 3 in Arduino Bluetooth controller App
Action
The fan turns on when pressing button 2.
The buzzer turns on when pressing button 3.
Both turn off when pressing button 1.
Brain
An Arduino UNO board will be used take inputs and generate actions
Identify char incoming data = 0
Identify variables pins 8 & 12 for the buzzer and the fan.
Set the output pins (8 and 12) for Push buttons (OUPUT)
use while loop -->
if incoming data "A" means pressing button 1(Set in the App 1 =A) --> Turn off both (Fan = Low & Buzzer = LOW)
if incoming data "B" means pressing button 2(Set in the App 2=B) --> Turn on Fan & Turn off Buzzer (Fan = High& Buzzer = LOW)
if incoming data "C" means pressing button 3(Set in the App 3=C) --> Turn on Fan & Turn off Buzzer (Fan = Low& Buzzer = High)
Then uploaded the code to the Arduino IDE.
Set Buttons in the Bluetooth control App.
The Electrical circuit simulation on TinkerCad
1 Make a diagrammatic sketch for the device showing the outer shape of device
3. Download the Arduino Bluetooth to Mobile Phone and star to pair it with BT Module
4. Write the code and modified it Arduino using Arduino IDE
char incomingData = '0' ;
int Buzzer = 8;
int Fan = 12 ;
void setup() {
pinMode (Buzzer, OUTPUT);
pinMode (Fan, OUTPUT);
Serial.begin(9600);
}
void loop() {
while (Serial.available() == 0);
incomingData = Serial.read();
if (incomingData == 'A') {
digitalWrite(Fan, LOW);
digitalWrite (Buzzer, LOW);
delay (10);
Serial.print ("Off");
}
if (incomingData == 'B') {
digitalWrite(Fan, HIGH);
digitalWrite (Buzzer, LOW);
delay (100);
Serial.print ("Fan on");
}
if (incomingData == 'C') {
digitalWrite(Fan, LOW);
digitalWrite (Buzzer, HIGH);
delay (100);
Serial.print ("Sound on");
}
Serial.println(incomingData);
}
The Electrical circuit simulation on TinkerCad
2. make a wiring diagram for the circuit on tinker CAD by :
add breadboard, Arduino,
Fan motor
Connect one leg of the motor to Pin 12 ).
Connect the other leg of the GND in the breadboard that is connected (to the ground of Arduino).
Connect the Ground to GND (Arduino).
connect the Buzzer
(Positive (buzzer to ) → Pin 8 (Arduino),
negative to GND in the breadboard that connected (to the ground of Arduino).
Bluetooth (BT ) module
VCC (BT ) → 5V (Arduino)
GND (BT ) → GND in the breadboard that is connected (to the ground of Arduino).
TX (BT ) → PIN 0 RX (Arduino)
RX (BT ) → PIN 1 TX (Arduino)
5.verify the code and upload it to Arduino using Arduino IDE
6. wiring the circuit according to the sketch in thinkercad
Showcase the project and check the functionality of the code and components.
The Bluetooth module didn't appear in the mobile Bluetooth search at first, I checked up the jumpers again and found out that RXD & TXD are connected in the wrong way to the Arduino,
I connected them correctly, and it worked.
I tried to use old Android to control to BT module (this is advice from my instructor Hala).
by using BT module may be can do in nice to have to control in servo motor and all building to increase the efficiency of building .
in final project.