Hello, I'm new here and with arduino. My problem is that after connecting all the jumpers and connecting the lcd to the board, it still doesn't work.
It does not display anything, neither rectangles nor characters. I tested it on TinkersCad and it works fine, but on the real board it doesn't work.
I did your pin-out (minus the row-7 white wire, at with the row 30 resistor) on Wokwi and your setup works. Check your wire placement. You have it right.
Make this sketch on your project (correct wiring as stated above):
The frizzy picture does not convey much information. It shows no power, no contrast biasing resistor, LCD pin information, and a few other things. Since you also have other things connected post an annotated schematic instead of a picture. Other things can make a difference when pins are involved.
The wiring diagram is in the question (up there). The other connected devices don't exist in the simulators, but I don't think they influence the lcd.
In the analog inputs I have 2 joysticks and in ports 9 to 13 I have an nRF24L01.
I generally do not work with simulators, just hardware which apparently does not work for you. As you can now see there is a difference between simulation and hardware (reality). In time my questions will make sense as your knowledge increases instead of a pain. I assumed you would include links with "Technical information" on each of the modules. Yes learning to draw schematics is a pain but worth it in the long run Try KiCad, it is free.
If I don't connect the contrast pin (V0) it's supposed to keep the contrast at maximum, right?
I've tried with it off and with it directly connected to GND, both haven't changed anything.
// LCD1602 to Arduino Uno connection example
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
// you can now interact with the LCD, e.g.:
lcd.print("Hello, brun0!");
}
void loop() {
// NOP
}
The contrast (LCD pin 3 or Vo) must be connected. A resistor to ground or tied directly to ground is necessary. With Vo left unconnected or tied to Vcc there will not be anything displayed.
I use a 1K from Vo to ground on most of my LCDs. A 220 Ω can work or even tied to ground. Many people use a pot to have adjustable contrast.
The contrest (pin 3) and the backlight (pins 15 & 16) are not at all related.
Do not apologize you did Great! There is so much more information. The only thing would be to label the peripherals but no worry at this time. The resistor connected/unconnected is in series with the backlight LED. I think you are all set. Have fun.
It looks like you have started with a mass of hardware connected and a mass of code and tried to get it all to work.
Can I suggest your remove ALL hardware apart from the UNO and the LCD display.
Then use one of the Example codes that come with the Library to prove your connections.
Developing your code in stages with hardware in stages will mean you do not encounter bugs that may be from unrelated code/hardware.
We have had 19 posts of suck it and see, lets get logical and make sure your LCD is working, FORGET for the moment the rest of your code and hardware.