Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

How to use Nextion to work with Raspberry Pi?

We have posted many articles about using Nextion to work with Arduino. But maybe you don’t know how to use it with Raspberry Pi. This post I'm going to teach you how to achieve it. There are just 5 steps.

Step 1: Install Segnix

Follow the “Readme.md” instructions of github, install Segnix to your Raspberry Pi.

Step 2: Disable Serial

Log in Raspberry Pi.
Then input below commands to disable the serial:

sudo raspi-config

————> 8 Advanced Options ————> A8 Serial ————>NO

Step 3: Software Preparation

Just to make it simple, here we use the button example in our Nextion library.
segnix CompButton CompButton.ino
Copy the button .tft file to SD card, then insert SD card to the Nextion SD card slot(make sure there is only one tft file in SD card), power up Nextion, the project installation will be automatically proceeded.

Note: Store only one tft file in the SD card, and the resolution of tft file must be in accordance with the resolution of your Nextion TFT. Your SD card should be in FAT32 format and less than 32G. If failed to program with SD card, view this post.

Step 4: Hardware Preparation

Connect Nextion display with Raspberry Pi with Dupont line as follows:

GND ----- GND

VCC ----- 5V

TX ------- RX

RX --------TX

Step 5: Run the program

Input below command in Raspberry Pi to start running the program:

sudo ./CompButton

Touch click the number button in Nextion display, the number will increase 1 by every click.

Effect Demonstration

Nextion TFT HMI Display works with Raspberry Pi from ITEAD