Project showcase
Arduino-based Obstacle Monitoring System

Arduino-based Obstacle Monitoring System © GPL3+

Vehicle dashboard monitor.

  • 3,208 views
  • 0 comments
  • 4 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

  • 10,434 views
  • 7 comments
  • 34 respects

Water Quality Monitoring and Notification System

Project showcase by emmanuel ani

  • 50,591 views
  • 38 comments
  • 112 respects

Home Monitoring System and Smart Home Solution

Project showcase by Akash Kumar

  • 5,471 views
  • 0 comments
  • 21 respects

Smart Garbage Monitoring System Using Arduino 101

Project tutorial by Technovation

  • 21,394 views
  • 7 comments
  • 32 respects

Heart Rate Monitoring System

Project tutorial by Team HRMS

  • 16,276 views
  • 2 comments
  • 29 respects

Real time LPG monitoring system

Project showcase by TEAM DIY

  • 2,211 views
  • 1 comment
  • 2 respects
Add projectSign up / Login