LCD Button Writer

Use buttons to type on LCD screen.

Aug 2, 2019

28569 views

4 respects

Components and supplies

1

Arduino UNO

1

\tPush Button

1

I2C 16x2 Arduino LCD Display Module

3

LED (generic)

1

Resistor 100 ohm

1

Breadboard (generic)

15

Jumper wires (generic)

4

Male/Female Jumper Wires

Project description

Code

Lcdbuttons

arduino

You need the LiquidCrystal_I2C to be able to run it. Download it from here https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

Lcdbuttons

arduino

You need the LiquidCrystal_I2C to be able to run it. Download it from here https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

Downloadable files

type letters to I2C screen with push buttons

type letters to I2C screen with push buttons

type letters to I2C screen with push buttons

type letters to I2C screen with push buttons

type letters to I2C screen with push buttons

type letters to I2C screen with push buttons

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

want to display text on 16X2 LCD when i press button and it should clear when i un-press button. my code is below help me on this..... #include <LiquidCrystal.h> const int A=8; int buttonState = 0; LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { pinMode(A, INPUT); lcd.begin(16, 2); } void loop() { buttonState = digitalRead(A); if (buttonState == HIGH){ //lcd.clear(); lcd.setCursor(0, 1); lcd.print("hi"); } else { lcd.setCursor(0, 0); lcd.print(" "); } delay(500); lcd.clear(); }

thechordmaster

4 years ago

Great project. Just a clarification. Is there a way to get a button to hold the value displayed on screen till it is released. Take a light sensor for example, showing a certain value on the lcd. How can i get a button to hold that value? Thanks

Anonymous user

4 years ago

want to display text on 16X2 LCD when i press button and it should clear when i un-press button. my code is below help me on this..... #include <LiquidCrystal.h> const int A=8; int buttonState = 0; LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { pinMode(A, INPUT); lcd.begin(16, 2); } void loop() { buttonState = digitalRead(A); if (buttonState == HIGH){ //lcd.clear(); lcd.setCursor(0, 1); lcd.print("hi"); } else { lcd.setCursor(0, 0); lcd.print(" "); } delay(500); lcd.clear(); }