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.

26 02, 2024

Building a Countdown timer – answering a reader’s question

By |2024-02-26T04:18:05+08:00February 26th, 2024|Categories: The Sunday Blog|Comments Off on Building a Countdown timer – answering a reader’s question

After reading the following question of a reader, let's call him "J.", in a Nextion Display related group on Facebook, I decided spontaneously to make it a small project for this Blog: "Hello I'm new in using Nextion Intelligent Display! Can someone help me? I want to make a timer where the user can enter how many seconds he wants to run and also show how much time is remaining before it ends. Thanks a lot if you can help me💜"

19 02, 2024

Boosting the Nextion Mega I/O project with new knowledge (6)

By |2024-02-19T06:09:21+08:00February 19th, 2024|Categories: The Sunday Blog|Comments Off on Boosting the Nextion Mega I/O project with new knowledge (6)

Up to now, the highlight of our ongoing Nextion Mega I/O project is the ADC page which allows to monitor all 16 analog input pins of an Arduino Mega at once. With little modifications in the UI design, by putting either a Number or a Float component for a specific channel, we can select the desired display format without caring about conversion of or scaling the reading. The timer event code will chose the right formula by detecting the component type beforehand. All that is really great, but what if we do not need (or not all the time) all 16 channels? Is there a way to permanently disable (freeze/hold) the one or the other channel in order to reduce the workload of the Mega's ADC and the amount of data transferred? The answer is yes, and thanks to what we saw in the last Sunday Blog, it's easy-peasy!

5 02, 2024

Working with bit fields – optimize your code

By |2024-02-19T03:42:49+08:00February 5th, 2024|Categories: The Sunday Blog|Comments Off on Working with bit fields – optimize your code

Bitwise logical operations and packing data into bitfields is a very elementary programming technique - in fact, every microprocessor uses it internally to achieve "higher" goals like addition, subtraction, multiplication, division, and more. Nevertheless, many people who write amazing software in "high" languages are not really comfortable when it comes to bit manipulations, even if these can, as we have often seen in the Nextion Sunday Blog's demo projects, make your code more compact, using less memory and running quicker. Since I get more and more reader's feedback in that sense, I decided to make a compact writeup, giving you the required knowledge at hands, not only to decipher but also to create amazing things.

22 01, 2024

Universal UI on-screen help framework for Nextion HMI

By |2024-01-22T05:47:55+08:00January 22nd, 2024|Categories: The Sunday Blog|Comments Off on Universal UI on-screen help framework for Nextion HMI

In the Nextion user forums, a participant from Europe, let's call him M., asked an interesting question. What he wants to achieve is activating a "Help" mode on his Nextion project. That means that after activating this help mode, the user would click on an arbitrary component and instead of executing the component's event code, a help screen with explanations would be displayed. Since in his project, there are nearly 1000 components on several screens, reworking each single component's event code to decide if the event code should be executed or the help screen displayed, is definitively not an option. So, he thought that he'd use a TouchCap component to intercept the event chain before the component's own event code was executed, to decide if, in case the help mode was active, the help screen would be displayed. But his problem was that the component's own TouchPress and/or TouchRelease event code would still be executed afterwards, probably going to a different page, which would prevent displaying the help text correctly...

15 01, 2024

The Nextion Mega I/O Project – Part 5

By |2024-01-15T07:40:20+08:00January 15th, 2024|Categories: The Sunday Blog|Comments Off on The Nextion Mega I/O Project – Part 5

The Nextion Mega I/O Project - Part 5 Please read before: The Nextion MEGA IO project - Part 1 - Nextion - The Nextion MEGA IO project – Part 2 - Nextion - The Nextion MEGA IO project – Part 3 - Nextion - The Nextion Mega I/O project - Part 4 - Nextion Reading analog inputs -

Go to Top