Address
304 North Cardinal
St. Dorchester Center, MA 02124
Work Hours
Monday to Friday: 7AM - 7PM
Weekend: 10AM - 5PM
Address
304 North Cardinal
St. Dorchester Center, MA 02124
Work Hours
Monday to Friday: 7AM - 7PM
Weekend: 10AM - 5PM
Original price was: ₹399.00.₹335.00Current price is: ₹335.00.
The Nextion IO Adapter is made specially to work with the Nextion Enhanced HMI Display Series. The small board pins out the GPIOs of the Nextion Enhanced display to 2.54-inch headers, which allows users to access the GPIOs more conveniently. The Nextion IO Adapter is made specially to work with Nextion Enhanced HMI Display which covers standard 2.4″, 2.8″, 3.2″, 3.5″, 4.3″, 5.0″, 7.0″ The small board allows Nextion Enhanced display users to have extended IO to connect with external devices.
Since the Nextion HMI displays are primarily targeted at industrial applications, the 8 GPIO pins are available together with +5V and GND on a 1mm pitch 10pin FCC connector, intended for a corresponding flat ribbon cable. I admit, this is not very breadboard-friendly for the hobbyist, but there is a solution: We at Nextion and our authorized distributors and resellers sell the Nextion IO Adapter which comes with a 10cm (4″) flat ribbon cable and a small printed circuit board which accepts pin headers in the more common 2.54mm (0.1″) raster. Ideal for one-shot projects and prototyping!
As an Arduino user, you are most probably familiar with the fact that GPIO pins have to be individually configured as inputs or outputs with the pinMode() function. As an example, to use pin 0 as an input, you’d write the line pinMode(0, INPUT); or to use pin 1 as an output, write pinMode(1, OUTPUT); To use a pin as an input with a single key or switch towards GND, Arduino allows to save on an external pull-up resistor by activating the internal one, using pinMode(0, INPUT_PULLUP);
Our Nextion programming language gives us a similar but even mightier command: cfgpio. It allows the use of up to 5 pin modes, saving us the equivalents of attachInterrupt() and analogWrite() as we will see below. For the moment, let’s see how to configure a pin as an input. The cfgpio syntax is as follows: cfgpio <pin>,<mode>,<object>:
<pin> is a number from 0 to 7, corresponding to the 8 IO pins IO_0 to IO_7,
<mode> is a number between 0 and 4, corresponding to the selected mode, and
<object> is the id of an optionally bound object and is always 0 for simple IO operations.
To configure a pin as an input with activated pull-up (these are always activated on Nextion), we chose mode 0. Thus, turning IO_0 into a simple input, we use cfgpio 0,0,0 which corresponds to pinMode(0, INPUT_PULLUP). Using a pin as a “normal” digital output requires mode 2. So, configuring IO_1 as an output requires cfgpio 1,2,0, equivalent of pinMode(1, OUTPUT). It’s as simple as that!
Just for the sake of completeness, there is another output mode on the Nextion: The open drain output. It has no equivalent on AVR-based Arduinos but several Arduino-based framework extensions for ARM-based MCUs allow the use of pinMode(1, OUTPUT_OPEN_DRAIN) for the use with either external pull-up resistors and/or hard-wired OR-ing of multiple outputs on the same rail, for example in bus systems. On our Nextions, the mode 4 does that. Thus cfgpio 1,4,0 corresponds to pinMode(1,OUTPUT_OPEN_DRAIN).
Experience seamless connectivity and enhanced control with the Nextion IO Adapter. This versatile accessory is designed to streamline your projects by providing a bridge between your devices and the Nextion display. Whether you’re building smart systems, automation setups, or interactive interfaces, this adapter ensures smooth communication and effortless integration.
Transform the way you interact with your creations through the intuitive capabilities of the Nextion IO Adapter. With its user-friendly design, you can easily configure inputs, outputs, and triggers, enabling dynamic control of various elements. Create custom interfaces that respond to user actions, sensor inputs, and more. Elevate user engagement with interfaces that are both responsive and captivating.
Unleash the true potential of your projects with the Nextion IO Adapter. By expanding the input and output options, you can enhance the functionality of your displays and systems. From interactive touch controls to real-time data feedback, this adapter empowers you to create sophisticated user experiences. Elevate the impact of your projects with enhanced control and versatility.
1 x Nextion IO Adapter GPIO Expansion Board
Reviews
There are no reviews yet.