This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is it possible to show speed on stm32

is it possible to show speed on STM32F407IGHx board by integrating the value which we get from onboard accelerometer ?

Parents
  • If you want a example to play with that uses the accelerators,

    There is a CMSIS-PACK for the MCBSTM32F400 called 'Demo'

    Open the Pack installer, C:\Keil_v5\uv4\PackInstaller.exe

    - On the top left of the window, select the "Boards" tab,
    - Below it for search, type "MCBSTM32F400" and press enter.
    - Select the board from the list below – on the right side of the dialog updates with Software Packs relevant to this device
    - For Packs, install the Keil:STM32f4xx_DFP pack (if necessary)
    - On the top right of the screen, select the yellow "Examples" tab.
    - On the "Demo (MCBSTM32F400)" row, click the "copy" button - a dialog pops up.
    - Pick a directory, click both the checkboxes, and press OK - a new Keil µVision session opens with the example.

    Demo.c, line 357 calls Accelerometer_GetState()

    =====

    On the http://www.keil.com/books/genbooks.asp page, take a look at the 'Numerical Recipes in C' book - it might help you.

    Or, google around

    electronics.stackexchange.com/.../implementing-differentiation-and-integration-in-a-digital-control-system

Reply
  • If you want a example to play with that uses the accelerators,

    There is a CMSIS-PACK for the MCBSTM32F400 called 'Demo'

    Open the Pack installer, C:\Keil_v5\uv4\PackInstaller.exe

    - On the top left of the window, select the "Boards" tab,
    - Below it for search, type "MCBSTM32F400" and press enter.
    - Select the board from the list below – on the right side of the dialog updates with Software Packs relevant to this device
    - For Packs, install the Keil:STM32f4xx_DFP pack (if necessary)
    - On the top right of the screen, select the yellow "Examples" tab.
    - On the "Demo (MCBSTM32F400)" row, click the "copy" button - a dialog pops up.
    - Pick a directory, click both the checkboxes, and press OK - a new Keil µVision session opens with the example.

    Demo.c, line 357 calls Accelerometer_GetState()

    =====

    On the http://www.keil.com/books/genbooks.asp page, take a look at the 'Numerical Recipes in C' book - it might help you.

    Or, google around

    electronics.stackexchange.com/.../implementing-differentiation-and-integration-in-a-digital-control-system

Children