The Stepper Duonext is a dual stepper motor controller combining a touch screen Nextion display with and Arduino microcontroller.
This is an excellent unit for controlling stepper motors where human-machine interaction is involved. Nextion displays uses a really intuitive software to build your own application.
Note this unit does not support G code and Gerbl. This product focuses mainly on human interface via the touch screen display.
Touch screen display and motor drivers are sold separately.
- Input power: 12Vdc
- Motors: 2
- Supported drivers: A4988 or similar / Generic
- On/Off switch
- USB port for both programming and serial communications.
- Serial port for connection with Nextion display.
- Supported Nextion display: Any 3.2" can be mounted. NX4024T032 / NX4024K032
- I2c Port
- 6 Digital I/O for sensors/relays etc.
- 2 Analog Inputs.
The 3.2" display are compatible. These are models NX4024T032 and NX4024K032.
The display application is build using the Nextion software. If you are new to this this is something worth learning as the potential is great.
The Nextion application file is loaded on the display using SD card.
Edit your own sketch and upload it directly to the Duonext using the USB connection.
Motors - Motors are easily programmed using the StepperUNO library. Feel free to download it and look at the examples.
Interaction with Nextion - For this we recommend the NeoNextion library from this Github page. Our examples use this library but you are obviously free to use any other.
There are 6 digital Input/Output ports. These are in Arduino convention.
They might be used to control relay sensing microswitch or any other related TTL activities.
There are 2 analogue ports. These are
These can be used to interface with analog sensors or connect a potentiometer for user interaction.
The Duonext comes in 2 options for drivers.
- A4988 (or similar)
- Generic Driver
This option allows to mounted the driver directly on the Duonext and connect the motor to the 4way connector.
We have tested 2 drivers with this format.
- A4988. The A4899 driver works well for higher speed requirements. This is an inexpensive unit.
- TMC2225. The TMC2225 as the same format as the A4988. This one is better suited for positioning control and is very silent.
This option allows to connect any external driver using step/dir/enable wires. Connection is made using screw terminal connectors.
We provide a set of application examples. These are voluntarily simplified to be as demonstrative as possible. Feel free to look in the code to get inspired. All graphics are freely available.
This would stand as the 'hello world' equivalent for the Duonext. 3 buttons. Go left/right and stop.
Similar example as above but with a speed control slider this time.
A plain positioning application. Start the motor with fast or slow speed. There are 2 memories to store a position to recall. Use "Sto" to store the current position in memory and use "Call" to move the motor to the position stored in memory.
The current position is shown at the top.
Acceleration Control Example
This example shows controls for acceleration. There you can turn acceleration on/off and set acceleration and speed using a keypad.
The level status of each input is shown with an indicator. Gray for LOW and green for HIGH. The analogue input values are also shown.