Skip to content
0:00 / 0:00

#egui#clap#serialport

Rust - building a UI to plot a sensor value in real time

Andrei Litvin

1.4K subscribers • 1 video on Hallway

YouTube

Intermediate. Assumes working knowledge.

49K views4 years ago3 recommendations

Graphics and audioHardwareRustEmbedded systemsData visualization

Andrei Litvin demonstrates how to build a real-time graphical plotting application in Rust using egui to visualize sensor data.

In a previous video I showed how to read data from a pulse sensor. That program would upload values to the terminal, however a graphical plot is much more useful for such sensor reads. This shows the steps for creating a realtime plotting up using: - EGUI for UI: github.com/emilk/egui - clap for simple argument parsing: github.com/clap-rs/clap Sample program available on github at github.com/andy31415/rs-value-plotter

Why it's here

3 people recommend this

What people say. Recommended as a practical tutorial for building desktop GUIs and plotting real-time serial data in Rust using egui.

Moments people linked to

u/Comfortable-Emu-7995in r/embedded • Recommends

Serial console oscilloscope I came across this video while trying to learn embedded Rust and it inspired me to make an egui application that I call a serial console oscilloscope. My application adds some functionality such as: * Built-in serial console to read/write to device * Multiple variable plotting * Drop down select/connect to serial device * Save data and raw logs It's got a fair amount of bugs still but worth checking out if you work with serial port data streams. Feedback is appreciated. If anyone has interest in helping and experience with the following I'd love to collaborate: * egui * serialport * polars https://github.com/shanemmattner/Serial\_Console\_Oscilloscope
13View on Reddit

u/avsaasein r/rust • Recommends

On “Realtime windows desktop plotting library”

This should be easy to do in egui. Here a video going over how to do this: link to this video

u/Snoo_27681in r/rust • Recommends

On “Any good tutorials for graphics programming with egui?”

I learned egui by YouTube and samples from egui.rs Here’s my favorite tutorial on egui: link to this video