bby256
Published © CC BY-NC

Potentionmeter measure with screen

Shows the value of a potentionmeter

IntermediateFull instructions provided155
Potentionmeter measure with screen

Things used in this project

Story

Read more

Schematics

Schematics

Code

Codes

C#
#include <LiquidCrystal.h>
int Contrast=100;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);  
void setup() {
  analogWrite(6,Contrast);
  lcd.begin(16, 2);
  lcd.print("POTENTIONMETER");
  lcd.setCursor(0, 1);
  lcd.print("MEASURE");
  delay(3000);
}

void loop() {
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("VALUE:");
  lcd.print(analogRead(A0));
  delay(100);
}

Credits

bby256

bby256

0 projects • 0 followers

Comments