DevAcademy intermediate Lesson 5 Exercise 2 alternative RPi Display with nrf9161DK

I have been sitting with this problem for almost 2 weeks and have tried alot of different thing but without anything working,

Im using VS code with the nrf9161 and it has the version: "Manage toolchains v2.7.0 and "Manage west workspace v2.6.1"

Just compiling the code i get these warnings:

I want to implement the code with the 3.5Inch RPi Display, it uses different driver "ILI9486" which is not in zephyrs basic lib. 

What would i have to change in the current example to make it work or what part would i look into, to make it work?

Where im stuck:

Im not sure if im getting the the right output from pin 11, 12 and 13 (clk, mosi, miso) when using a logic analyzer:

Also the D/CX and CS should be on pin 10 and 15, but not getting any change of state when putting them into the logic analyzer

cs-gpios = < &arduino_header 0x10 0x1 >, < &arduino_header 0xa 0x1 >;
cmd-data-gpios = < &arduino_header 0xf 0x1 >;

The spec of the display:

Display 3.5 inch TFT LCD Touch Screen Monitor 480 x 320 for RPi with Touch PenFeatures:● The display has a resolution of 480 x 320, which is perfectly sufficient for small projects.

Resistive touch control.

● The display is compatible with RPi A, B, A+, B+, 2B, 3B, 3B+, 4B.

● GPIO pins remain free to address other devices.

Driver provided (works directly with your own Raspbian/Ubuntu).

Supports RP-bian system, Ubuntu system, Kali Linux system.LCD type: TFT.

LCD interface: SPI (Fmax: 32 MHz)

Touch screen type: resistor.

Touchscreen controller: xpt2046.

Colours: 65536.

Driver IC: ILI9486.

Backlight: LED.

Resolution: 320 x 480 (pixels).

Backlight current: 120mA

Power dissipation: 0.13 A x 5 V.

Active area: 48.96x73.44 (mm)

Product size: 85.42 x 55.60 mm.

Package size: 118 x 72 x 34 mm.

Coarse weight (package includes): 75 (g)Box contents:

1 x 3.5 inch touch screen for RPi.

1 x touch pen.

 

Parents
  • Hi,

     

    By default, the nRF9161-DK is using 1.8V VDD GPIO voltage. This can be changed in the board configurator in nRF connect for desktop:

    https://docs.nordicsemi.com/bundle/nrf-connect-board-configurator/page/updating.html

    Could you try setting "VDD for GNSS and LEDs" to match the required voltage of your display (ie. 3.3V) and see if the display starts responding over SPI then?

     

    Kind regards,

    Håkon

  • Hi Håkon

    Thx for the quick reply. I tried changing the setting "VDD for GNSS and LEDs" to 3.3V, it was on 3.0V before changing it.

    But it is still not showing anything. I also tried to change the cmd-data to pin P0.03 and CS to pin P0.07 so there was no conflict with those pins, but still without any result.

    When measuring the voltage on the pins: CS is 3.3V but cmd-data are only 0V no matter if i try the default pins or not.

    The display only works with 5V, then trying 3.3V the display does not light up.

    This is the output im getting when the display is connected, still only lights up white.

    /Egil                                                                                                                                                                                                                                                 

Reply
  • Hi Håkon

    Thx for the quick reply. I tried changing the setting "VDD for GNSS and LEDs" to 3.3V, it was on 3.0V before changing it.

    But it is still not showing anything. I also tried to change the cmd-data to pin P0.03 and CS to pin P0.07 so there was no conflict with those pins, but still without any result.

    When measuring the voltage on the pins: CS is 3.3V but cmd-data are only 0V no matter if i try the default pins or not.

    The display only works with 5V, then trying 3.3V the display does not light up.

    This is the output im getting when the display is connected, still only lights up white.

    /Egil                                                                                                                                                                                                                                                 

Children
Related