Arduino LCD analog/digital input monitor.
This is how to make an arduino powered LCD input/output monitor

Step 1: Materials.

Arduino LCD analog/digital input monitor.

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.

Arduino LCD analog/digital input monitor.

First we have to install the Lcd library

Go to http://playground.arduino.cc/Main/LiquidCrystal on how to install it.

Now, when that's done, copy and paste the code below into the arduino IDE and then upload.

/* analog/digital input demonstration using DFRobot 16x2 LCD shield
Jacoby Yarrow Jan 2014 */

#include
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(" ");
}
 
 

Tag cloud

make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel