Theory and practice of NEXTION HMI programming: The Sunday Blog is an almost weekly publication for NEXTION HMI users by our technical writer Thierry. He is a French-German mathematician and musician and an active Nextion HMI developer, specialized in interfaces for electronic music.

We develop didactical projects. The idea behind is to show advanced programming techniques in NEXTION language. Or to learn more about communication between the NEXTION HMI and various MCUs, like for example Arduino, STM, ESP, or Teensy.

We always explain the theoretical and sometimes historical background first. That’s the theory of NEXTION HMI programming. Then, sometimes over several episodes, we’ll show the practice of NEXTION HMI programming. You may then re-use these practical examples or adapt them to your needs. All HMI project example code is available for download either in the NEXTION Forums or directly inside the article.

10 06, 2024

Date calculation on Nextion HMI for a date picker or calendar applet – part I

By |2024-06-10T05:48:07+08:00June 10th, 2024|Categories: The Sunday Blog|Comments Off on Date calculation on Nextion HMI for a date picker or calendar applet – part I

Date calculation on Nextion HMI for a date picker or calendar applet - part I While the work on the Nextion MEGA IO project goes on in the background, making our hyper efficient custom protocol fit for a future CAN bus use, a question or better a feature request for a calendar popped up in

6 05, 2024

The hard coded, #define, const or variable question – binary communication between Nextion and Arduino

By |2024-05-06T05:12:30+08:00May 6th, 2024|Categories: The Sunday Blog|Comments Off on The hard coded, #define, const or variable question – binary communication between Nextion and Arduino

Our long-time occupation on which we learn and grow at the same time, the Nextion Mega IO project will, as we have seen in my last blog, see another extension (CAN BUS) soon, which requires our custom protocol to be still more quick and flexible as its is already. That was for me the moment to review what had already been done and especially, how it was done. While the number of supported data types doesn't stop growing, we've seen in the past that adding these to our custom protocol was pretty straightforward, since everything had been well thought and designed from the beginning. But when I look back at our code on both sides, Arduino and Nextion, I find now that although it's currently working surprisingly well, it is sometimes difficult to understand a few weeks later, what was done and how it was done. Time to make our code more self explaining! But as always, let's take a little time to think and to study before going into "medias res" as the Romans said.

8 04, 2024

The Endian question – binary communication between Nextion and Arduino

By |2024-04-08T05:43:33+08:00April 8th, 2024|Categories: The Sunday Blog|Comments Off on The Endian question – binary communication between Nextion and Arduino

Over the last months, we have seen a huge progress in the Nextion Mega IO project. Time for a little break to answer recurring readers' questions. Today, we'll talk about data formats in binary communication. An important point as soon as we leave the default ASCII command communication using the Nextion instruction set. For the Nextion Mega IO project, we introduced a much more compact binary protocol, first to gain on transmission speed, second to showcase the Nextion's protocol reparse mode, and third because it's fun to explore new paths ;-) . Our goal for today is to understand a bit of theory which will allow us to rework somewhat the Nextion Mega IO code in the future to make it simpler, easier maintainable and readable, and still more flexible. Then, adding the control over the up to 32 GPIO pins which we still have to implement, will be very easy. And later, when it comes to high speed communication between Arduino and Nextion for a CAN bus project (spoiler!), we will be thankful for all this preliminary work!

25 03, 2024

Control Servo motors with Nextion HMI – Part 2

By |2024-03-25T06:38:00+08:00March 25th, 2024|Categories: The Sunday Blog|Comments Off on Control Servo motors with Nextion HMI – Part 2

As we have seen in part 1 of this article series, we need an external MCU, for example an Arduino, to control servo motors with our beloved Nextion HMIs. Now, let's see how this can be achieved in practice. Since we are already building a universal IO engine with the ongoing Nextion Mega IO project, we will not reinvent the wheel. We'll just extend what we already have at hands.

11 03, 2024

Control Servo motors with Nextion HMI – Part 1

By |2024-03-11T04:46:01+08:00March 11th, 2024|Categories: The Sunday Blog|Comments Off on Control Servo motors with Nextion HMI – Part 1

Over the last weeks, I got several mails from readers asking about the use of servo motors (or short, servos) together with Nextion HMI. The ones wanted to control a few servos directly from the Nextion's (Enhanced and Intelligent series) GPIO, others suggested to extend the Nextion Mega I/O project to allow controlling servos. The scientific approach is to gather information before taking a decision or even starting a development, thus, let's look at how servos work and how they are controlled, first. And then, let's see how the Nextion HMI can be used for that.

Go to Top