Arduino LCD Analog/digital Input Monitor.
by Jacoby Yarrow in Circuits > Arduino
8331 Views, 14 Favorites, 0 Comments
Arduino LCD Analog/digital Input Monitor.

This is how to make an arduino powered LCD input/output monitor
Materials.

These are the things that you will need.
Arduino UNO.
DFRobot 1602 LCD keypad shield(It doesn't have to be this exact type, you just have to know the pin-out.).
Computer (with arduino IDE software).
USB cable (A-B).
The Code.

//Jacoby Yarrow Jan 2014 #include <LiquidCrystal.h> LiquidCrystal lcd(8,9,4,5,6,7); void setup() { lcd.begin(16, 2); pinMode(3, INPUT); } void loop() { lcd.setCursor(0,0); lcd.print(" Arduino input"); lcd.setCursor(0,1); lcd.print("A0:"); //analog input lcd.print(analogRead(A0)); lcd.setCursor(8,1); lcd.print("D3:"); //digital input lcd.print(digitalRead(3)); delay(300); //change delay to change refresh rate lcd.setCursor(3,1); lcd.print(" "); }
Comment if there are any errors in the code, thanks.