X-CUBE-SPN11 for X-NUCLEO-IHM11M1: MC_SixStep_param.h File Reference

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

MC_SixStep_param.h File Reference

This header file provides all parameters to driver a motor with 6Step library. More...

Go to the source code of this file.

Macros

#define NUM_POLE_PAIRS   2
 
#define DIRECTION   0
 
#define TARGET_SPEED   4000
 
#define POTENTIOMETER   1
 
#define STARTUP_DUTY_CYCLE   600
 
#define STARTUP_CURRENT_REFERENCE   STARTUP_DUTY_CYCLE
 
#define ACC   1000000
 
#define MINIMUM_ACC   1000
 
#define NUMBER_OF_STEPS   20000
 
#define TIME_FOR_ALIGN   500
 
#define BUTTON_DELAY   1000
 
#define NUMBER_ZCR   12
 
#define SPEED_LOOP_TIME   1
 
#define KP_GAIN   500
 
#define KI_GAIN   50
 
#define KP_DIV   4096
 
#define KI_DIV   4096
 
#define LOWER_OUT_LIMIT   50
 
#define UPPER_OUT_LIMIT   800
 
#define MAX_POT_SPEED   20000
 
#define MIN_POT_SPEED   1700
 
#define VAL_POT_SPEED_DIV   2
 
#define INITIAL_DEMAGN_DELAY   10
 
#define BEMF_THRSLD_DOWN   200
 
#define BEMF_THRSLD_UP   200
 
#define FILTER_DEEP   20
 
#define HFBUFFERSIZE   10
 
#define ADC_SPEED_TH   82
 
#define BEMF_CONSEC_DOWN_MAX   10
 
#define BEMF_CNT_EVENT_MAX   100
 
#define GPIO_ZERO_CROSS   1
 
#define GPIO_COMM   1
 
#define DEMO_START_TIME   5000
 
#define DEMO_STOP_TIME   2000
 
#define DEMAGN_VAL_1   1
 
#define DEMAGN_VAL_2   2
 
#define DEMAGN_VAL_3   3
 
#define DEMAGN_VAL_4   4
 
#define DEMAGN_VAL_5   5
 
#define DEMAGN_VAL_6   6
 
#define DEMAGN_VAL_7   7
 
#define DEMAGN_VAL_8   8
 
#define DEMAGN_VAL_9   9
 
#define DEMAGN_VAL_10   10
 
#define DEMAGN_VAL_11   11
 
#define DEMAGN_VAL_12   12
 
#define DEMAGN_VAL_13   13
 
#define DEMAGN_VAL_14   14
 
#define TRUE   1
 
#define FALSE   0
 

Detailed Description

This header file provides all parameters to driver a motor with 6Step library.

Author
Version
V0
Date
10/07/2016
Attention

© COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file MC_SixStep_param.h.

Generated by   doxygen 1.8.11