Infineon Team
Published

Blind Spot Detector

A sense2goL pulse board is used to make a blind spot detector that can be mounted on the back of a bicycle to alert the rider from behind.

BeginnerFull instructions provided1 hour1,453
Blind Spot Detector

Things used in this project

Hardware components

Infineon SENSE2GOL PULSE
×1
Arduino MKR WiFi 1010
Arduino MKR WiFi 1010
×1
piezoelectric buzzer
×1
JST connectors
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

IDE code

C/C++
The Wi-Fi credentials can be typed in a separate file and imported into program. If you want to share the file
later without sharing the credentials this type of execution makes it easier.
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>
//#include "ardcred.h"// imports wifi credential file

char auth[] = "your authentication token from blynk app ";//authentication token for the app
char ssid[] = "your wifi ssid";//wifi credentials
char pass[] = "your wifi password";

int departing=1;
int approaching=2;

void setup()
{
 
  Serial.begin(9600);

   Blynk.begin(auth, ssid, pass);//to communicate with blynk app
   pinMode(departing,INPUT);

     pinMode(approaching,INPUT);  
     pinMode(4,OUTPUT);

}

void loop()
{
  Blynk.run();
 int approachval=digitalRead(approaching);
 int departval=digitalRead(departing);
  
  if(approachval==HIGH )
  {
    
    Serial.print("\nobject in blindspot");
    Blynk.notify("object in blind spot");
    digitalWrite(4,HIGH);
    delay(10);
  }
 else{
    Serial.print("\n no movement");
    digitalWrite(4,LOW);
    delay(10);
  }
  
 
}
  

Credits

Infineon Team

Infineon Team

48 projects • 78 followers
Thanks to SandeshPakhale, Varun_sakinala, Shailesh More, Arushi Jain, and Rajan Rahul Raj.

Comments

Add projectSign up / Login