Coder Social home page Coder Social logo

nextion-x-steppermotor's Introduction

Nextion-X-StepperMotor

Control a Arduino stepper motor using a Nextion screen

Parts Used:

- Arduino Uno
- 28BYJ-48 Stepper Motor with Driver
- NEXTION NX4024T032 - GENERIC 3.2" Screen
- BreadBoard
- A bunch of Wires

Diagram

Diagram

Setup

1. Follow the diagram above
2. Upload the TFT file to the Nextion Screen via a mico SD Card
3. Install all necessary libraries to the Arduino Editor
4. Upload the .ino file to the Arduino Uno(When uploading make sure that there are no wires in the Pins 0 and 1(Serial Ports) otherwise a error will show up)

Interface

Interface

- The blue text above is the current position of the motor
- Enter integers, fractions or both(using the SPC button)
- CAL or Calibration allows the user to change the current position without the motor turning
- The Setting button on the top right allows the user to go to the setting page and change the speed of the motor

Example

User: 1 1/4 -> Enter
Motor: Rotates a full Revolution and then a Quarter of a Revolution to get to the "1 1/4" position

User: 2 -> Enter
Motor: Rotates 3/4 of a Revolution to get to the "2" position

User: -1 -> Enter
Motor: Rotates back 3 full Revoultions back to get to the "-1" position 

User: 0 -> CAL
Motor: Does not rotate but it is at the "0" position

User: 1 -> Enter
Motor: Rotates a full Revolution to get to the "1" position

Update

Added the .hmi file so anyone can play around with the display

nextion-x-steppermotor's People

Contributors

shahanmny avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.