Skip to content

RichardBenes/MSM_STM32_PySide6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSM_STM32

MEMS chips used

MEMS chips present on the board:

  • L3GD20 — 3-axis gyroscope

  • LSM303C — compass + 3D accelerometer + 3D magnetometer

  • MP34DT01-M — MEMS microphone

Plan & Progress

Next step:

  • load program to L476

  • update used OpenOCD

Overal progress

  1. Create & run PySide6 skeleton app ✔

  2. Create & run STM32 skeleton app (read buttons & blink LEDs) ✔

  3. Send data over UART to PC ✔

    • Let’s just copy the code from BP, there’s no time for reading reference manuals now…​ well, there’s none. Let’s do it then. How long will it take?

  4. Read & show the data using PySide6 app

    • Read the serial data ✔

    • Learn how to show 3D surfaces in Matplotlib ✔

    • Tilt the shown surface 🐾

  5. Read data from the gyroscope

  6. Visualize the data (in any way) in the PySide6 app

  7. Create schematic for the project

  8. Find some good way of visualizing gyroscope data with Matplotlib, using 3D plots

Ideas & Wonderings

  • How to make QLabel background e.g. white? It’s something with stylesheets

  • Are CubeMX’s projects made for Make usable? Is Make usable on Windows (MSYS?) without WSL?

  • Are CubeIDE’s C++ projects usable?

  • What exactly are .d, .o, .su and .cyclo files? How can I read them?

  • What exactly is UART idle frame? Is it just "nothing happens" on the line for the duration of 1 frame?

  • What is the difference between stdint.h and stding-gcc.h?

  • const in C - what exactly does it mean? Especially in the context of pointers…​

  • PuTTY…​

    • Any good alternative to PuTTY?

    • Can PuTTY open in read-only mode?

    • Especially something I can easily disconnect and reconnect without closing the window

  • Let’s go through the various embeddable scripting language interpretters and asses their usability for STM32’s Cortex-M MCUs…​

  • Can I split file in Eclipse as I can in VS Code?

  • How can I easily, interactively and offline try out various printf() formattings in C? Jupyter?

  • What is the best way of integrating FreeRTOS? Do I have to use STM32CubeMX, or is there any more "freedom" way?

  • STM32CubeIDE offers a variety of debugging tools. What about familiarizing with them?

  • What about putting my perihperal drivers somewhere?

  • How can I "split" the data incoming into my PC’s serial port so that two apps could read them — eg. both PuTTY and the Python app?

About

Visualise MEMS data from STM32L476G-DISCO using PySide6 & Matplotlib.

Topics

Resources

Stars

Watchers

Forks

Languages