Project showcase
Arduino-based Obstacle Monitoring System

Arduino-based Obstacle Monitoring System © GPL3+

Vehicle dashboard monitor.

  • 4,797 views
  • 0 comments
  • 9 respects

Components and supplies

Apps and online services

About this project

The proposed system is a monitoring display system which is placed on the vehicle’s dashboard to monitor the obstacle’s presence on the blind spot while roaming and parking. Obstacle avoidance sensors placed on the blind spots of the vehicles and its analog outputs are fed to the Arduino Uno microcontroller board. After processed that the obstacle detection is viewed by one LCD by indication.

This system consists of one Arduino microcontroller board, four obstacle avoidance sensor and one 16x2 character liquid crystal display. Obstacle sensors outputs are fed to Arduino microcontroller’s analog channel lines. LCD is used to indicate the visual representation of the obstacles. LCD receives the command data and user data are sent by Arduino board through digital lines.

Code

CodeC/C++
#include <LiquidCrystal.h>
const int FROS = A1;
const int FLOS = A2;
const int RROS = A3;
const int RLOS = A4;
int FR = 0;
int FL = 0;
int RR = 0;
int RL = 0;
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup()
{
  lcd.begin(16, 2);  
  pinMode(FROS, INPUT);
  pinMode(FLOS, INPUT);
  pinMode(RROS, INPUT);
  pinMode(RLOS, INPUT);
  Serial.begin(9600);
}
void loop()
{
  FR = analogRead(FROS);
  Serial.println(FR);
  FL = analogRead(FLOS);
  RR = analogRead(RROS);
  RL = analogRead(RLOS);
  lcd.setCursor(1, 0);          
  lcd.print("FR  FL   RR  RL"); 
  if (FR <= 500 && FL <= 500  && RR <= 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("No Obstacle    ");
  }
  else if (FR > 500 && FL <= 500  && RR <= 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX             ");
  }
  else if (FR <= 500 && FL <= 500  && RR <= 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("             XX");
  }
  else if (FR <= 500 && FL <= 500  && RR > 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("         XX    ");
  }
  else if (FR <= 500 && FL <= 500  && RR > 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("         XX  XX");
  }
  else if (FR <= 500 && FL > 500  && RR <= 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("    XX          ");
  }
  else if (FR <= 500 && FL > 500  && RR <= 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("    XX       XX");
  }
  else if (FR <= 500 && FL > 500  && RR > 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("    XX   XX    ");
  }
  else if (FR <= 500 && FL > 500  && RR > 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("    XX   XX  XX");
  }
  else if (FR > 500 && FL <= 500  && RR <= 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX             ");
  }
  else if (FR > 500 && FL <= 500  && RR <= 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX           XX");
  }
  else if (FR > 500 && FL <= 500  && RR > 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX       XX    ");
  }
  else if (FR > 500 && FL <= 500  && RR > 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX       XX  XX");
  }
  else if (FR > 500 && FL > 500  && RR <= 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX  XX         ");
  }
  else if (FR > 500 && FL > 500  && RR <= 500 && RL > 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX  XX       XX");
  }
  else if (FR > 500 && FL > 500  && RR > 500 && RL <= 500)
  {
    lcd.setCursor(1, 1);
    lcd.print("XX  XX   XX    ");
  }
  else
  {
    lcd.setCursor(1, 1);
    lcd.print("Call Help ......  ");
  }
}

Schematics

Wiring
Obstacle schem

Comments

Similar projects you might like

Cardiac Monitoring System - EKG

Project showcase by Zorzonel Vlad

  • 16,632 views
  • 8 comments
  • 43 respects

Water Quality Monitoring and Notification System

Project showcase by emmanuel ani

  • 78,905 views
  • 50 comments
  • 170 respects

Home Monitoring System and Smart Home Solution

Project showcase by Akash Kumar

  • 9,662 views
  • 0 comments
  • 26 respects

Forest Fire Monitoring & Detection System (with SMS Alerts)

Project tutorial by Ashad Ahmed

  • 5,188 views
  • 6 comments
  • 19 respects

Smart Garbage Monitoring System Using Arduino 101

Project tutorial by Technovation

  • 41,592 views
  • 15 comments
  • 60 respects

Heart Rate Monitoring System

Project tutorial by Team HRMS

  • 23,450 views
  • 11 comments
  • 38 respects
Add projectSign up / Login