author
1Instructables29,424Views4CommentsThe Netherlands

Tell us about yourself!

Achievements

10K+ Views Earned a bronze medal
  • VDO Oilpressure Sensor for Arduino

    */ //----------------------------------------------------------#include <LiquidCrystal.h// include the library code liquidcristal:LiquidCrystal lcd(12, 11, 5, 4, 3, 2);float OilPressure; // Variabel for calculating oilpressure//-----------------------------------------------------------------void setup() {lcd.begin(16, 2); // set up the LCD's number of columns and rows:lcd.print("Oliedruk"); //Print a message to the LCD.//Serial.begin(9600);}//------------------------------------------------------------------void loop() {OilPressure = (float(OilPressure1(analogRead(2))));lcd.setCursor(0,2); //Start to print on the second line.lcd.print(float(OilPressure)); //Pints oilpressure to the displaylcd.print(" BAR");}//--------------------------------------------------------…

    see more »

    */ //----------------------------------------------------------#include <LiquidCrystal.h// include the library code liquidcristal:LiquidCrystal lcd(12, 11, 5, 4, 3, 2);float OilPressure; // Variabel for calculating oilpressure//-----------------------------------------------------------------void setup() {lcd.begin(16, 2); // set up the LCD's number of columns and rows:lcd.print("Oliedruk"); //Print a message to the LCD.//Serial.begin(9600);}//------------------------------------------------------------------void loop() {OilPressure = (float(OilPressure1(analogRead(2))));lcd.setCursor(0,2); //Start to print on the second line.lcd.print(float(OilPressure)); //Pints oilpressure to the displaylcd.print(" BAR");}//---------------------------------------------------------------------float OilPressure1(float RawADC) {float Pressure; //Local variabel. Only used in this routine.//Serial.println(RawADC);if(RawADC < 30) Pressure = 0.0;else if (RawADC < 62) Pressure = 0.4;else if (RawADC < 72) Pressure = 0.6;else if (RawADC < 78) Pressure = 0.8;else if (RawADC < 86) Pressure = 1.0;else if (RawADC < 95) Pressure = 1.2;else if (RawADC < 102) Pressure = 1.4;else if (RawADC < 105) Pressure = 1.6;else if (RawADC < 112) Pressure = 1.8;else if (RawADC < 117) Pressure = 2.0;else if (RawADC < 125) Pressure = 2.2;else if (RawADC < 128) Pressure = 2.4;else if (RawADC < 137) Pressure = 2.6;else if (RawADC < 142) Pressure = 2.8;else if (RawADC < 147) Pressure = 3.0;else if (RawADC < 152) Pressure = 3.2;else if (RawADC < 159) Pressure = 3.4;else if (RawADC < 166) Pressure = 3.6;else if (RawADC < 171) Pressure = 3.8;else if (RawADC < 176) Pressure = 4.0;else if (RawADC < 181) Pressure = 4.2;else if (RawADC < 183) Pressure = 4.4;else if (RawADC < 188) Pressure = 4.6;else if (RawADC < 195) Pressure = 4.8;else if (RawADC < 198) Pressure = 5.0;delay(1000); // Just a delay otherwise the display is flashing//Pressure = Pressure * 14.7; //convert from bar to PSIreturn Pressure; //Returns to the second line of the loop function.}

    View Instructable »
  • Hello Muhammad,The voltage range is from 180Ohms (max sensor) 4.237Volts to10Ohms (min sensor) 4.95Volts.Try to put a higher voltage in the A2 from the arduino. You can use Ohms law to calculate. Good luck!!!

    View Instructable »
  • This sensor has an metric thread of about 8mm or named M8.It is used to messure oilpressure within engineblocks.I'am not sure if you can use it for tire pressure.The sensor is expensive, about 50euro's.Hope this helps.

    View Instructable »