Important: Please read the Qt Code of Conduct -

Plot real time signal from Arduino to QCustomPlot

  • Hi,

    I am doing a project that I would like to catch the signal from Arduino when buzzer being touched and plot the real time signal on Qt QCustomPlot. My Arduino Code :

    #define Buzzer_Pin 8
    void setup() {
      pinMode(Buzzer_Pin, INPUT);
    void loop() {

    I already know how to connect the Qt to Arduino but I don't know how to write the code to make Qt widget plot buzzer signal.
    My buzzer signal in Serial plotter is:

    Could you guys give me some example to show how to write the code in the widget to show the plot like Serial Plotter in Arduino?

    Thank you guys:)

Log in to reply