Individální projekty MPOA

Mikroprocesory s architekturou ARM

Uživatelské nástroje

Nástroje pro tento web


gpoa2019:tilt-sensing

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
gpoa2019:tilt-sensing [2019/05/01 20:18]
Jiří Křivák
gpoa2019:tilt-sensing [2019/05/02 07:45] (aktuální)
Jiří Křivák [Summary]
Řádek 14: Řádek 14:
  
 For the project, we selected Development Board from STMicroelectronics STM32F4 - Discovery For the project, we selected Development Board from STMicroelectronics STM32F4 - Discovery
 +{{ :​gpoa2019:​capture3.png?​400| STM32F4-Discovery Board}}
  
 === KEY FEATURES === === KEY FEATURES ===
Řádek 28: Řádek 29:
   * USB OTG FS with micro-AB connector   * USB OTG FS with micro-AB connector
   * Comprehensive free software including a variety of examples, part of STM32CubeF4 package or STSW-STM32068 to use legacy standard libraries.   * Comprehensive free software including a variety of examples, part of STM32CubeF4 package or STSW-STM32068 to use legacy standard libraries.
 +
 +{{:​gpoa2019:​capture1.png?​400| Discovery Board Topl}}
  
 ====== Implementation====== ====== Implementation======
Řádek 35: Řádek 38:
 We also used ARM GCC Libraries: stdio.h, stdlib.h, math.h We also used ARM GCC Libraries: stdio.h, stdlib.h, math.h
 The app was designed for Em::Bitz and its integrated ARM GCC Compiler. The app was designed for Em::Bitz and its integrated ARM GCC Compiler.
-Because we use function Printf with floats we need to give the GCC compiler flag that tells it that floats are used for string formatting we also use mathematical library math.h, so we need to give the linker flag to include mathematical libraries.+Because we use function Printf with floatswe need to give the GCC compiler flag that tells it that floats are used for string formatting we also use mathematical library math.h, so we need to provide ​the linker flag to include mathematical libraries.
 GCC Compiler Flag: -u _printf_float ​ GCC Compiler Flag: -u _printf_float ​
 Linker Flag: -lm Linker Flag: -lm
  
 +{{ :​gpoa2019:​unnamed0.png?​400 | Block diagram of the program implementation}}
  
 ===== USB Virtual Com Port and communication ===== ===== USB Virtual Com Port and communication =====
Řádek 64: Řádek 68:
   Psi   = atan(z / sqrt(y^2+x^2) ) ;   Psi   = atan(z / sqrt(y^2+x^2) ) ;
  We get the values of Phi,​Theta,​Psi in radians that are used for derrotation of XYZ.   We get the values of Phi,​Theta,​Psi in radians that are used for derrotation of XYZ. 
- These values were calculated using MatLab and the script is not implemented inside the ST32F4-Discovery boards'​ Firmware.+ These values were calculated using MatLaband the script is not implemented inside the ST32F4-Discovery boards'​ Firmware.
  
 ===== Derotation ===== ===== Derotation =====
Řádek 113: Řádek 117:
  
 https://​github.com/​cerberuspower/​GPOA_Project https://​github.com/​cerberuspower/​GPOA_Project
 +===== VCP Driver =====
 +
 +{{ :​gpoa2019:​en.stsw-stm32102.zip |STMicroelectronics USB VCP}}
 +
  
  
 ====== Summary ====== ====== Summary ======
 +The board senses active Roll and Pitch related to the reference plane which is parrarel to the ground plane.
 ==== Problem with unstable reference plane ==== ==== Problem with unstable reference plane ====
 In the implementation,​ there was a problem that when the reference plane lies parallel to the ground, there are unstable values of the XYZ values from the accelerometer. This results in instability of reference plane. One possible solution for this is to use a different reference plane. In the implementation,​ there was a problem that when the reference plane lies parallel to the ground, there are unstable values of the XYZ values from the accelerometer. This results in instability of reference plane. One possible solution for this is to use a different reference plane.
 +
 +==== Video ====
 +{{youtube>​fNs9JOP4SWY?​medium}}
 +----
 + --- //​[[xkriva25@stud.feec.vutbr.cz|Jiří Křivák]] 2019/05/01 21:46//
  
  
Řádek 126: Řádek 140:
   * https://​www.st.com/​ja/​evaluation-tools/​stm32f4discovery.html   * https://​www.st.com/​ja/​evaluation-tools/​stm32f4discovery.html
   * http://​www.embitz.org/​ - Ide Used   * http://​www.embitz.org/​ - Ide Used
 +  * https://​www.st.com/​content/​ccc/​resource/​technical/​document/​user_manual/​70/​fe/​4a/​3f/​e7/​e1/​4f/​7d/​DM00039084.pdf/​files/​DM00039084.pdf/​jcr:​content/​translations/​en.DM00039084.pdf - STM32F4-Discovery Datasheet
  
gpoa2019/tilt-sensing.1556734725.txt.gz · Poslední úprava: 2019/05/01 20:18 autor: Jiří Křivák