Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Plot real time signal from Arduino to QCustomPlot
Qt 6.11 is out! See what's new in the release blog

Plot real time signal from Arduino to QCustomPlot

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 800 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Macive XiongM Offline
    Macive XiongM Offline
    Macive Xiong
    wrote on last edited by
    #1

    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/P9Xb8

    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:)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved