Nextion Screen install on Pi-Star

From PiStar Wiki
Revision as of 16:15, 22 June 2017 by MW0MWZ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Raspberry / Pi-Star mmdvm connection to Nextion Screen How to connect and change your mmdvmhost for the Nextion display

This document will explain how to connect your Nextion screen to the Raspberry Pi 2, 3 or Zerro (W); not to the original Pi. This document was originally created by KD8YNY (pictures and basic text) and adapted for the Pi-Star image by Rob (PD0DIB)

The Nextion screen is out there in different sizes, the 3.2" is a nice size, or you could go to the 2.4" screen. Once you get your screen, this is how you wire up the connector.

 Red = 5v+ PIN 2
 Black = Ground PIN 6
 Yellow = GPIO14 PIN 8
 Blue = GPIO15 PIN 10

As seen here in these pictures.

Nextion How-to 1.png

Nextion How-to 2.png

And the pin out locations on the PI, which is the same for the 2 and 3 and the new Zero (W), not the original PI.

Plug in your screen and you will probably get a default program on the screen, telling you the pin and a keypad to change it, ignore this, we are about to blow it away.

You can hook these wires up while the PI is powered up, if you don't trust yourself or you are not a risk taker like myself, power the PI off and connect the cables, once done hook the connector to the screen and power up your PI.

Now the fun begins.... The way I updated my screen was to do it this way, there are other ways, but this way worked for me.

Go to Github to download the proper file for your size display and download that file: You have to get the xx.tft file, this one don’t need to be compiled via the Nextion compiler, it is ready to use. Write this file on an empty SD_Card (not copy, but write, as you do with the Pi-Star image); it should be the only file on tha card! Power OFF the Nextion display and place the card into the Nextion cardslot, then power ON the Nextion. The Nextion shpould write the Card content into the display memory.

After that is done, the nextion display should display something like this (see picture):

Your preparation is now finished, you have to modify the mmdvm software: With the PI-STAR image running, go to the expert menu via your browser with this link: http://pi-star.local/admin/expert/edit_mmdvmhost.php

Nextion How-to 3.png

 There you have to alter the yellow marked lines:

[at the top in the General part]:

Pi-Star MMDVM Expert 1.png  

Click Save Changes and go to the bottom of this webpage to the section:

Pi-Star MMDVM Expert 2.png  

 Click Save Changes and shut down this page.

Reboot your MMDVMhost or the PI, and hope to see screens like these:

Nextion How-to 4.png

Nextion How-to 5.png

Nextion How-to 6.png

Hope this helps some people...

73, de PD0DIB