Unable to make the 5110 LCD screen work - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: Unable to make the 5110 LCD screen work (/showthread.php?tid=4820) |
Unable to make the 5110 LCD screen work - rotorman - 2023-08-05 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 RE: Unable to make the 5110 LCD screen work - seandepagnier - 2023-08-06 did you enable spi in raspi-config? RE: Unable to make the 5110 LCD screen work - rotorman - 2023-08-06 I haven't but it looks like it is enabled: tc@pypilot:~$ lsmod | grep spi_ spi_bcm2835 7468 0 thoughts? RE: Unable to make the 5110 LCD screen work - seandepagnier - 2023-08-06 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 |