Phone : +8801894-801150 Email : projects.zeronebd@gmail.com
support 24/7

#DIY018 Eye Blink Based Accident Alert System

This is The Eye “Blink Based Accident Alert System” number of road accidents is constantly increasing in our country. The main reason for this is that the drivers are driving carelessly and most of the drivers are driving while sleepy, so the number of accidents is increasing day by day. Keeping this in mind, we are bringing the latest and best quality devices that will stop the car at the blink of an eye.

Project Fee:Negotiable

Project Discount:0

Project Duration:7 Days

Eye Blink Based Accident Alert System

আমাদের দেশে প্রতিনিয়ত সড়ক দুর্ঘটনার পরিমান বেড়েই চলেছে। এর প্রধান কারণ হলো ড্রাইভাররা অসতর্কভাবে গাড়ি চালিয়ে থাকেন এবং অধিকাংশ ড্রাইভার ঘুম চোখে গাড়ি চালানোর ফলে দিন দিন ক্রমশ এক্সিডেন্ট এর পরিমাণ বেড়েই চলেছে। এরই কথা চিন্তা করে আমরা একটি ডেমো প্রজেক্ট তৈরী করেছি "𝐄𝐲𝐞 𝐁𝐥𝐢𝐧𝐤 𝐁𝐚𝐬𝐞𝐝 𝐀𝐜𝐜𝐢𝐝𝐞𝐧𝐭 𝐀𝐥𝐞𝐫𝐭 𝐒𝐲𝐬𝐭𝐞𝐦" যা চালক ঘুমালে বা ঘুম ঘুম ভাব চলে আসলে সেটা সনাক্ত করার সাথে সাথে মোবাইল এপপ্সে নোটিফিকেশন চলে আসবে।

এই ডিভাইসটির বিশেষত্ব হলো:

১। ড্রাইভার গাড়ি চালানোর সময় যদি ঘুম চলে আসে অথবা চোখের পাতা বন্ধ হয়ে যায় তাহলে সাথে সাথে গাড়ি বন্ধ হয়ে যাবে।

২। সম্পূর্ণ প্রজেক্টি আইওটি সিস্টেম তাই চালক এর ঘুম আসলে সেটা সনাক্ত করার সাথে সাথে ইন্টারনেট এর মাদ্ধমে মোবাইল এপপ্স নোটিফিকেশন চলে যাবে।

৩। এর ফলে সড়কে এক্সিডেন্ট এর পরিমাণ অনেকটা কমে যাবে।

Introduction:

This is The Eye “Blink Based Accident Alert System” number of road accidents is constantly increasing in our country. The main reason for this is that the drivers are driving carelessly and most of the drivers are driving while sleepy, so the number of accidents is increasing day by day. Keeping this in mind, we are bringing the latest and best quality devices that will stop the car at the blink of an eye.

 

Transmitter Circuit Diagram:


Fig: Transmitter Circuit Diagram


Receiving Circuit Diagram:


Fig: Receiving Circuit Diagram 

Feature & Advantages:
- NRF Remote Control System.
- If the driver falls asleep or closes his eyelids while driving, the car will stop immediately.
- As a result, the number of accidents on the road will be reduced.
- IOT Notification System.

Required Instruments:

-Node MCU

-Motor.

-Wheel.

-SMPS (Switched Mode Power Supply).

-NRF-24L01.

-Relay Module.

-Eye Blink Sensor/IR Sensor.

-Switch.

-2 Pin Socket.

-Buzzer

 

N.B: For This Project Details & Customized Development or to Get Any Engineering Project             Solutions Contact with Us.

CODE

/*Transmitter Section Code:
   1 - GND
   2 - VCC 3.3V !!! NOT 5V
   3 - CE to Arduino pin 9
   4 - CSN to Arduino pin 10
   5 - SCK to Arduino pin 13
   6 - MOSI to Arduino pin 11
   7 - MISO to Arduino pin 12
   8 - UNUSED
*/
#include 
#include "nRF24L01.h"
#include 

#define CE_PIN   7
#define CSN_PIN 8

// NOTE: the "LL" at the end of the constant is "LongLong" type
const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio

/*-----( Declare Variables )-----*/
int joystick[6];  // 6 element array holding Joystick reading and 4 buttons

int up  = 2;
int motor  = 3;
int count,count1;

void setup() {
pinMode(motor,OUTPUT);

  Serial.begin(9600);
  radio.begin();
    radio.setChannel(115);  //115 band above WIFI signals
  radio.setPALevel(RF24_PA_MIN); //MIN power low rage
  radio.setDataRate( RF24_250KBPS ) ; //Minimum speed
  radio.openWritingPipe(pipe);
  radio.stopListening();
  
  //declare pinMode for all buttons and initial state
  pinMode(up,INPUT);

 

}

void loop() {

  joystick[0] = digitalRead(up);
int readd = digitalRead(up);

  
  radio.write( joystick, sizeof(joystick) );
  delay(20);

      Serial.print(" up=  ");
      Serial.println(digitalRead(up));

if(readd == LOW){
 count1 =count++;
       Serial.println(count1);
 delay(200);
}
if(count1 > 2){
   digitalWrite(motor,HIGH);  


}
  if(readd == HIGH){
  digitalWrite(motor,LOW);  
  count =0;
}
  
}

//Receiving Section Code:
  /* 1 - GND
   2 - VCC 3.3V !!! NOT 5V
   3 - CE to Arduino pin 6
   4 - CSN to Arduino pin 8
   5 - SCK to Arduino pin 13
   6 - MOSI to Arduino pin 11
   7 - MISO to Arduino pin 12
   8 - UNUSED
 */ 
//-----( Import needed libraries )-----
#include 
#include 
#include 

/*-----( Declare Constants and Pin Numbers )-----*/
#define CE_PIN D4
#define CSN_PIN D2

// NOTE: the "LL" at the end of the constant is "LongLong" type
const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

int up, down, left, right,pumpp, count, count1;

int motor = D0;
/*-----( Declare objects )-----*/
RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
/*-----( Declare Variables )-----*/
int joystick[6];  // 6 element array holding Joystick readings
int speedRight = 0;
int speedLeft = 0;


void setup() {
pinMode(motor,OUTPUT);
Serial.begin(9600);


  radio.begin();
  radio.setChannel(115);  //115 band above WIFI signals
  radio.setPALevel(RF24_PA_MIN); //MIN power low rage
  radio.setDataRate( RF24_250KBPS ) ; //Minimum speed
  radio.openReadingPipe(1,pipe);
  radio.startListening();
}

void loop() {
 if ( radio.available() )
  {
      radio.read( joystick, sizeof(joystick) );
 
      // the four button variables from joystick array
       up    = joystick[0];
  
      Serial.print("up = ");
      Serial.println(up);

if(up == LOW){
  count1 =count++;
       Serial.println(count1);
 delay(200);
}
if(count1 > 2){
 digitalWrite(motor,HIGH);  
 

}
  if(up == HIGH){
  digitalWrite(motor,LOW);  
  count =0;
}    
}
}