Arduino Forum

Using Arduino => Motors, Mechanics, Power and CNC => Topic started by: Alshamsi on Sep 04, 2019, 10:38 pm

Title: help with Stepper motor driver
Post by: Alshamsi on Sep 04, 2019, 10:38 pm
Hello

i want help how to do diagram Stepper motor Drive with LCD input shield Arduino Uno
Title: Re: help with Stepper motor driver
Post by: Robin2 on Sep 04, 2019, 10:48 pm
Images from Original Post so we don't have to download them. See this  Simple Image Guide (http://forum.arduino.cc/index.php?topic=519037)

(https://forum.arduino.cc/index.php?action=dlattach;topic=634720.0;attach=323218)


(https://forum.arduino.cc/index.php?action=dlattach;topic=634720.0;attach=323220)

...R
Title: Re: help with Stepper motor driver
Post by: Robin2 on Sep 04, 2019, 10:50 pm
Start by learning to write separate programs {A} to put a message on the LCD screen and get inputs from its buttons and {B} to control the stepper motor.

These links should help with the second part.
Stepper Motor Basics (http://forum.arduino.cc/index.php?topic=284828.0)
Simple Stepper Code (http://forum.arduino.cc/index.php?topic=277692.0)

also look up the AccelStepper (http://www.airspayce.com/mikem/arduino/AccelStepper/) library

...R
Title: Re: help with Stepper motor driver
Post by: Alshamsi on Sep 04, 2019, 11:01 pm
yes but i have problem to connect ENA +/- and DIR +/- and PUL +/- ..
i cant connect to Arduino Uno because LCD input shield top the board
Title: Re: help with Stepper motor driver
Post by: Robin2 on Sep 05, 2019, 08:59 am
yes but i have problem to connect ENA +/- and DIR +/- and PUL +/- ..
i cant connect to Arduino Uno because LCD input shield top the board
That's a common problem with shields and one of the reasons why I never bought one.

Some LCD's use a large number of Arduino I/O pins (I know, I have one of them) but others use I2C to communicate with the PC and only need a few pins. Your shield also needs I/O pins for the switches.

You need a schematic diagram for your LCD shield to see what Arduino pins are actually essential for it to work and whether there are some unused ones that could be used with your stepper driver.

...R
Title: Re: help with Stepper motor driver
Post by: MarkT on Sep 05, 2019, 07:59 pm
yes but i have problem to connect ENA +/- and DIR +/- and PUL +/- ..
i cant connect to Arduino Uno because LCD input shield top the board
A breakout shield with stacking headers allows access to pins in this instance.  Display shields don't
use stacking headers as they have to be at the top of any stack.

For instance: https://learn.adafruit.com/adafruit-proto-shield-arduino (https://learn.adafruit.com/adafruit-proto-shield-arduino)