OpenMarine

Full Version: Unable to make the 5110 LCD screen work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am new to PyPilot. I am trying to build the system. I have successfully connected the ICM-20948 IMU to the Raspberri Pi and that is working fine. My next step is to connect the Nokia 5110 LCD. I am failing to make anything appear on the screen.

Here are the connections I have made. Note that the LCD I/O markings differ slightly from the markings of the jlx12864  in pypilot_had.pdf.

LCD      Raspberri PI
RST      GP24 (18) (LCD RESET)
CE        CE0_GP8 (24) LCD_CE
DC       GP25 (22) LCD_DC
DIN      MOSI_GP10 (19) MOSI
CLK      SCK_GP11 (23) SCK
VCC      3V3 (1) +3.3V
GND     GND (9)

In hat.conf I have change the lcd driver to nokia5110:

"lcd":{"driver":"nokia5110","port":"\/dev\/spidev0.0"}

(I do not have an Arduino for the hat)

Nothing is shown on the LCD panel. Here is the log for pypilot.hat

2021-11-04_11:00:22.15026 hat start 23.328922
2021-11-04_11:00:22.15060 have gpio for raspberry pi
2021-11-04_11:00:22.15062 hat import done 28.043683
2021-11-04_11:00:22.15064 loading config file: /home/tc/.pypilot/hat.conf
2021-11-04_11:00:22.15066 failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'

I have attached the photos of the connection.

Any suggestions?

Regards
Geza
did you enable spi in raspi-config?
I haven't but it looks like it is enabled:

tc@pypilot:~$ lsmod | grep spi_
spi_bcm2835 7468 0

thoughts?
can you cd into pypilot/hat/ugfx
compile the splash screen
make

now test the driver:
./splash nokia5110

make sure pypilot_hat is not running