Our Blog

1204, 2021

The Sunday Blog: Breaking news – New Intelligent P-Series Nextion HMIs

By |April 12th, 2021|

Now for all who have waited for the computing power and the unbelievable graphics power of the "big" 7" and 10" Intelligent displays, your patience has paid: The new 4.3" and 5" Intelligent displays are here. And I must say, it's a real pleasure to work with! Such a pleasure that I spontaneously decided to postpone part 2 of our current blog project... Both formats come in 4 variants each, resistive unboxed, resistive boxed, capacitive multitouch unboxed, capacitive multitouch boxed. The versions with enclosure are clearly my preferred ones: You have not longer to care about bezels, mounting holes or whatever, you just need a square opening in the housing of your project and you are done. Everything you need to fix it is in the card box. Not to forget the advantage that the boxed versions already contain an internal speaker, so that multimedia projects can be realized quicker and easier than ever before.

604, 2021

The Sunday Blog: Advanced programming techniques – Nextion HMI as a serial monitor (1)

By |April 6th, 2021|

Normally, I design my projects first on paper with a pencil until I have an overview over the required specifications, before I finally order the materials accordingly, a powerful enough MCU and a Nextion HMI with the needed size and resolution. But this Easter weekend, I sat there and thought about the Nextion 4.3" Standard HMI which I have had in a drawer for a very long time. And I thought for myself: "After all, developing and debugging Nextion based projects need sometimes a few extra tools. But I'm not always comfortable with going through all drawers to find the TTL-to-USB adapter, launching the Windows Computer which I use rarely, since besides Nextion development, I'm a Mac addict, launching the Nextion Editor, load the project, launch the Simulator, establish a serial connection, and, and, and..." Finally, I found that having a separate serial monitor on the bench to visualize either data sent out by the MCU towards the Nextion or by the Nextion towards the MCU would be a nice thing. At the same time, a new blog article should be published, so I decided to combine this with a "lesson" about a seldom mentioned advanced Nextion functionality: Protocol reparsing, which is available on all series, Standard, Enhanced, and Intelligent and which allows to circumvent the firmware and to take the control over the incoming data stream.

2203, 2021

The Sunday Blog: Text and Numbers – Let the Arduino receive Nextion returns

By |March 22nd, 2021|

There are many occasions for the Nextion HMI to send numeric or text return data to your MCU, be it an Arduino, a Teensy, a STM, an ESP, you name it. We may send a get command to request values, text, or other attributes from a HMI component. We may also integrate such get commands in our Nextion code, so that the connected MCU may be surprised by arriving data. This is the last big missing part of the ever but slowly growing NextionX library. But before we integrate and use a library function, we should fully understand what happens behind the scenes. Thats why today, we'll see a small project, comprising a HMI part and an Arduino sketch part, to (hopefully) understand better all the details. At the same time, we'll need to discuss different forms of text storage in embedded processors.

1503, 2021

The Sunday Blog: Scalable design and gaming – Part 2: Let’s build the game and gamble!

By |March 15th, 2021|

After a highly theoretic blog article last Sunday (huge thanks to all readers who made it through it), it's now time to apply everything in practice. So, let's build the project in the Nextion Editor. Those who fear copying and pasting a little less than 150 lines of commented code may download the ready-to-use .hmi file below. The pedagogic principle behind this blog is to teach how your HMI designs can be made scalable, able to run on different screen sizes and resolutions, with no or at least a minimum of modifications. Some component attributes (like x, y, h, and w) are immutable at runtime, so these need to be set "by hand" beforehand. But all what can be done in code will be done in code. At the same time, we need to reduce the CPU time for calculating and drawing the ball movement and the check for bouncing. Thus, we will make use of some pre-calculated helper vars.

803, 2021

The Sunday Blog: Scalable design and gaming – Part 1

By |March 8th, 2021|

Today, we will dive into scalable design. This means that we want to develop for our beloved Nextion HMIs without yet knowing which screen size and resolution we’ll finally use. So, we want to look how we can do a HMI design which, within the actual limits of firmware and memory, adapts itself to the screen. To make things interesting, we’ll take a use case which promises some fun: We’ll develop a Pong game for the Nextion. 

2202, 2021

The Sunday Blog: The enhanced “K” HMIs – Part 4: The EEPROM

By |February 22nd, 2021|

As you might perhaps already know, the Enhanced ("K series") and Intelligent ("P series") NEXTION HMIs have a small (1kB) EEPROM memory space which allows permanent storing of numerical values or text strings, even at power loss. There are easy to use functions like repo, repo, reps, and wept in the Nextion language to handle different forms of reading and writing. To make meaningful use of it, there are a few things to know and to think about. That's what this blog article is about.