



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ARDUINO SOCIAL DISTANCING device (WITH BUZZER AND LED LIGHT)
SIMBALLA, RODJEAN A. QUILLO, BEVERLY C. ACHAY, DANGELYN S. MENGULLO, VANESSA M. QUILLO, JEROME S. DOCENA, FRANKLIN BSIT-3D Submitted To: KRISTIAN F. APURA INSTRUCTOR Eastern Samar State University Can-avid Campus Page 1
ABOUT THIS PROJECT Because due to the coronavirus pandemic, So we decided to make a gadget that helps the social distancing by alerting if someone is near you for less than 40 centimeters and that you can keep with you everywhere. That both workers on offices, deliveries of restaurants, small kids returning to school after the lockdown, or even people with disabilities can use to return to their normal activities. Circuit Diagram: Eastern Samar State University Can-avid Campus Page 2
Making the Project: Eastern Samar State University Can-avid Campus Page 4
Codes for Projects: const int pingTrigPin = A4; const int pingEchoPin = A5; int led=13; //Buzzer to PIN 4 int buz1=9; void setup() { Serial.begin(9600); pinMode(led, OUTPUT); pinMode(buz1, OUTPUT); } void loop() { long duration, cm; pinMode(pingTrigPin, OUTPUT); digitalWrite(pingTrigPin, LOW); delayMicroseconds(2); digitalWrite(pingTrigPin, HIGH); delayMicroseconds(5); digitalWrite(pingTrigPin, LOW); pinMode(pingEchoPin, INPUT); duration = pulseIn(pingEchoPin, HIGH); cm = microsecondsToCentimeters(duration); if(cm<= 40 && cm>0) Eastern Samar State University Can-avid Campus Page 5