Detection of Diesel Adulteration.

A detection of diesel adulteration is the process to ensure that the diesel fuel should be keep safe from the mixing with other fuels.

Petroleum products adulteration is usually carried out by adding substances of lower value to the petroleum products of higher value in order to weaken its strength increase its volume and thus create room for extra profit margin.

Common adulteration carried out is addition of kerosene to either diesel or petrol fuel. These types of adulterations are limited to small volume percent are hence makes it difficult to detect by the automobile user.

MAIN OBJECTIVE

The main objective of this project is to design the system that will be used as diagnostic tool to ensure proper maintenance of diesel engines for improved and protection of the environment.

HARDWARE REQUIREMENTS

  1. Arduino UNO

Controls both sensor and display. Some convention from analogue value to digital value are done together with calibration of those values.

  1. Liquid Crystal Display (LCD)

LCD display will be able display the desired output.

  1. MQ2 Smoke sensor

MQ2 gas sensor to detect the smoke produced by combustible diesel.

  1. Smoke source

The smoke source generate smoke which are directed to the smoke sensor MQ2, from smoke sensor MQ2 smoke will be detected by the MQ2 smoke meter.

  1. Printed Circuit Body ( PCB)
  2. Potentiometer
  3. Jumpers (wires)

SOFTWARE REQUIREMENTS

  1. Arduino software

The software like Platform IDE used for writing and running (executes) codes during programming of Arduino microcontroller

  1. Proteus

This is used to simulate the circuit so that with the Arduino library in it could give the desired output.

Here the code to use in Arduino software.

 #include<LiquidCrystal.h>
 LiquidCrystal lcd( 3, 2, 5, 6, 7, 8);   //lcd(Rs, E, D4, D5, D6, D7)
 int valuePin;

void setup() {
 
 Serial.begin(9600);
 lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print("DIESEL");
lcd.setCursor(5,1);
lcd.print("DETECTION");
delay(3000);
lcd.clear();
}

void loop() {
  
valuePin=analogRead(A0);

float result=valuePin/1024.0* 500;
Serial.println(result);

if (result <= 20) {
result = 0;
Serial.println(result);
lcd.print("Readings:");
lcd.setCursor(11,0);
lcd.print(result);
lcd.setCursor(8,1);
lcd.print("           ");
delay(500);
}
delay(500);

if ((result >= 21) && (result <= 25))  {
 
Serial.println("mixed");
lcd.print("Readings:");
lcd.setCursor(11,0);
lcd.print(result);
lcd.setCursor(0,1);
lcd.print("Status: ");
lcd.setCursor(8,1);
lcd.print(" Mixed   ");
delay(500);
}
else if (result >= 27) {
   result+=3;
Serial.println("Pure ");
//lcd.clear();
lcd.setCursor(0,1);
lcd.print("Status: ");
lcd.setCursor(8,1);
lcd.print("NotMixed ");
delay(500);
}
//delay(1000);
}

 


Login to comment


Comments