Blog2020-02-28T14:41:54+08:00

Our Blog

2609, 2022

Using the Nextion MIDI I/O interface with an Arduino (video!)

By |September 26th, 2022|

Although the Nextion MIDI I/O interface  has been primarily designed as an add-on for Nextion HMI screens to transform these in fully autonomous MIDI devices as shown in previous blog posts here, it is also of great use for any Arduino based electronic music project! Many MIDI projects for Arduino suffer from a lack good hardware support. There are sophisticated code, excellent libraries and an infinity of use cases, but afterwards, things tend not to work in a rather rough environment in the studio or on stage. That's because two resistors and a few Dupont wires on a breadboard besides the Arduino are not really an interface which could drive your Synth, Sequencer, or Drum machine over a 5m long MIDI cable.

1209, 2022

Advanced Programming: Computing square roots

By |September 12th, 2022|

First of all, let's open a virtual bottle of Champaign - this is my 100st Sunday Blog post!!! Now, let's celebrate this with a new functionality: Have your Nextion HMI computing square roots with just 21 lines of code and 5 integer variable components, everything nicely packed in a ready-to-use page template - the Nextion equivalent of a library as seen over the last weeks. The advantage is that you can add this function to a page by designing the latter by starting with importing the appropriate template and then customizing it as you would any other page of your project. And if your project doesn't need it - let it away and save memory! In my humble opinion, that's a way more interesting solution than requesting the integration of everything into the firmware, with all the runtime memory constraints.

509, 2022

Advanced HMI programming: Dynamic button repeat action

By |September 5th, 2022|

Did you ever see the need to increment or decrement values, for example on a settings screen? Did you want to avoid multiple clicks and would have preferred just keeping a button pressed while the value would continue to increment or decrement? And which would go at a higher speed when pressing the button for a longer time? After reading this article, you'll know how to do that with your beloved Nextion HMI! And no, there is NO need to add to the event code of each button! Only 4 invisible components and less than 20 lines of code are required to transform all buttons on a page into repeater buttons. That is so compact that we'll pack these into a single page template and export it. From then on, if you need buttons with accelerated auto-repeat on a page, go to the page pane, but instead of adding a blank page, import the template and you are done. Automatically, without an additional line of code, all buttons will magically have the repeat functionality!

2208, 2022

Password security in Nextion HMI – Part 2: A modular software concept

By |August 22nd, 2022|

Two weeks ago, we discussed a few password security strategies. If you haven’t already, please read that before continuing. While all the basic mechanisms have been explained and code examples have been shown, using these in your own project might seem difficult since there are so many places where code snippets were to add.  Thinking about that latter aspect and how to ease the re-utilization, I suddenly had an inspiration: Why not follow the example of the keyboard system pages which are automatically added to your project when you link a text or number component to one of the built-in keyboard screens? 

1508, 2022

The brand new Nextion MIDI I/O interface has arrived!

By |August 15th, 2022|

Designed for optimal interoperability with Nextion HMI, this universal TTL UART to MIDI interface transforms your favorite Nextion into a full-fledged MIDI controller. But we didn’t stop there. The NexMIDI (as my Chinese colleagues baptized it) is designed to be interfaced not only with any Nextion HMI display, but also with most microprocessors like Arduino, Teensy, PIC, STM32, Raspberry Pi, and so on. Logic level-wise, the RX pin of J2 accepts either 3.3V or 5V TX level from your Nextion Screen or from any MCU.

808, 2022

Password security in Nextion HMI – Part 1: Professionalize your development

By |August 8th, 2022|

Who hasn't experienced this - you are coding a HMI project and there are parts, for example a settings page, which you want to protect with a password. And then, tons of thoughts and considerations arise: Where and how do I store the password for comparison with the user entry? How do I protect a specific page from unauthorized access? And so on... Neither the Nextion's integrated MCU nor the Nextion programming language give us the required computing power to do true and secure encryption. But we aren't left alone with that. There exist a few simple technologies which allow us to add some layers of security to our HMI project. You may use one, several or all of them, depending on your project's security specifications or your personal level of paranoia 😉

Go to Top