Hemesh chadalavada
Published

This Device Will Never Get You Heat Stroke

During the summers, many people get sunstroke because of playing in the sun for too long. So this device will prevent getting sunstroke.

BeginnerFull instructions provided1 hour2,916
This Device Will Never Get You Heat Stroke

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Temperature Sensor
Temperature Sensor
×1
Buzzer
Buzzer
×1
9 volts battery
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Slide Switch
Slide Switch
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Schematic

Made with easy eda

Code

Sunstroke Detecting cap

Arduino
Copy an paste the code in the IDE. Select the Arduino Board - Arduino Nano and the port COMXX
int value;
float celsius;
const int inPin = A0; 
                 
void setup() {
 pinMode(12,OUTPUT);
}
void loop() {
  value = analogRead(inPin);
  celsius = value * 0.48828125;
  Serial.print(celsius);
  Serial.println("'c")
 
 if (celsius >= 36 && celsius <= 38){
 delay (9000000);
 digitalWrite(9,HIGH);
 delay(15000);
 digitalWrite(9,LOW);
}
if(celsius >= 38 && celsius <= 40){
delay(5400000);
digitalWrite(9,HIGH);
delay(15000);
digitalWrite(9,LOW);
}
if(celsius>40){
delay(1800000);
digitalWrite(9,HIGH);
delay(15000);
digitalWrite(9,LOW);

}
}

Credits

Hemesh chadalavada

Hemesh chadalavada

2 projects • 2 followers
I am a student in Jubilee Hills Public School. I am 13 yrs old. I love making inventions with Arduino. I am an expert in ARDUINO Programming

Comments