Introduction: Arduino LCD Analog/digital Input Monitor.

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

Step 1: 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).

Step 2: 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.

Comments

author
Provocateur (author)2015-06-23

#include <LiquidCrystal.h> //missing

At least I found that all the buttons on the LCD worked.

author

Thanks,

Fixed Now

About This Instructable

4,615views

13favorites

License:

More by Jacoby Yarrow:How to Image a Raspberry Pi SD CardPython Programming: Part 2HTML to Python
Add instructable to: