Project showcase
College Faculty DashBoard

College Faculty DashBoard © GPL3+

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

  • 3,992 views
  • 4 comments
  • 27 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 Bluetooth Basic Tutorial

by Mayoogh Girish

  • 454,838 views
  • 42 comments
  • 238 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 286,262 views
  • 95 comments
  • 672 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 230,321 views
  • 38 comments
  • 239 respects

OpenCat

Project in progress by Team Petoi

  • 196,467 views
  • 154 comments
  • 1,366 respects
Add projectSign up / Login