This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to make the 5110 LCD screen work
#1
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


Attached Files Image(s)
       
Reply
#2
did you enable spi in raspi-config?
Reply
#3
I haven't but it looks like it is enabled:

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

thoughts?
Reply
#4
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)