Project showcase

College Faculty DashBoard © GPL3+

Save time by knowing whether the Faculty is in his chamber or not.

  • 3,841 views
  • 4 comments
  • 26 respects

Components and supplies

Apps and online services

About this project

This project will benefit college students by letting them know when the faculty is in his chamber and when he is not. Using this they can save time and work efficiently. It uses Ultrasonic sensors which sense the presence of the faculty in a room and update their status in real time. The status is shown on the mobile app and is very simple.

Working of Ultrasonic sensor :-   

Active ultrasonic sensors generate high-frequency sound waves and evaluate the echo which is received back by the sensor, measuring the time interval between sending the signal and receiving the echo to determine the distance to an object.

Here are the sample pictures displaying the project. 

Happy Hacking :)

Code

College Faculty DashBoardArduino
#define BLYNK_PRINT Serial    
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#define trigPin 13    // pins for first sensor
#define echoPin 12


#define trigPin1 11 // pins for second sensor
#define echoPin1 10

#define trigPin2 9 // pins for third sensor
#define echoPin2 8

#define trigPin3 7  // pins for fourth sensor
#define echoPin3 6

  WidgetLED led1(V1);  // Virtual LEDs for the app
WidgetLED led2(V2);
WidgetLED led3(V3);
WidgetLED led(V0);
char auth[] = "";   // Write your auth code here

void setup() {
  Serial.begin(9600);  // Begin serial communication
  Blynk.begin(auth);   // configure blynk and connect to it's server
  
  pinMode(trigPin, OUTPUT);   // Defining the functions of the pins
  pinMode(echoPin, INPUT);
  
     pinMode(trigPin1, OUTPUT);
  pinMode(echoPin1, INPUT);
   pinMode(trigPin2, OUTPUT);
  pinMode(echoPin2, INPUT);
   pinMode(trigPin3, OUTPUT);
  pinMode(echoPin3, INPUT);

}
void loop() {
  // put your main code here, to run repeatedly:
  long duration,distance1,distance2,distance3, distance,duration2, duration3, duration1 ;                         // defining variables
  digitalWrite(trigPin, LOW);  
  delayMicroseconds(2); 
  digitalWrite(trigPin, HIGH);

  delayMicroseconds(10); 
  digitalWrite(trigPin, LOW);

  
  digitalWrite(trigPin1, LOW);  
  delayMicroseconds(2); 
  digitalWrite(trigPin1, HIGH);

  delayMicroseconds(10); 
  digitalWrite(trigPin1, LOW);

  
  digitalWrite(trigPin2, LOW);  
  delayMicroseconds(2); 
  digitalWrite(trigPin2, HIGH);

  delayMicroseconds(10); 
  digitalWrite(trigPin2, LOW);

  
  digitalWrite(trigPin3, LOW); 
  delayMicroseconds(2); 
  digitalWrite(trigPin3, HIGH);

  delayMicroseconds(10); 
  digitalWrite(trigPin3, LOW);
  distance = pulseIn(echoPin, HIGH);  
  distance1 = pulseIn(echoPin1,HIGH);
  distance2 = pulseIn(echoPin2,HIGH);
  distance3 = pulseIn(echoPin3,HIGH);
    
  if (distance >= 200 || distance <= 0){
    Serial.println("Out of range");                 // running the condition for the LEDs
  led.off();
  }
  else {
    Serial.print(distance);
    Serial.println(" cm");
   led.on(); 
  
  }
   
  if (distance1 >= 200 || distance1 <= 0){
    Serial.println("Out of range");
    led1.off();
  }
  else {
    Serial.print(distance1);
    Serial.println(" cm");
    led1.on();

  }
 
  if (distance3 >= 200 || distance3 <= 0){
    Serial.println("Out of range");
  led3.off();
  }
  else {
    Serial.print(distance3);
    Serial.println(" cm");
    led3.on();
  
  }
  
  if (distance2 >= 200 || distance2 <= 0){
    Serial.println("Out of range");
  led2.off();
  }
  else {
    Serial.print(distance2);
    Serial.println(" cm");
    led2.on();
  
  }
}

Schematics

College Faculty DashBoard
College%20Faculty%20DashBoard.fzz

Comments

Similar projects you might like

Arduino - Control Arm Robot via Web

Project tutorial by phpoc_man

  • 809 views
  • 1 comment
  • 16 respects

Lightpipe 7-Segment Display

Project tutorial by Brian Lough

  • 2,989 views
  • 3 comments
  • 9 respects

ElBanquos 1D Pong

Project showcase by ElBanquo

  • 192 views
  • 2 comments
  • 2 respects

PENXZYL: Arduino 3-Axis Brush Plotter

Project showcase by Guiye Perez Bongiovanni

  • 4,705 views
  • 4 comments
  • 20 respects

Arduino Joystick

Project tutorial by Ingeimaks Ingeimaks

  • 254 views
  • 0 comments
  • 1 respect

Arduino Pressure Measuring and Logging

Project tutorial by Fillbee

  • 583 views
  • 0 comments
  • 3 respects
Add projectSign up / Login