QuadraticequationSneha SnehasusmithapriyaSabari GaneshRavi teja Eegalapati
Published © GPL3+

Pango Band

This band helps in maintaining social distancing and also monitoring body temperature and alarm for sanitizing hands

IntermediateFull instructions provided387
Pango Band

Things used in this project

Hardware components

Wemos D1 Mini
Espressif Wemos D1 Mini
×1
Temperature Sensor
Temperature Sensor
×1
Buzzer, Piezo
Buzzer, Piezo
×1
LED (generic)
LED (generic)
×2
Resistor 1k ohm
Resistor 1k ohm
×4
Slide Switch
Slide Switch
×2
Rechargeable Battery, Lithium Ion
Rechargeable Battery, Lithium Ion
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Image

Its the circuit diagram of our project

Code

Pango band code

C/C++
#include <ESP8266WiFi.h> //includes wifi modules library
#include <Scheduler.h>
const char* APssid = "Pango band"; //the acess point credintails of the device
const char* APpassword = "life or death";
const int RSSI_MAX =-71;// maximum strength of signal in dBm
const int RSSI_MIN =-74;// minimum strength of signal in dBm
int LM35=A0;
#define LED1 D0
#define LED2 D1
#define buz D2
void setup()
{
pinMode(LED2,OUTPUT);
pinMode(LED1,OUTPUT);
pinMode(buz,OUTPUT);
WiFi.disconnect();
delay(100); //this part turns off the wifi and resets it if it was already on
Serial.begin(115200);
WiFi.mode(WIFI_OFF);
Serial.println();
WiFi.mode(WIFI_AP_STA); //configuring the board in hybrid mode
Serial.print("Configuring access point...");
WiFi.softAP(APssid, APpassword);
Serial.println(WiFi.softAPIP());
Scheduler.startLoop(loop2);
}
void loop()
{
Serial.println("Wifi scan started");
int n = WiFi.scanNetworks(); //assigns the scanned value to n 
Serial.println("Wifi scan ended");
if (n == 0)
{
Serial.println("no networks found");
}
else
{
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(") ");
Serial.print(WiFi.SSID(i));// SSID
Serial.print(WiFi.RSSI(i));//Signal strength in dBm
Serial.print("dBm (");
if(WiFi.SSID(i) == "Pango band")
{
if(WiFi.RSSI(i) > -71 )//THIS -71 is the key this is the threshold value btw this value is set according to the distance of 1m
{
int i=1;
for(i=1;i<=10;i++)
{
digitalWrite(LED2,HIGH);
delay(1000);
digitalWrite(LED2,LOW);
delay(1000);
}
Serial.println("A BAND WAS FOUND")
break;
}
}
else
{
digitalWrite(LED2,LOW);
}
}
delay(100);
}
Serial.println("");
delay(100);
int analogValue = analogRead(LM35);
float millivolts = (analogValue/1024.0) * 3300; //3300 is the voltage provided by NodeMCU
float celsius = millivolts/10;
Serial.print("Temp in celsius= ");
Serial.println(celsius);
if(celsius>37)
{
digitalWrite(LED1,HIGH); 
Serial.println("led on");
delay(1000);
}
else
{
digitalWrite(LED1,LOW);
Serial.println("led off");
}
}
void loop2()
{
tone(buz,1000); //send 1khz sound signal
delay(3000);
noTone(buz); //no sound
delay(18000000);
}

Credits

Quadraticequation
0 projects • 4 followers
Contact
Sneha Sneha
0 projects • 3 followers
Contact
susmithapriya
1 project • 3 followers
Contact
Sabari Ganesh
1 project • 2 followers
Contact
Ravi teja Eegalapati
1 project • 2 followers
Contact

Comments

Please log in or sign up to comment.