loading

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.

<p>#include &lt;LiquidCrystal.h&gt; //missing</p><p>At least I found that all the buttons on the LCD worked.</p>
<p>Thanks,</p><p>Fixed Now</p>

About This Instructable

4,491views

13favorites

License:

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