Add the following snippet to your HTML:
Shows the value of a potentionmeter
Read up about this project on
If you wanna test a potentiometer or use in a game this project is good for you.
#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); }
Comments