0% found this document useful (0 votes)
16 views3 pages

Inyector Con Potenciometro

The document contains an Arduino sketch that initializes a LiquidCrystal_I2C display and controls LED indicators for a cleaning process of fuel injectors. It displays welcome messages and sequentially activates different injectors while reading a potentiometer value to control the timing of LED signals. The program continuously loops through the injector cleaning process, updating the display accordingly.

Uploaded by

ramoskevin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

Inyector Con Potenciometro

The document contains an Arduino sketch that initializes a LiquidCrystal_I2C display and controls LED indicators for a cleaning process of fuel injectors. It displays welcome messages and sequentially activates different injectors while reading a potentiometer value to control the timing of LED signals. The program continuously loops through the injector cleaning process, updating the display accordingly.

Uploaded by

ramoskevin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

#include <LiquidCrystal_I2C.

h>
LiquidCrystal_I2C lcd(0x27,16,2);
int sensor = 0;
int ledPin = 8;
void setup() {
lcd.init();
lcd.backlight();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("==>BIENVENIDO A ETA-
500<==");
lcd.setCursor (0,1);
lcd.print("==>LIMPIEZA DE
INYECTORES<==");
pinMode(ledPin, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
for(int titulo=0;titulo<=35;titulo++){
lcd.scrollDisplayLeft();
delay(300);
}
lcd.clear();
}

void loop(){
int pot;
pot = analogRead(sensor);
digitalWrite(ledPin, HIGH);
delay(pot);
digitalWrite(ledPin, LOW);
delay(pot);
lcd.setCursor(0,0);
lcd.print("==> LIMPIEZA DE <==");
lcd.setCursor(0,1);
lcd.print("==> INYECTOR 1<==");
digitalWrite(2, LOW);
delay(pot);
digitalWrite(2, HIGH);
delay(pot);
lcd.setCursor(0,1);
lcd.print("==> INYECTOR 3<==");
digitalWrite(4, LOW);
delay(pot);
digitalWrite(4, HIGH);
delay(pot);
lcd.setCursor(0,1);
lcd.print("==> INYECTOR 4<==");
digitalWrite(5, LOW);
delay(pot);
digitalWrite(5, HIGH);
delay(pot);
lcd.setCursor(0,1);
lcd.print("==> INYECTOR 2<==");
digitalWrite(3, LOW);
delay(pot);
digitalWrite(3, HIGH);
delay(pot);
}

You might also like