Questions tagged [lcd]
LCD stands for "Liquid Crystal Display" and is commonly known as a screen. The tag should be used for questions related to LCD display.
548
questions
0
votes
0
answers
21
views
When the value of enter is greater than rfid tap, the commands under them do not work
LiquidCrystal\_I2C lcd(0x27,16,2);
\#define sensorPin1 7
\#define sensorPin2 8
int enter=0;
\#include <SPI.h>
\#include <MFRC522.h>
\#define exp\_buzz 3
\#define SS\_PIN 10 ...
1
vote
0
answers
13
views
Working ZMPT101B and ACS712 AC Voltage and Cureent Code but Litttle problem With sprintf Buffer LCD Issues
I am Playing with AC voltage and current measuring using ACS712 and ZMPT101B. I wrote the original code on CCS C for PIC Compiler platform. The measurement is ok but the the "Units" for the ...
2
votes
0
answers
42
views
TFT Screen with Arduino UNO does not display as expected
I have a 3.5" TFT LCD communicating in parallel connected to Arduino UNO.
I expect it draws a white circle on a black background but all it does is to show a white screen.
How to fix this?
main.c
...
-3
votes
0
answers
38
views
How to interface 8x2 LCD display ERM802 with Arduino Uno
Has anyone interfaced an ERM802 LCD 8x2 display with Arduino Uno?
I am trying to connect directly to the display, not using a controller or I2C connection.
To clarify (I hope), I am building an ...
1
vote
0
answers
40
views
Why is my LCD not displaying?
my LCD is a 16x2 and I just testing cause I'm new
here's the setup
here is my code
#include <LiquidCrystal.h>
char myText1[]="Hello world";
char myText2[]="among us";
...
1
vote
1
answer
42
views
an lcd with I2C is not recognized by esp32
I have a NodeMCU esp32-s board and I'm trying to connect My 16x2 lcd with PCF8574T I2C bus to the esp32 , the problem is that the lcd doesn't show anything and the WireScan sketch can't recognize the ...
2
votes
0
answers
47
views
Grove LCD display not working with arduino rev 2 wifi (Unknown error at address 0x3E)
I am trying to connect Grove 16x2 LCD (White on Blue) to my Arduino uno rev 2 wifi.
So far, I've tried hd44780 library's ioClass examples, but nothing worked. I've then decided to scan ports and when ...
-1
votes
1
answer
54
views
variable 'LiquidCrystal_I2C lcd' has initializer but incomplete type
I have a problem with lcd, I have NUCLEO64 L746RG , I have Lcd Display and I2C connected to it.
When I verify code it gives me and long error and I can not find the solution or cause of this error:
...
-1
votes
1
answer
210
views
I need help with creating a menu using u8g2 library
I want to make a project with a (Nokia 5110) display using u8g2 library.
Here I have the code for my program:
#include <Arduino.h>
#include <U8g2lib.h>
#include <TM1637Display.h>
#...
0
votes
1
answer
271
views
No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)
This was supposed to be the code for automatic pet feeder
Got it from here1
The problem is that I always got a "No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)&...
1
vote
0
answers
153
views
Nokia 5110 LCD display doesn't work
Here is my circuit (all resistors are 10 kΩ, to lower the voltage, although I did try it without them with the same result):
The pinout on my display is (pin 1-8): RST, CE, DC, DIN, CLK, VCC, LIGHT, ...
0
votes
1
answer
69
views
How can I force an I2C module (for 1602 and 2004) to work with a 1601 LCD at my Arduino Micro
I'm new to Arduino and want to build a Button Box. When I buyed the parts I didn't watched out for the specifications of the I2C module. When I tried to print sth on the LCD nothing happened (in retro ...
2
votes
1
answer
52
views
How to configure 16x2 character LCD to work with 8bit?
I have the LiquidCrystal library installed but all the examples are for 4bit connection, I want to drive the LCD with 8bit.
In LiquidCrystal.cpp file it says;
When the display powers up, it is ...
-2
votes
2
answers
112
views
Problem with push button
I am making a project where if the push button is pressed, the LCD screen will show a message. But with many trial and errors, it doesn't give the right result.
Here is the circuit:
Here is the code:
...
-3
votes
1
answer
101
views
How can I use a LCD I2C and a RTC3231 on a Arduino Pro Mini?
On a small project, I have a DS3231 RTC module and a LCD I2C module that I'm trying to connect on a Arduino Pro Mini board. However, both the RTC and LCD require connecting the SDA and SCL to the pins ...
1
vote
0
answers
50
views
Why is my SD shield making my Arduino not power on?
I wanted to use an SD shield on an Arduino Elegoo to make a typewriter (for saving files).
I put the shield on the Arduino Elegoo, then connected an LCD screen, then tried to power on using USB to ...
1
vote
0
answers
75
views
Code question: LCD keypad Shield. How do I define the buttons?
I am trying to adapt a alarm clock sketch that used external buttons, but I would like to utilize a LCD Keypad Shield. The data sheet says all the buttons are on pin A0, so every button is "set ...
-1
votes
1
answer
57
views
What are these 18 extra ports on the adafruit-gfx 2.8"
I recently got the Adafruit gfx 2.8" display, which works fine.
It's quite obvious that it requires almost all of the pins on the UNO. However, I don't understand what are the 18 avaliable "...
0
votes
0
answers
104
views
Why is there an extra pixel in the smiley for the Grove LCD RGB Backlight from Seeed Studio?
While testing the CustomCharacter.ino example for the Grove LCD RGB Backlight from Seeed Studio on an Arduino 101 card, there is an extra pixel that appears above an eye of the smiley and the smiley ...
4
votes
2
answers
122
views
I2C sensors not working when I connect to LCD 20X04
I am making a hydroponic nutrient monitoring system using Arduino Uno, Atlas Scientific EC sensor, pH sensor, and RTD (temperature) sensor in I2C mode. I also want to use LCD 20x04 to display the ...
2
votes
1
answer
1k
views
lcd.createChar() only allows for 8 custom characters
I have a teensy4.1, with a 16 by 2 LCD screen, and an I2C LCD interface.
I was trying to write a bunch of custom characters to an LCD screen, to flip some text.
my issue is that it works fine, but on ...
0
votes
1
answer
799
views
Flip text in LCD screen
Im using <LiquidCrystal.h> arduino library,on a 2x16 LCD screen, with an accelerometer. I'd like to flip the the text when my x value exceeds N value. I get how to output text.
I tried straight ...
-1
votes
1
answer
74
views
Can I change the text on the LCD by rotating the potentiometer?
I am working on a project on my Arduino Uno in which I want to change the text on the LCD every time the potentiometer has been rotated. In order to do this, I have stored the angle values into an int,...
0
votes
1
answer
68
views
LiquidCrystal issue with HD44780 display
Here my sample code for an Arduino Leonardo-based custom board:
#include <LiquidCrystal.h>
const int rs = 3, en = 0, d4 = 4, d5 = 30, d6 = 12, d7 = 6;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
...
0
votes
1
answer
94
views
Wiring multiple LCD displays to Arduino
I have multiple LCD displays and one Arduino and I just want to show some text on each display separately.
Is it possible to Wiring multiple LCD Displays for the single Arduino board?
Or maximum how ...
2
votes
2
answers
1k
views
How to limit backlight LED current in 16x2 LCD
I'm getting the error "Current through backlight led is 23.7 kA, while maximum is 20.0 mA". What am I doing wrong?
#include <LiquidCrystal.h>
LiquidCrystal lcd(1, 2, 4, 5, 6, 7);
...
1
vote
1
answer
94
views
I am trying to add a countdown to my Arduino code but it does 0 days, 04:09:36 instead of starting at 7 days
The code I use probably has a math problem since an Arduino can only count a 16 bit integer. This problem is with the WeekDelay() function.
The project is for an Aerogarden. It pumps water into the ...
-1
votes
1
answer
121
views
I have been having a lot of trouble adding a countdown to a piece of code [closed]
This is the code. The /// are where I added the countdown. Unfortunately the countdown only goes down 9 seconds. What I want it to do is go down the full 24 hours. I have been trying to fix this error ...
1
vote
1
answer
110
views
LCD displays more digits than serial monitor
I am doing a BPM monitoring system. The serial monitor displays accurate BPM values ranging from 60 to 100+. But my LCD display is not accurate. Example, on the serial monitor, my bpm is about 67, but ...
0
votes
1
answer
182
views
Arduino LiquidCrystal library code prevents ESP32 from running. For 16x2 character display
See bottom for solution.
I am trying to run the Arduino LiquidCrystal library example HelloWorld.ino on an ESP32. It seems like it never even executes the Setup() loop. The ESP resets after eight ...
1
vote
2
answers
85
views
Help needed with I2C LCD + Arduino - DS-LCDD5
I am new to this forum and a relative beginner to Arduino (software wise) Have built many projects, but always just copy/paste/modify example code.
I found a couple of these modules (a PIC18 daughter ...
1
vote
2
answers
87
views
LCD TFT 2.4"" changes the values of analog read of Arduino Mega
I have a Arduino Mega with LCD TFT 2.4"" with reading 5v signal on A8 pin (Arduino mega pin) from a raspberry pi (just to test). They are grounded together. When the Arduino is without the ...
1
vote
0
answers
58
views
I2C 16x2 LCD - Will Initialize (sometimes) - Holds Up The Code
Basically I have a keypad, that when a certain code is entered, it will write either "Wrong code" or "Good code" on the LCD.
At the same time a timer will count down until 0 is ...
2
votes
2
answers
560
views
Connecting an LCD when Pins A4 and A5 are Occupied
Recently I've been working on an automatic dog feeder dispenser (that dispenses by turning a screw attached to a stepper motor). Currently I have a Nema 17 connected to an L298N stepper driver which ...
1
vote
0
answers
215
views
2.4" TFT LCD is only showing white screen, but the touch functions still work
Hi (Sorry for the long post).
The other day I finally found a code that worked on my standard 2.8" TFT LCD by Simkeim, but then I pressed the bottom left corner too hard and the screen went white....
2
votes
1
answer
807
views
Read serial with header and end marker
I am trying to use Topway display for HMI lcd with Arduino. This display using RS232C protocol at docs it has a "Communication Packet Structure" like this.
So my query should start with AA ...
1
vote
1
answer
62
views
Quick noob question about connecting 16x2 LCD
In this tutorial the writer used digital pin 2-5 and pin 11 and 12, can I use other I/O pins if I define it in the library?
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal ...
1
vote
1
answer
467
views
How to set 16x2 LCD I2C display backlight?
I have 16x2 LCD display with a I2C backpack. This is the library I am using
https://drive.google.com/drive/folders/16_UqfwFm4VKWcdeJfDmHRV2Hj_IoaTai?usp=sharing
So as given in the code below, by ...
1
vote
0
answers
49
views
Program an lcd display with 12 pins
I have a screen just like this (is the datasheet). My question is,
Can I use it to an Arduino board?
1
vote
0
answers
111
views
DC motor and buzzer blink without delay code
So I am trying to put together a code for 4dc motors, buzzer, ultrasonic and lcd to work together,. they will together make up a small car. when the distance to the ultrasonic is smaller than 10cm, ...
1
vote
1
answer
50
views
LCD randomly goes one character further in the ascii table
Here's my code:
#include <LiquidCrystal.h>
int rs = 11;
int rw = 10;
int en = 9;
int d0 = 1;
int d1 = 2;
int d2 = 3;
int d3 = 4;
int d4 = 5;
int d5 = 6;
int d6 = 7;
int d7 = 8;
LiquidCrystal lcd(...
1
vote
0
answers
24
views
avrdude: stk500_recv(): programmer is not responding Arduino LCD_I2C Upload problem ( port not found and ...) [duplicate]
i have problem to upload the LCD I2c Example program to Arduino UNo. the code are shown below:
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include &...
1
vote
0
answers
34
views
How to edit this IR sensor code to COINSLOT sensor [duplicate]
The project is Like a secured PiggyBank but it will count the coins inside it.
Im using a coin sensor at default it has 5v, then goes to zer if inserted with a coin.
I have 2 codes The one was form my ...
3
votes
3
answers
872
views
Request for help condensing code and saving memory
I'm building a final project for a class that involves playing an audio file of a wave shield every time I scan an amiibo with an RFID scanner. I'm a pretty new programmer, so I'm not very familiar ...
1
vote
0
answers
180
views
Prevent flicker - Lcd with I2C module?
I have a 16x2 LCD with a I2C interface, and a Esp8266 based NodeMCU.
I Have an issue where the second line of the LCD is flickering, but somehow the first line does not flicker.
Why does this happen ...
1
vote
1
answer
2k
views
Simple LCD countdown timer
I tried to modify the basic "hello-world" sketch for the LCD that is a part of the examples section in the IDE. I intended to make a countdown timer using the LCD.
The original code simply ...
1
vote
0
answers
62
views
How do you know what to call the digital pin your using? changing the sensor pin your using
I downloaded a water flow sketch and got it working on a bread board using an Uno, and a LCD shield. I what to make it on perf board using a Nano, and an NOT I2C LCD.
I soldered it all up, got "...
0
votes
1
answer
188
views
How can i call lcd.begin() from several different code files in a proper way?
I have a project split into several files:
//Loop.cpp
#include "LiquidCrystal.h"
void setup(){
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
lcd.begin(16, 2);
}
void loop() {
//Code
}
...
1
vote
1
answer
180
views
Why is my liquid crystal display not showing any output?
UPDATE:
The LCD will light up only when the all my components are located in the bottom right of the breadboard. Why am I not able to use the entire breadboard for my circuit?
I am trying to display ...
1
vote
0
answers
89
views
How to completely clear everything from an arduino and print something new?
I'm in progress of making a stickman rush game, Until I hit a bug that I have been stuck on. I want to make a if statement that states "If the stickman and the object are in the same place, clear ...