Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.2.

Similar documents
Quick Start Guide. High power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo (X-NUCLEO-IHM03A1)

Quick Start Guide. Bipolar stepper motor driver expansion board based on L6208 for STM32 Nucleo (X-NUCLEO-IHM05A1) Version 1.1.

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.

Version (Apr 28, 2016)

Quick Start Guide. Dual-channel high side driver expansion board based on VPS2535H for STM32 Nucleo (X-NUCLEO-IPS02A1) Version 1.0 (Sept.

Quick Start Guide. Dynamic NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo (X-NUCLEO-NFC04A1) Version 1.

Quick Start Guide. Long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo (X-NUCLEO-53L1A1) Version (February 20, 2018)

Quick Start Guide. Sound terminal expansion board based on STA350BW for STM32 NUCLEO (X-NUCLEO-CCA01M1) Version 1.1.

Quick Start Guide. GNSS expansion board based on Teseo-LIV3F module for STM32 Nucleo (X-NUCLEO-GNSS1A1) Version 2.1 (Nov 9, 2018)

Quick Start Guide. Bluetooth Low Energy expansion board based on SPBTLE-RF module for STM32 Nucleo (X-NUCLEO-IDB05A1) Version 1.

Quick Start Guide. NFC card reader expansion board based on ST25R3911B for STM32 Nucleo (X-NUCLEO-NFC05A1) Version (July 14 th, 2017)

Quick Start Guide. STM32 ODE Function Pack for Building a PLC controlled via Wi-Fi (FP-IND-PLCWIFI1) Version 1.1 (Oct 16, 2017)

Quick Start Guide. Bluetooth Low Energy expansion board based on BlueNRG for STM32 Nucleo (X-NUCLEO-IDB04A1) Version 1.

Quick Start Guide. STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to smartphone through a BLE interface (FP-NET-6LPBLE1)

Quick Start Guide. STM32Cube function pack for IoT node with dynamic NFC tag, environmental and motion sensors (FP-SNS-SMARTAG1)

Quick Start Guide. Bluetooth low energy, sensors and NFC tag software for STM32Cube (BLUEMICROSYSTEM3) Version (September 15, 2016)

Quick Start Guide. Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo (X-NUCLEO-IDW01M1) Version 1.0 (November 18, 2015)

Quick Start Guide STM32 ODE Function Pack for IoT sensor node connection to 6LoWPAN networks through sub-1ghz RF communication (FP-SNS-6LPNODE1)

Quick Start Guide. STM32 ODE function pack for MEMS microphones acquisition, advanced audio processing and audio output (FP-AUD-SMARTMIC1)

Quick Start Guide (V1.0 May2015) Dynamic NFC tag expansion board based on M24SR for STM32 NUCLEO (X-NUCLEO-NFC01A1)

Quick Start Guide. STM32Cube function pack for IoT sensor node with telemetry and device control applications for Amazon AWS Cloud (FP-CLD-AWS1)

Quick Start Guide. STM32 ODE function pack for IoT node with BLE connectivity and environmental and motion sensors (FP-SNS-MOTENV1)

Quick Start Guide STM32Cube function pack for creating a BLE star network connected via Wi-Fi to IBM Watson IoT cloud (FP-NET-BLESTAR1)

Quick Start Guide. Version 3.0 (June 12, 2017)

Quick Start Guide. STM32 ODE function pack for half-duplex voice streaming over Bluetooth Low Energy (FP-AUD-BVLINK1) Version 1.

Quick Start Guide. Version 3.1 (August 8, 2018)

STM32 Open Development Environment

Quick Start Guide. IoT node with BLE connectivity, environmental and motion sensors, and motion middleware libraries (BLUEMICROSYSTEM1)

Quick Start Guide. Version 2.4 (September 05, 2018)

Quick Start Guide. STM32Cube function pack for IoT tracker node with LoRa connectivity, GNSS and sensors (FP-ATR-LORA1) Version 1.2 (Feb.

Quick Start Guide. STM32 ODE function pack for IoT node with BLE connectivity, digital microphone, environmental and motion sensors (FP-SNS-ALLMEMS1)

Quick Start Guide. Contiki OS and 6LoWPAN sub-1ghz RF communication software expansion for STM32 Cube (Contiki6LP) Version 1.3 (December 10, 2018)

Getting started with the FP-SNS-ALLMEMS1 Bluetooth low energy and sensors software expansion for STM32Cube

Getting started with X-CUBE-LED channel LED driver software expansion based on LED1642GW for STM32Cube

Getting started with the software package for L6474 stepper motor driver X-CUBE-SPN1 expansion for STM32Cube

Getting started with the FP-NET-6LPBLE1 function pack for 6LoWPAN IoT node connection to a smartphone via BLE interface

Getting started with the X-CUBE-SPN3 high power stepper motor driver software expansion for STM32Cube

STM32 Open Development Environment

Quick Start Guide. Version (May 14, 2018)

Getting started with FP-SNS-6LPNODE1 software for IoT sensor node connection to 6LoWPAN networks using sub-1ghz RF

Quick Start Guide. STM32 ODE function pack for IoT node with Wi-Fi or Ethernet, NFC and sensors, connected to Microsoft Azure cloud (FP-CLD-AZURE1)

Quick Start Guide. Version (May 14, 2018)

UM2045 User manual. Getting started with the X-CUBE-NFC3 near field communication transceiver software expansion for STM32Cube.

Getting started with the X-CUBE-NFC5 high performance HF reader / NFC initiator IC software expansion for STM32Cube

Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via Wi-Fi

Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube

Getting started with the X-CUBE-SPN2 two-axis stepper motor driver software expansion for STM32Cube

Getting started with X-NUCLEO-IHM06A1 low voltage stepper motor driver expansion board based on STSPIN220 for STM32 Nucleo

Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

Quick Start Guide. SensiBLE (BLUEMICROSYSTEM1) Bluetooth low energy and sensor software for. Version (May 25, 2016)

UM1853 User manual. STM32CubeF1 Nucleo demonstration firmware. Introduction

AN4624 Application note

Getting started with the X-CUBE-53L1A1 Time-of-Flight long distance ranging sensor software expansion for STM32Cube

Getting started with the X-CUBE-IKA02A1 multifunctional software expansion for STM32Cube

NUCLEO-L433RC-P NUCLEO-L452RE-P

Getting started with the X-NUCLEO-IHM14A1 stepper motor driver expansion board based on STSPIN820 for STM32 Nucleo

Getting started with osxmotionar activity recognition library for X-CUBE-MEMS1 expansion for STM32Cube

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery. Features. Description

Getting started with the software package for digital MEMS microphones in X-CUBE-MEMSMIC1 expansion for STM32Cube

Getting started with the FP-CLD-AWS1 software package for IoT node with Wi-Fi and sensors, connected to Amazon AWS IoT cloud

UM2276. Getting started with MotionSD standing vs sitting desk detection library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Getting started with the STSW-BCNKT01 software package for STEVAL-BCNKT01V1 based on STM32Cube

Getting started with MotionPM real-time pedometer library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with VL53L0X ranging and gesture detection sensor software expansion for STM32Cube

NUCLEO-L496ZG. STM32 Nucleo-144 board. Features. Description

UM2350. Getting started with MotionPW real-time pedometer for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery Data brief. Features. Description

Getting started with the high power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on the STUSB1602

Getting started with osxmotiongc gyroscope calibration library for X-CUBE-MEMS1 expansion for STM32Cube

Running a simple 6LowPAN network consisting of one receiver node and one or more sensor nodes in a Sub-1GHz RF band

Getting started with the software package for STEVAL-STLKT01V1 based on STM32Cube

From Sensors to Cloud: The Case for a Complete Ecosystem for IoT Development

Getting started with MotionPM real-time pedometer library in X CUBE-MEMS1 expansion for STM32Cube

Environmental sensors for true user experience

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on STUSB1602. Description

UM2194. Getting started with MotionAW activity recognition for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Getting started with the digital MEMS microphone expansion board based on MP34DT01-M for STM32 Nucleo

UM1724 User manual. STM32 Nucleo boards. Introduction

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

STM32 Open Development Environment

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

UM2216 User manual. Getting started with MotionFA fitness activity library in X CUBE MEMS1 expansion for STM32Cube. Introduction

SensiBLE Getting Started. Your Idea - Worth come true

Getting started with the P-NUCLEO-IKA02A1 STM32 Nucleo pack for electrochemical toxic gas sensor expansion board with CO sensor

UM1724 User manual. STM32 Nucleo-64 boards. Introduction

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

UM1724 User manual. STM32 Nucleo boards. Introduction

Getting started with the STM32 ODE function pack for IoT node with NFC, BLE connectivity and environmental, motion and Time-of-Flight sensors

Getting started with STM32Nucleo Boards

Getting started with the ultra-low-power STM32 and LoRa Nucleo pack

UM2084 User manual. Getting started with the ultra-low-power STM32 and LoRa Nucleo pack. Introduction

Getting started Guide

LiDAR in a Chip FlightSense Introduction to Time of Flight. Imaging Division Photonic Sensors Business Line

Getting started with osxmotionmc magnetometer calibration library for X-CUBE-MEMS1 expansion for STM32Cube

32L476GDISCOVERY. Discovery kit with STM32L476VG MCU. Features. Description

P-NUCLEO-6180X2. Proximity, gesture, ambient light sensor expansion board based on VL6180X for STM32L053R8. Description. Features

Transcription:

Quick Start Guide Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.2.0 (May 16, 2016)

Quick Start Guide Contents 2 X-NUCLEO-IHM01A1: Stepper motor driver expansion board Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview

Stepper motor driver expansion board Hardware overview 3 X-NUCLEO-IHM01A1 Hardware description The X-NUCLEO-IHM01A1 is a stepper motor driver expansion board based on the L6474. It provides an affordable and easy-to-use solution for driving a stepper motor in your STM32 Nucleo project. The advanced current control of the L6474 and a complete set of protection features offer high levels of both performance and robustness. The X-NUCLEO-IHM01A1 is compatible with the Arduino UNO R3 connector, and supports the addition of other boards which can be plugged to drive up to three stepper motors using a single STM32 Nucleo board. Key features Voltage range from 8 V to 45 V Phase current up to 3 A RMS Power OK and fault LEDs Advanced current control Fully protected power stage Up to 1/16 microstepping resolution RoHS compliant Key Product on board L6474 Fully integrated microstepping motor driver L6474 Arduino UNO R3 connector ST morpho connector** Supply and motor phase connectors Latest info available at www.st.com X-NUCLEO-IHM01A1 ** Connector for the STM32 Nucleo board

X-CUBE-SPN1 software description Stepper motor driver expansion board Software overview 4 The X-CUBE-SPN1 is an expansion software package for STM32Cube, associated with the X- NUCLEO-IHM01A1 expansion board. It is compatible with the NUCLEO-F401RE, the NUCLEO-F030R8, the NUCLEO-F334R8 and the NUCLEO-L053R8 development boards when they are equipped with one or more (up to 3) X-NUCLEO-IHM01A1 boards. The source code of this package is based on STM32Cube to ease portability across different STM32 MCU families. Key features Driver layer for complete management of the L6474 microstepping motor driver integrated in the X-NUCLEO-IHM01A1 expansion board Examples for controlling up to three stepper motors Easy portability across different MCU families, thanks to STM32Cube Free, user-friendly license terms Overall system architecture L6474 use examples for 1, 2 or 3 motors HAL and BSP level examples CMSIS Hardware Abstraction Layer API Boards Support Packages Drivers STM32 L6474 HW Components STM32 Nucleo Board X-NUCLEO-IHM01A1 Expansion Board(s) Board Demonstrators Latest info available at www.st.com X-CUBE-SPN1

Quick Start Guide Contents 5 X-NUCLEO-IHM01A1: Stepper motor driver expansion board Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview

Getting started with hardware Setup & demo examples Hardware prerequisites 6 The X-NUCLEO-IHM01A1 expansion board is a stepper motor driver covering a wide range of applications. The maximum ratings are: Power stage supply voltage (VS) from 8 V to 45 V Motor phase current up to 3 A RMS To start your project with the board: 1. Check the jumper position in accordance with your configuration (see Section 2 of UM1857). 2. Connect the board to the STM32 Nucleo board with the connector: a. Arduino UNO R3 for the X-NUCLEO-IHM01A1 b. ST morpho for the X-NUCLEO-IHM01A Up to three expansion boards can be stacked on the same STM32 Nucleo board, as described in Section 2.2 of UM1857. 1. Supply the board through pins 1 (VS) and 2 (ground) of the connector CN1. 2. The power OK (green) and fault (red) LEDs turn on. 3. Develop your application using the examples provided with the firmware library. Selecting the chip select and clock lines of the SPI The chip select and the clock lines of the SPI interface can be selected through dedicated resistors as indicated in Tables 3 and 5 of UM1857. Multi-motor configuration The expansion boards can be stacked on a single STM32 Nucleo board in order to drive up to three stepper motors (one for each motor). More in Section 2.2 of UM1857.

Setup & demo examples System requirements to drive up to 3 motors (1/2) 7 1 x STM32 Nucleo development board (NUCLEO-F401RE or NUCLEO-F030R8 or NUCLEO-F334R8 or NUCLEO-L053R8) 1 to 3 x Stepper motor driver expansion board (X-NUCLEO-IHM01A1) 1 to 3 x Stepper motors 1 x External DC power supply with two, four or six electric cables 1 x USB type A to Mini-B USB cable 1 x Windows 8/7 - Laptop/PC NUCLEO-F401RE NUCLEO-F030R8 NUCLEO-F334R8 NUCLEO-L053R8 Mini USB Cable Stepper Motor X-NUCLEO-IHM01A1

Setup & demo examples System requirements to drive up to 3 motors (2/3) 8 The STM32 Nucleo has to be configured with the following jumper positions: JP1 off JP5 (PWR) on UV5 side JP6 (IDD) on Resistor setup for first motor The X-NUCLEO-IHM01A1 expansion board for first motor must have: Mounted resistors (0R) on R1, R4, R7 and 10 Unmounted resistors on R2, R3, R5, R6,R8, R9, R11 and R12

Setup & demo examples System requirements to drive up to 3 motors (3/3) 9 The X-NUCLEO-IHM01A1 expansion board for the second motor must have: Mounted resistors (0R) on R2, R5, R8 and R11 Unmounted resistors on R1, R3, R4, R6,R7, R9, R10 and R12 The X-NUCLEO-IHM01A1 expansion board for third motor must have: Mounted resistors (0R) on R3, R6, R9 and R12 Unmounted resistors on R1, R2, R4, R5, R7, R8, R10 and R11 Resistor setup for second motor Resistor setup for third motor

Setup & demo examples System setup to drive up to 3 motors 10 Plug the X-NUCLEO-IHM01A1 for the first motor on top of the STM32 Nucleo using the Arduino UNO R3 connectors Plug the X-NUCLEO-IHM01A1 for the second motor on top of the one for first motor Plug the X-NUCLEO-IHM01A1 for the third motor on top of the second one Connect the STM32 Nucleo board to a PC using the USB cable via USB connector CN1 to power the board Power on the X-NUCLEO-IHM01A1 expansion boards by connecting their VIN and GND connectors to the DC power supply. The DC supply must be set to deliver the correct voltage required by the stepper motors. Connect each stepper motor to the A+/- and B+/- bridge connectors of their dedicated X-NUCLEO-IHM01A1 board Motor 1 Motor 2 Motor 3

Setup & Demo Examples SW prerequisites 11 STSW-LINK008: ST-LINK/V2-1 USB driver STSW-LINK007: ST-LINK/V2-1 firmware upgrade X-CUBE-SPN1 Copy the.zip file content into a folder on your PC. The package will contain source code example (Keil, IAR, System Workbench) based only on NUCLEO-F401RE or NUCLEO-F030R8 or NUCLEO-F334R8 or NUCLEO-L053R8 STM32Cube firmware for X-NUCLEO-IHM01A1 is available at www.st.com

Setup & demo examples Run the demo software to drive up to 3 motors Once the system setup is ready: Open your preferred tool chain (MDK-ARM from Keil, EWARM from IAR, System Workbench for STM32 ) Depending on your STM32 Nucleo board, open the software project from: \stm32_cube\projects\multi\examples\motioncontrol\ihm01a1_examplefor3motors\yourtoolchainname\stm32f401re-nucleo for Nucleo STM32F401 \stm32_cube\projects\multi\examples\motioncontrol\ihm01a1_examplefor3motors\yourtoolchainname\stm32f030r8-nucleo for Nucleo STM32F030 \stm32_cube\projects\multi\examples\motioncontrol\ihm01a1_examplefor3motors\yourtoolchainname\stm32f334r8-nucleo for Nucleo STM32F334 \stm32_cube\projects\multi\examples\motioncontrol\ihm01a1_examplefor3motors\yourtoolchainname\stm32l053r8-nucleo for Nucleo STM32L053 In order to adapt the default parameters which are used by the L6474s depending of your stepper motor characteristics, open the file: stm32_cube\drivers\bsp\components\l6474\l6474_target_config.h. and modify the parameters which are postfixed by _DEVICE_0 for the first motor, postfixed by _DEVICE_1 for the second motor and by _DEVICE_2 for the third motor. Rebuild all files and load your image into the target memory. Run the example. The motors automatically start (see main.c for the detailed demo sequence). 12

Documents & related resources 13 All documents are available in the DESIGN tab of the related products webpage X-NUCLEO-IHM01A1: Gerber files, BOM, and schematics DB2360: Stepper motor driver expansion board based on L6474 for STM32 Nucleo Data brief UM1857: Getting started with the X-NUCLEO-IMH01A1, stepper motor driver expansion board based on L6474 for STM32 Nucleo User manual X-CUBE-SPN1: DB2456: Stepper motor driver software expansion for STM32Cube Data brief UM1848: Getting started with X-CUBE-SPN1, stepper motor driver software expansion for STM32Cube User manual Software setup file L6474: DS8773: Product datasheet with details about default parameters data sheet Consult www.st.com for the complete list

Quick Start Guide Contents 14 X-NUCLEO-IHM01A1: Stepper motor driver expansion board Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview

STM32 Open Development Environment Fast, affordable Prototyping and Development 15 The STM32 Open Development Environment (ODE) consists of a set of stackable boards and a modular open SW environment designed around the STM32 microcontroller family. STM32Cube development software STM32 Nucleo expansion boards (X-NUCLEO) STM32 Nucleo development boards STM32Cube expansion software (X-CUBE) Function Packs (FP) www.st.com/stm32ode

STM32 Nucleo Development Boards (NUCLEO) 16 A comprehensive range of affordable development boards for all the STM32 microcontroller series, with unlimited unified expansion capabilities and integrated debugger/programmer functionality. Power supply through USB or external source STM32 microcontroller Integrated debugging and programming ST-LINK probe Complete product range from ultra-low power to high-performance ST morpho extension header Arduino UNO R3 extension headers www.st.com/stm32nucleo

STM32 Nucleo Expansion Boards (X-NUCLEO) 17 Boards with additional functionality that can be plugged directly on top of the STM32 Nucleo development board directly or stacked on another expansion board. Connect Power Move/Actuate Interact Sense Motion MEMS sensors Environmental sensors DIL24 support for new devices Example of STM32 expansion board (X-NUCLEO-IKS01A1) www.st.com/x-nucleo

STM32 Open Development Environment Software components 18 STM32Cube software (CUBE) - A set of free tools and embedded software bricks to enable fast and easy development on the STM32, including a Hardware Abstraction Layer and middleware bricks. STM32Cube expansion software (X-CUBE) - Expansion software provided free for use with the STM32 Nucleo expansion board and fully compatible with the STM32Cube software framework. It provides abstracted access to expansion board functionality through high-level APIs and sample applications. Tools & IDEs Applications Middleware Hardware Abstraction Hardware IAREWARM,Keil MDK-ARM, GCC-based IDEs (e.g. Ac6 System Workbench for STM32) Sample applications STM32Cube middleware Application examples (e.g. based on STOpenSoftwareX) Upper level middleware (e.g. ST OpenSoftwareX) STM32Cubeexpansion middleware STM32CubeHardware Abstraction Layer (HAL) STM32 Nucleo expansion boards (X-NUCLEO) STM32 Nucleo developer boards Compatibility with multiple Development Environments - The STM32 Open Development Environment is compatible with a number of IDEs including IAR EWARM, Keil MDK, and GCC-based environments. Users can choose from three IDEs from leading vendors, which are free of charge and deployed in close cooperation with ST. These include Eclipse-based IDEs such as Ac6 System Workbench for STM32 and the MDK-ARM environment. OPEN LICENSE MODELS: STM32Cube software and sample applications are covered by a mix of fully open source BSD license and ST licenses with very permissive terms. www.st.com/stm32cube www.st.com/x-cube

STM32 Open Development Environment Building block approach 19 The building blocks Your need Our answer Accelerometer, gyroscope Inertial modules, magnetometer Pressure, temperature, humidity Proximity, microphone Sense COLLECT Bluetooth LE, Sub-GHz radio NFC, Wi-Fi, GNSS Connect TRANSMIT Audio amplifier Touch controller Operation Amplifier Translate ACCESS Stepper motor driver DC & BLDC motor driver Industrial input / output Move / Actuate CREATE Energy management & battery Power POWER General-purpose microcontrollers Secure microcontrollers Process PROCESS Software www.st.com/stm32ode