I would like to graph multiple I/O on my Arduino project.
What i want to achieve is a line graph that will show:
Water Level (%)
vs
Pump Status (on/off)
I currently have this data output to the serial monitor. I would like the graph to update in real time but also show a historical plot. I have found the Serial Plotter but it does not do what i want to achieve only showing my water level and not when the pump on/off.
I was wondering if anyone had some suggestions on possible ways i could go about achieving this.
Would i need to create a GUI? or interface with some software? or is there ready made solutions for this?
The Arduino IDE does have the Tools > Serial Plotter feature. You can't do Water Level (%) vs Pump Status (on/off), but I don't think that makes sense anyway. What you can do is Water Level (%) and Pump Status (on/off) vs Time.
pert:
The Arduino IDE does have the Tools > Serial Plotter feature. You can't do Water Level (%) vs Pump Status (on/off), but I don't think that makes sense anyway. What you can do is Water Level (%) and Pump Status (on/off) vs Time.
Thats what i meant. I havnt been able to get it to work though while the pump('s) change state 0->1 1->0 the line on the graph stays constant.
jremington:
Many of us use the PLXDAQ macro to interface Arduino directly with Excel, through the serial port.
Works very well, and you can add a time stamp to the incoming data, which is extremely useful.
This looks ideal
TomGeorge:
Hi,
You can make your own GUI using, Processing.
mtom1991:
Thats what i meant. I havnt been able to get it to work though while the pump('s) change state 0->1 1->0 the line on the graph stays constant.
It sounds like you're going with another solution but if you do decide you want to try to get Serial Plotter working, post your code and we should be able to help you.
Serial Plotter is far from ideal but it is convenient since it comes with the Arduino IDE.