Unsolved 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() { Serial.begin(9600); pinMode(Buzzer_Pin, INPUT); } void loop() { Serial.println(digitalRead(Buzzer_Pin)); }
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:
http://imgur.com/a/P9Xb8Could 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:)