displaying the int to a time(x axis)

Sangjin Joo's icon

Hi, I'm working on a project that involves EEG sensor, and I kinda got stuck while dealing with displaying the signal.
Currently I am receiving a EEG signal through an arduino UNO at 115200, and the numbers range from around 200 to 500. I scaled the number to 0 ~ 100.
My main problem is that I want to chk the serials into some plotter that arduino has. and I started chking out IMUBU and it didn't work quite well for me.
So question in short : Is there a object that I can simply input the int and display my serial signals in real time x-axis?

This is my patch so far
{
    "patcher" :     {
        "fileversion" : 1,
        "appversion" :         {
            "major" : 8,
            "minor" : 1,
            "revision" : 0,
            "architecture" : "x64",
            "modernui" : 1
        }
,
        "classnamespace" : "box",
        "rect" : [ 34.0, 77.0, 1452.0, 929.0 ],
        "bglocked" : 0,
        "openinpresentation" : 0,
        "default_fontsize" : 12.0,
        "default_fontface" : 0,
        "default_fontname" : "Arial",
        "gridonopen" : 1,
        "gridsize" : [ 15.0, 15.0 ],
        "gridsnaponopen" : 1,
        "objectsnaponopen" : 1,
        "statusbarvisible" : 2,
        "toolbarvisible" : 1,
        "lefttoolbarpinned" : 0,
        "toptoolbarpinned" : 0,
        "righttoolbarpinned" : 0,
        "bottomtoolbarpinned" : 0,
        "toolbars_unpinned_last_save" : 0,
        "tallnewobj" : 0,
        "boxanimatetime" : 200,
        "enablehscroll" : 1,
        "enablevscroll" : 1,
        "devicewidth" : 0.0,
        "description" : "",
        "digest" : "",
        "tags" : "",
        "style" : "",
        "subpatcher_template" : "",
        "boxes" : [             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-221",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 951.029408931732178, 648.5, 183.0, 23.0 ],
                    "text" : "4 128, range 0 10, drawstyle 1"
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-222",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 2,
                    "outlettype" : [ "signal", "signal" ],
                    "patching_rect" : [ 926.029408931732178, 607.0, 89.5, 23.0 ],
                    "text" : "cartopol~"
                }

            }
,             {
                "box" :                 {
                    "calccount" : 4,
                    "drawstyle" : 1,
                    "id" : "obj-223",
                    "maxclass" : "scope~",
                    "numinlets" : 2,
                    "numoutlets" : 0,
                    "patching_rect" : [ 926.029408931732178, 704.5, 447.0, 59.0 ],
                    "range" : [ 0.0, 10.0 ]
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 12.0,
                    "id" : "obj-215",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 3,
                    "outlettype" : [ "signal", "signal", "signal" ],
                    "patching_rect" : [ 926.029408931732178, 573.580211043357849, 85.0, 22.0 ],
                    "text" : "ifft~ 512 512 0"
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-30",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 577.0, 584.5, 81.0, 23.0 ],
                    "text" : "phasor~ 400"
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-198",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "signal" ],
                    "patching_rect" : [ 718.0, 704.5, 50.0, 23.0 ],
                    "text" : "/~ 512."
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-199",
                    "linecount" : 2,
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 595.0, 736.5, 103.0, 38.0 ],
                    "presentation_linecount" : 2,
                    "text" : "4 128, range 0 10, drawstyle 1"
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-200",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 2,
                    "outlettype" : [ "signal", "signal" ],
                    "patching_rect" : [ 577.0, 704.5, 89.5, 23.0 ],
                    "text" : "cartopol~"
                }

            }
,             {
                "box" :                 {
                    "calccount" : 4,
                    "drawstyle" : 1,
                    "id" : "obj-201",
                    "maxclass" : "scope~",
                    "numinlets" : 2,
                    "numoutlets" : 0,
                    "patching_rect" : [ 577.0, 785.5, 447.0, 59.0 ],
                    "range" : [ 0.0, 10.0 ]
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-29",
                    "maxclass" : "newobj",
                    "numinlets" : 2,
                    "numoutlets" : 3,
                    "outlettype" : [ "signal", "signal", "signal" ],
                    "patching_rect" : [ 577.0, 624.5, 103.0, 23.0 ],
                    "text" : "fft~ 1000 1000 0"
                }

            }
,             {
                "box" :                 {
                    "calccount" : 16,
                    "id" : "obj-41",
                    "maxclass" : "scope~",
                    "numinlets" : 2,
                    "numoutlets" : 0,
                    "patching_rect" : [ 717.0, 730.5, 100.0, 50.0 ],
                    "range" : [ 0.0, 1.0 ]
                }

            }
,             {
                "box" :                 {
                    "fontname" : "Arial",
                    "fontsize" : 13.0,
                    "id" : "obj-42",
                    "maxclass" : "message",
                    "numinlets" : 2,
                    "numoutlets" : 1,
                    "outlettype" : [ "" ],
                    "patching_rect" : [ 778.0, 704.5, 113.0, 23.0 ],
                    "text" : "16 128, range 0 1"
                }

            }
,             {
                "box" :                 {
                    "id" : "obj-196",
                    "maxclass" : "newobj",
                    "numinlets" : 1,
                    "numoutlets" : 3,
                    "outlettype" : [ "", "", "" ],
                    "patching_rect" : [ 381.5, 40.0, 522.0, 22.0 ],
                    "text" : "mubu.t

Untitled1.maxpat
text/plain 36.01 KB

Bochneg Zhong's icon

Hi SANGJIN, did you find a solution?

TFL's icon

multislider in point scroll mode?

Max Patch
Copy patch and select New From Clipboard in Max.