Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3991 Datasheet(PDF) 9 Page - STMicroelectronics

Part # AN3991
Description  How to drive multiple stepper motors with the L6470 motor driver
Download  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3991 Datasheet(HTML) 9 Page - STMicroelectronics

Back Button AN3991 Datasheet HTML 5Page - STMicroelectronics AN3991 Datasheet HTML 6Page - STMicroelectronics AN3991 Datasheet HTML 7Page - STMicroelectronics AN3991 Datasheet HTML 8Page - STMicroelectronics AN3991 Datasheet HTML 9Page - STMicroelectronics AN3991 Datasheet HTML 10Page - STMicroelectronics AN3991 Datasheet HTML 11Page - STMicroelectronics AN3991 Datasheet HTML 12Page - STMicroelectronics AN3991 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 15 page
background image
DocID022332 Rev 2
9/15
AN3991
Controlling three motors with scripts
15
Three_motors script text
MOTOR_A = 0 # Motor A is the 1st one
MOTOR_B = 1 # Motor B is the 2nd one
MOTOR_C = 2 # Motor C is the 3rd one
#1.Establish the home position for all three motors wherever the shafts
happen to be
# Set motor A home position
ResetPos(MOTOR_A)
# Set motor B home position
#ResetPos(MOTOR_B)
# Set motor C home position
ResetPos(MOTOR_C)
#2.Spin MOTOR_A FW (forward) at 800 steps/sec for 5 seconds
# Send the Run command
#
Device
Dir
Speed
Run(MOTOR_A, True, 0xD1B7)
# Wait (about) 5 seconds
Delay(5000) # milliseconds
# Stop the motor
HardStop(MOTOR_A)
#3.Wait (about) 2 seconds
Delay(2000) # milliseconds
#4.Move MOTOR_A BW 2 revs or 400 steps or 51,200 microsteps
# Send the Move command
#
Device
Dir
microSteps
Move(MOTOR_A, False, 0xC800)
Delay(2000)
#5.Spin MOTOR_B BW (in the opposite direction) at 500 steps/sec for 8
seconds
# Send the Run command
#
Device
Dir
Speed
Run(MOTOR_B, False, 0x8312)
# Wait (about) 8 seconds
Delay(8000) # milliseconds
# Stop the motor
HardStop(MOTOR_B)
#6.Wait (about) 4 seconds
Delay(4000) # milliseconds
#7.Move MOTOR_B FW 4 revs or 800 steps or 102400 microsteps


Similar Part No. - AN3991

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN3992 STMICROELECTRONICS-AN3992 Datasheet
850Kb / 22P
   Using an STM8L162M8 AES hardware accelerator with a CR95HF to encrypt contactless tag data memory
AN3994 STMICROELECTRONICS-AN3994 Datasheet
2Mb / 53P
   One of the bigger challenges
AN3995 STMICROELECTRONICS-AN3995 Datasheet
372Kb / 49P
   Getting started tutorial
AN3997 STMICROELECTRONICS-AN3997 Datasheet
174Kb / 15P
   Audio playback and recording using the STM32F4DISCOVERY
AN3998 STMICROELECTRONICS-AN3998 Datasheet
96Kb / 10P
   PDM audio software decoding on STM32 microcontrollers
More results

Similar Description - AN3991

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN2650 STMICROELECTRONICS-AN2650 Datasheet
691Kb / 26P
   L9942 stepper motor driver for bipolar stepper motors
EVAL6470 STMICROELECTRONICS-EVAL6470 Datasheet
250Kb / 11P
   Fully integrated microstepping motor driver using the L6470
March 2011 Rev 1
X-NUCLEO-IHM02A1 STMICROELECTRONICS-X-NUCLEO-IHM02A1 Datasheet
306Kb / 7P
   Two axis stepper motor driver expansion board based on the L6470 for STM32 Nucleo
December 2015
logo
List of Unclassifed Man...
PMODDHB1 ETC1-PMODDHB1 Datasheet
122Kb / 3P
   The PmodDHB1 uses the Texas Instruments DRV8833 dual H-Bridge motor driver chip to drive two DC motors or one stepper motor.
logo
TRINAMIC Motion Control...
TMCM-1060 TRINAMIC-TMCM-1060 Datasheet
1Mb / 34P
   MECHATRONIC DRIVE WITH STEPPER MOTOR
TMCM-1180 TRINAMIC-TMCM-1180 Datasheet
781Kb / 27P
   MECHATRONIC DRIVE WITH STEPPER MOTOR
logo
STMicroelectronics
L9942 STMICROELECTRONICS-L9942 Datasheet
575Kb / 37P
   Integrated stepper motor driver for bipolar stepper motors with microstepping and programmable current profile
L9942XP1TR STMICROELECTRONICS-L9942XP1TR Datasheet
524Kb / 40P
   Integrated stepper motor driver for bipolar stepper motors with microstepping and programmable current profile
EVAL6474H STMICROELECTRONICS-EVAL6474H Datasheet
1Mb / 10P
   Stepper motor driver mounting the L6474
EVAL6208Q STMICROELECTRONICS-EVAL6208Q Datasheet
2Mb / 9P
   Stepper motor driver mounting the L6208Q
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.NET
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com