cancel
Showing results for 
Search instead for 
Did you mean: 

How to display real-time sensor curves on TouchGFX (I2C communication)?

Rafla
Associate II

Hello everyone,

I’m working on a project using TouchGFX and I would like to know if it’s possible to display real-time curves (line graphs) that represent data coming from a sensor connected via I2C.

:small_blue_diamond: I’m using a microcontroller from the STM32 series.
:small_blue_diamond: The sensor communicates through I2C (temperature sensor).
:small_blue_diamond: I would like to visualize this data in graphical form (curves or charts) on the display using TouchGFX.

My main questions are:

  1. Is it possible to plot real-time curves or graphs using TouchGFX?

  2. Are there any built-in widgets or recommended methods to implement dynamic data plotting?

  3. What is the best way to send I2C data from the MCU to the TouchGFX GUI efficiently?

  4. Are there any examples or tutorials available?

Any suggestions, code examples, or documentation links would be very helpful!
Thanks in advance :folded_hands:

 

1 REPLY 1
mƎALLEm
ST Employee

Hello,

Please refer to the TouchGFX tutorial: Dynamic Graph

The temperature values need to be propagated from the hardware to the graphics in MVP model.

See also this video on ST Youtube channel.

Hope that helps.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.