is it possible to show speed on STM32F407IGHx board by integrating the value which we get from onboard accelerometer ?
This has nothing to do with Keil, ARM, or STM32 - it's just basic physics!
Think about what speed is.
Think about what an accelerometer measures.
Do the maths!
you find acccelerometer measure changing of the speed. if you going to the same speed the acccelerometer will say zero. does you check keil for function?
I just wanted to know how to integrate acceleration effectively to get velocity at the same time minimizing error . The solution which i could find said to calculate average acceleration and integrate it to get average velocity. Also how to integrate gyro data with acclerometer data to reduce error?
Again, that's just basic maths - isn't it?
Think about how you would do it manually using pencil and paper, given a sequence of accelerometer readings. You just need to implement exactly the same process in code!
Nothing specific to Keil, ARM or STM32.
you is going to be difficult to measure speed with acccelerometer. pencil do not help! it always has guess. why you not use cheap gps module. is v acccurate.
I think you missed the point?
My point is that, if praksah manohara does not know how to do it manually, using pencil & paper, then clearly (s)he is not going to be able to implement it in any programming language.
You can't implement stuff when you don't know what you're trying to implement!
you only can measure speeed with acccelerometer if useing more infermation. use gps module. only cost <10$
GPS works poorly in buildings
... and a number of other situations.
Also tends to be quite power-hungry.
yes yes ..... but it better to the acccelerometer. lot good to the pencil!!!! what you say for suggest???????? NO GOOD SUGGEST!!!!
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
i could able to show acceleration as 9.8 m/s2 on lcd by using accelerometer. now i want to show velocity in numberical value by integrating the acceleration.