Which library? for simple GUI programming, need to use it with Arduino

Hi,

Could someone please inform which library should I use?

Need - want to create a simple GUI for the data captured from Arduino. Want to reflect changes in the data, and may also display data. Former alone is also enough for now. Required GUI example - split the display in n rectangular parts, change any single part as may be required, based on data capture. Change example - display the data in that part, or change background color, or change text color(for some default text), any other advice is also welcome.

Thanks and wishes.

1 Like

your description sounds very theoretical,

also the approach with a grid part would be better understandable
if we know what you want to do / what data you have / need to visualize.
but rectangles with changing text and color… in grid form are
easy
up to rect buttons:
means rects show data, and
with a button function, on click can show more , details…


actually there might be no need to use a library to show some data,

  • first get the arduino processing communication going
  • design a good way of data transport, i love text lines what look like CVS

1,1023,1023,

  • store the data to int or float arrays
  • println(data); it to console
  • print it to canvas with text(data,x,y);
  • organize it as array of text lines…

for graphic elements like GRAPH can start with easy line graphs from the data array
but also could later
use meter
GitHub - BillKujawa/meter: Display values in an analog style meter. ,
or grafica lib…
Grafica library - jagracar ,

here is a short beginner info
http://kll.engineering-news.org/kllfusion01/articles.php?article_id=92#example3
appended to the real SCOPE show ( you should ignore for now )
where you see already a simple plot function for a running 2 line graph.

1 Like

Thank you, kII! Shall try something based on what you suggested.

1 Like

Will the GUI code be running on the Arduino, or on a laptop/desktop Processing sketch that is communicating with the Arduino?

If on the Arduino, what is the connected display?

Hi Jeremy,

Display is to be shown on a computer to which the Arduino is connected. Data is coming continuously from the Arduino. Some of that data needs to be selected, used or processed. Display has to be changed based on that processing… We have freedom to choose the rest - GUI on Arduino or otherwise. Hope I understand you correctly.

Thanks.

1 Like

In that case, run your GUI on the computer in a computer-side Processing sketch, and any Processing GUI library will work – your Processing sketch received the data, and the GUI doesn’t need to be Arduino-specific. The two most common GUI libraries to use are ControlP5 and G4P – they each have advantages depending on what you want your GUI to do.

Thanks. Shall check and try!