Nextion LCDs... How to comunicate ???


+ Reply to Thread
Results 1 to 17 of 17
  1. #1
    Join Date
    Apr 2015
    Posts
    3

    Default Nextion LCDs... How to comunicate ???

    Hello everyone. How to communicate with Nextion Lcds using PBP ??? Link: https://www.itead.cc/wiki/Nextion_HMI_Solution
    Attached Images Attached Images  

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,803

    Default Re: Nextion LCDs... How to comunicate ???

    You control the LCD through TTL RS232 (only Tx and Rx needed).

    Also you must ensure good +5V/1A to the LCD.

    The rest on the users manual.
    Ioannis

  3. #3
    Join Date
    Apr 2015
    Posts
    3

    Default Re: Nextion LCDs... How to comunicate ???

    Hello Ioannis, thank you for the feedback.
    I did not find examples for PBP on the internet. In the manual there are only examples for uses with Arduino and RaspBerry Pi.
    I could not convert the command used in Arduino to be used in PBP.
    My question is about the serial command format to use.

    Thank you for any help.

  4. #4
    Join Date
    Oct 2009
    Posts
    579

    Default Re: Nextion LCDs... How to comunicate ???

    From what I can gather it uses a serial connection - so have a look at serial examples for PBP and then adapt them to send the instructions to the device. There is an example here http://support.iteadstudio.com/suppo...cs/11000012477 where someone is using an arduino without any library files, which may help

    You should be able to used hserout command with a PIC that has a UART serial port (most do)

  5. #5
    Join Date
    Feb 2013
    Posts
    414

    Default Re: Nextion LCDs... How to comunicate ???

    I also ordered a module, waiting for delivery. Meanwhile, I've downloaded their IDE. Looks like Visual Studio, but so far, I have not managed, how to put my own text on label Very alogical design...

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,803

    Default Re: Nextion LCDs... How to comunicate ???

    Mike's tutorial on Nuts n Volts is good starting point.

    Also the tutorials on YouTube are very helpful. There are many that take you step by step.

    Ioannis

  7. #7
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    276

    Default Re: Nextion LCDs... How to comunicate ???

    Starting on Page 16:

    http://nutsvolts.texterity.com/nutsv...&folio=16#pg16

    It will be a 7 Part series, next issue: Communication between the Nextion and a PIC (using PBP3)

  8. #8
    Join Date
    Feb 2013
    Posts
    414

    Default Re: Nextion LCDs... How to comunicate ???

    Great. I've quit reading N&V a decade ago - too many ads and too many nonsense articles, hope they've changed that....

  9. #9
    Join Date
    Feb 2013
    Posts
    414

    Default Re: Nextion LCDs... How to comunicate ???

    Can't figure out, how to make textbox background transparent - when I set it to "image" it gives error during compile...

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,803

    Default Re: Nextion LCDs... How to comunicate ???

    In the sta attribute select crop image

    Ioannis

  11. #11
    Join Date
    Feb 2013
    Posts
    414

    Default Re: Nextion LCDs... How to comunicate ???

    Yes and it immediately gives an error after that.

  12. #12
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,803

    Default Re: Nextion LCDs... How to comunicate ???

    There is a new version 0.59. Which version you have?

    Ioannis

  13. #13
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    276

    Default Re: Nextion LCDs... How to comunicate ???

    After you select "crop image" a new box will appear in Attributes called "picc". Click on it, click "browse", then select your background image.

  14. #14
    Join Date
    Feb 2013
    Posts
    414

    Default Re: Nextion LCDs... How to comunicate ???

    Yes, I got it working, but in a weird way.

    Say I have some background picture, which I place on background layer.
    Then I have textbox above it. Located at specified place.
    I have to crop background picture in editor, in a such way, that it fits the area occupied by textbox.
    Then use that cropped picture as textbox background.

    There is simply no way to make text background "transparent".

  15. #15
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    2,803

    Default Re: Nextion LCDs... How to comunicate ???

    I do not know why it is not working for you.

    Please send to me your email and I will reply with the demo file that just work! You can go on and do your mods then.

    Ioannis

  16. #16
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    276

    Default Re: Nextion LCDs... How to comunicate ???

    Since writing that first article I learned something new. Instead of placing a Picture the size of your screen, start with an empty screen. Choose "image" for sta. Then picc, browse, select your background image.

  17. #17

    Default Re: Nextion LCDs... How to comunicate ???

    Hi Mike,

    Just received the latest Nuts & Volts with your Nextion article, good work. Wish I had this two years ago!

    If you like writing articles, B4A is now free and programs much like the Nextion or VB. Probably a lot interest with hobbyist. I've made android apps to communicate with HC-05 Bluetooth modules connected to pic micros.

    https://www.b4x.com/b4a.html

Similar Threads

  1. Two LCDs on one PIC
    By NavMicroSystems in forum Schematics
    Replies: 6
    Last Post: - 29th January 2013, 07:56
  2. LCDs
    By Demon in forum Adverts
    Replies: 1
    Last Post: - 21st April 2012, 02:14
  3. Two LCDs on one PIC
    By lester in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 22nd February 2005, 03:28
  4. Typles of LCDs
    By mslaney in forum General
    Replies: 1
    Last Post: - 16th December 2004, 15:01
  5. Graphic LCDs
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th April 2004, 10:04

Members who have read this thread : 16

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts