Hey everyone. Are you afraid of fire. From ancient times we have thought to eradicate the dangers of fire. So to remove our fear of fire lets make automatic fire extinguisher.
Connections:
Digital pin of flame sensor to 8 pin of arduino
Gnd to gnd
Vcc to 5v
black pin of dc water pump to negative of battery.
red pin of dc water pump to common of relay
normally open pin of relay to positive of dc water pump
signal pin of relay to 7 of arduino
gnd to gnd
vcc to 5V
signal pin of servo to 10 OF ARDUINO
GND TO GND
VCC to 5V
are you liking the project?
do you want code for your project
contact me here
https://www.freelancer.in/hireme/pranavmadhavaram
Code
#include <Servo.h>
Servo myservo;
void setup() {
// put your setupcode here, to run once:
pinMode(8, INPUT);
myservo.attach(10);
pinMode(7, OUTPUT);
}
void loop() {
// put your maincode here, to run repeatedly:
if(digitalRead(8)==HIGH)
{myservo.write(0);
digitalWrite(7, HIGH);
}
else{
myservo.write(360);
myservo.write(0);
digitalWrite(7, LOW);
}
}
are you liking the project?
do you want code for your project
contactme here
https://www.freelancer.in/hireme/pranavmadhavaram
Non technical requirements:
Attach flame sensor on servo motor
Attach dc water pump to servo motor
Precautions:
Make sure when servo motor rotates the wiring of flame sensor doesn’t disturb.
do you like the project?
do you want code for your project
contact me here



_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)

_ZypKReoQBP.png)

Comments