ELÉTRICA SIMULAÇÕES
Published © GPL3+

Helmet that help in Social Distancing.

This project is about a alarm turn on while the distance between two people is smaller than 1.5 meter the minimum recommended for population

IntermediateFull instructions provided8 hours4,067
Helmet that help in Social Distancing.

Things used in this project

Hardware components

9V battery (generic)
9V battery (generic)
×1
Arduino UNO
Arduino UNO
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
Ultrasonic Sensor - HC-SR04 (Generic)
Ultrasonic Sensor - HC-SR04 (Generic)
×1
SparkFun RedBot Buzzer
SparkFun RedBot Buzzer
×1

Hand tools and fabrication machines

Plier, Long Nose
Plier, Long Nose

Story

Read more

Custom parts and enclosures

Layout project AUTOCAD

Layout project in autocad software

Schematics

Layout helmet for social distancing

Layout in software fritzing about project helmet against coronavirus.

Code

Code project Social distancing

C/C++
Code project Social distancing using the ide arduino and sensors.
#include "Ultrasonic.h"
#define pinopresenca 7
#define buzzer  8

Ultrasonic ultrasonic(4,3);

float distanciamedida=0;
byte presenca=0;
void setup() {
  Serial.begin(9600);
  pinMode(pinopresenca, INPUT);
  pinMode(buzzer, OUTPUT);
    
}

void loop()
{

 
  distanciamedida=ultrasonic.Ranging(CM);
  Serial.println(distanciamedida);
  Serial.println("cm");
  presenca=digitalRead(pinopresenca);
  if(distanciamedida<=150&&presenca==HIGH)
  {
    tone(buzzer, 800,500);
    Serial.println("distancia menor que 1.5 metros");
  } 
  else {
    digitalWrite(buzzer, LOW);
    Serial.println("distancia segura");
    }
  delay(500);
}

Credits

ELÉTRICA SIMULAÇÕES

ELÉTRICA SIMULAÇÕES

4 projects • 2 followers
Electrical engineering studend, iot, c++, arduino, automation etc.

Comments