[Extension] Dynamic graph. Shift left graph. Sinusoidal wave. Bluetooth

What happens when you repeat the valor2 as indicated in the image?


when i use DynamicGraph2 >> no issue except i have to kepp bith val1,val2 at same min/max . (my val1 max is 1000 while val2 max is 25) >> i have to map it to read it on graph but no lag issue.

  • when i use DynamicGraph3 with 2 variables as 2=3 or as 3 color 16774127 >> keeps freezing and lagging on/off .. (when i use 3 DIFFERENT variables ) i get same lag soi believe my cell is not up to 3 variables .. i wish your DynamicGraph2 extension has min/max as well instead to use extra DynamicGraph3 resources (3 var to plot 2) .. than you

fyi i am plotting ECG like - so Esp32 sents every 100 ms and mitapp clock at 75 ms

How does the ESP32 send the information, by classic Bluetooth, by BLE, by FireBase, by WiFi?

by classic Bluetooth
mit app: clock >> 120 ms

  • dynamic.graph resolution > 10 ms
    Bluetooth pooling rate >> 10 ms

  • esp32 to bluetooth 200 ms

Here an example with ESP32 and classic Bluetooth.

4.- ESP32 sends by classic Bluetooth, two random numbers to the app, they are displayed in a graph.

thank you ,
this is what i am at now already ..

  • Would you please create with only 2 variables with min/max

I have added the block with two graphics.

you are as awesome as usual ..
fyi , no lagging or cutting and pausing in my graph anymore with 2 var extension. be blessed :smiley:

your HELP is needed please.

  • to freeze the graph >> you said disable the clock .. ok ,, but to resume the graph again with diabled clock ! .. ? .. so would you please add a new control as KIO4_DynamicGraph1.PAUSE=true/false ..etc.
  • i need the clock to keep running all the time for other processes to keep running .. only graph need to be stopped while clock always running .. are you able please?

thank you so much ..

Set another Clock.

Hi, this is brilliant, but is there any way to plot the values of multiple potentiometers using Bluetooth?

That's very helpful thank you! I also have another question. I was hoping to find the peak value of the graph drawn, however, the get max value block seems to only print the upper range of the graph and not the peak of the graph produced. Is there a way to get the peak value? Thank you

If you want to get the maximum value returned, you should create a code for it. The MaxValue block displays the maximum value configured on the chart.

Here's how to capture max(y values) from a list of (x,y) pairs.

If you only save y values, just use the max in list block.


Thank you for replying. This looks like its an imported list however, and its picking out the larges value from pairs of values. I think I'm looking for something more dynamic as I am streaming in data. I wanted to compare the max value to the incoming value, so if the max value is smaller than the incoming streamed value then it would update to the new value, but if it is less, it would remain at the maximum value.

I was using the if/then blocks and managed to get the max value to update with the streamed in data, but I'm having trouble keeping the max value the same if the stream data is less than the max value (the max value increases and decreases with the streamed values).

Thank you


Say you want the running maximum of global Y.

Init a global maxY to hold it, initially some low number like 0.

Each time a new Y value arrives, set maxY to max(Y,maxY).

1 Like

Worked like a charm, thank you

Great Extension
Is it possible to add legend and value on the x-axis and on the y-axis ?