Friday, November 16, 2012

Max/MSP with Arduino: Multiplexing 8 inputs using 4051

Hi guys,
This post explains about interfacing Max/MSP with multiplexer 4051 using Arduino. Following is the patch code. Just copy and paste in Max window. It will automatically generate the block diagram. You will need Maxuino Patch for Arduino. And follow the comments shown in the block diagram patch.

CODE:
{
 "boxes" : [   {
   "box" :    {
    "maxclass" : "comment",
    "text" : "conncet the actions to be performed. Like If you are making Pizo Drum, Create bang object to each of these output followed by a togedge object. And then make a patch with different sound of drum set like kick, Snare, Cymbal, Tom, etc... And trigger them from here.",
    "linecount" : 4,
    "fontsize" : 12.0,
    "patching_rect" : [ 395.0, 318.0, 453.0, 62.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 0,
    "id" : "obj-36"
   }

  }
,   {
   "box" :    {
    "maxclass" : "comment",
    "text" : "The Output of 4051 is connected to Analog pin of arduino that is A0. So from Maxduino Patch connect the output of analog pin A0 to the input of float number shown below.",
    "linecount" : 4,
    "fontsize" : 12.0,
    "patching_rect" : [ 216.0, 17.0, 242.0, 62.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 0,
    "id" : "obj-2"
   }

  }
,   {
   "box" :    {
    "maxclass" : "comment",
    "text" : "Connect these three LED to Arduino Patch having digital input pin 2,3,4. Connect these 2,3,4 Pin to the selection pin of 4051 Multiplexer. The Input of multiplexrs are 8 analog inputs may be coming from Pizos or Potentiomener.",
    "linecount" : 6,
    "fontsize" : 12.0,
    "patching_rect" : [ 98.0, 263.0, 232.0, 89.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 0,
    "id" : "obj-1"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "s num",
    "fontsize" : 12.0,
    "patching_rect" : [ 18.0, 269.0, 43.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 0,
    "id" : "obj-55"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 18.0, 241.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-54"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 829.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-52"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 767.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-50"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 427.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-48"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 489.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-46"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 700.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-44"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 623.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-42"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 547.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-40"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 358.0, 292.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-38"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "r anlg",
    "outlettype" : [ "" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 590.0, 189.0, 41.0, 20.0 ],
    "numinlets" : 0,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-35"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 489.0, 248.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-34"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 824.0, 242.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-33"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 764.0, 245.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-32"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 699.0, 245.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-31"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 624.0, 248.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-30"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 548.0, 248.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-29"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 429.0, 248.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-28"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "*",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 358.0, 248.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-27"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "s anlg",
    "fontsize" : 12.0,
    "patching_rect" : [ 291.0, 120.0, 43.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 0,
    "id" : "obj-26"
   }

  }
,   {
   "box" :    {
    "maxclass" : "flonum",
    "outlettype" : [ "float", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 291.0, 84.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-25"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 7.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 792.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-23"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 6.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 735.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-22"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 5.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 680.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-21"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 4.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 622.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-20"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 3.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 563.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-19"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 2.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 502.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-18"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 1.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 443.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-17"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "== 0.",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 387.0, 123.0, 38.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-16"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "r num",
    "outlettype" : [ "" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 590.0, 62.0, 41.0, 20.0 ],
    "numinlets" : 0,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-15"
   }

  }
,   {
   "box" :    {
    "maxclass" : "led",
    "outlettype" : [ "int" ],
    "patching_rect" : [ 231.0, 229.0, 20.0, 20.0 ],
    "numinlets" : 1,
    "numoutlets" : 1,
    "id" : "obj-13"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "% 2",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 231.0, 196.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-12"
   }

  }
,   {
   "box" :    {
    "maxclass" : "led",
    "outlettype" : [ "int" ],
    "patching_rect" : [ 188.0, 228.0, 20.0, 20.0 ],
    "numinlets" : 1,
    "numoutlets" : 1,
    "id" : "obj-11"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "% 2",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 188.0, 196.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-10"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "/ 2",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 188.0, 167.0, 32.5, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-9"
   }

  }
,   {
   "box" :    {
    "maxclass" : "led",
    "outlettype" : [ "int" ],
    "patching_rect" : [ 145.0, 228.0, 20.0, 20.0 ],
    "numinlets" : 1,
    "numoutlets" : 1,
    "id" : "obj-8"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : ">= 4",
    "outlettype" : [ "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 144.0, 195.0, 35.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-7"
   }

  }
,   {
   "box" :    {
    "maxclass" : "number",
    "outlettype" : [ "int", "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 19.0, 204.0, 50.0, 20.0 ],
    "numinlets" : 1,
    "fontname" : "Arial",
    "numoutlets" : 2,
    "id" : "obj-6"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "counter 0 0 7",
    "outlettype" : [ "int", "", "", "int" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 74.0, 95.0, 81.0, 20.0 ],
    "numinlets" : 5,
    "fontname" : "Arial",
    "numoutlets" : 4,
    "id" : "obj-5"
   }

  }
,   {
   "box" :    {
    "maxclass" : "newobj",
    "text" : "metro 100",
    "outlettype" : [ "bang" ],
    "fontsize" : 12.0,
    "patching_rect" : [ 74.0, 66.0, 65.0, 20.0 ],
    "numinlets" : 2,
    "fontname" : "Arial",
    "numoutlets" : 1,
    "id" : "obj-4"
   }

  }
,   {
   "box" :    {
    "maxclass" : "toggle",
    "outlettype" : [ "int" ],
    "patching_rect" : [ 74.0, 34.0, 20.0, 20.0 ],
    "numinlets" : 1,
    "numoutlets" : 1,
    "id" : "obj-3"
   }

  }
 ],
 "lines" : [   {
   "patchline" :    {
    "source" : [ "obj-5", 0 ],
    "destination" : [ "obj-6", 0 ],
    "hidden" : 0,
    "midpoints" : [ 83.5, 159.0, 28.5, 159.0 ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-5", 0 ],
    "destination" : [ "obj-7", 0 ],
    "hidden" : 0,
    "midpoints" : [ 83.5, 155.0, 153.5, 155.0 ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-7", 0 ],
    "destination" : [ "obj-8", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-9", 0 ],
    "destination" : [ "obj-10", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-5", 0 ],
    "destination" : [ "obj-9", 0 ],
    "hidden" : 0,
    "midpoints" : [ 83.5, 141.0, 197.5, 141.0 ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-10", 0 ],
    "destination" : [ "obj-11", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-5", 0 ],
    "destination" : [ "obj-12", 0 ],
    "hidden" : 0,
    "midpoints" : [ 83.5, 132.5, 240.5, 132.5 ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-12", 0 ],
    "destination" : [ "obj-13", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-25", 0 ],
    "destination" : [ "obj-26", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-29", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-30", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-33", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-34", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-28", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-31", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-32", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-28", 0 ],
    "destination" : [ "obj-48", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-34", 0 ],
    "destination" : [ "obj-46", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-29", 0 ],
    "destination" : [ "obj-40", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-30", 0 ],
    "destination" : [ "obj-42", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-31", 0 ],
    "destination" : [ "obj-44", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-32", 0 ],
    "destination" : [ "obj-50", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-33", 0 ],
    "destination" : [ "obj-52", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-16", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-17", 0 ],
    "destination" : [ "obj-28", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-17", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-18", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-18", 0 ],
    "destination" : [ "obj-34", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-19", 0 ],
    "destination" : [ "obj-29", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-19", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-20", 0 ],
    "destination" : [ "obj-30", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-20", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-21", 0 ],
    "destination" : [ "obj-31", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-21", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-22", 0 ],
    "destination" : [ "obj-32", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-22", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-23", 0 ],
    "destination" : [ "obj-33", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-15", 0 ],
    "destination" : [ "obj-23", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-6", 0 ],
    "destination" : [ "obj-54", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-54", 0 ],
    "destination" : [ "obj-55", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-35", 0 ],
    "destination" : [ "obj-27", 1 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-27", 0 ],
    "destination" : [ "obj-38", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-16", 0 ],
    "destination" : [ "obj-27", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-3", 0 ],
    "destination" : [ "obj-4", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
,   {
   "patchline" :    {
    "source" : [ "obj-4", 0 ],
    "destination" : [ "obj-5", 0 ],
    "hidden" : 0,
    "midpoints" : [  ]
   }

  }
 ]
}


Tuesday, November 6, 2012

Arduino: LED blinking with variable speed


Hello guys,
Today we are going to make an Arduino project. This project was done in 4th semester by me and my friend, Sagar. Well, his name is also Sagar and mine too!!! 
Let’s discuss about the project aim. We are going to make a circuit which contains 3 LED. And we will write an arduino sketch to control the speed of LED Blinking. Here, we are going to make LED blinking with variable the speed. That means, LED blinking process will initially start with slow speed, then it will increase the blinking speed. And, Then again it will slow down the speed... You will need Arduino Uno R3 for this project. If you don't have one, buy it from below link.
https://amzn.to/2QRr2IW

MATLAB: Analog QAM with Stereo Signals


Hello Guys,
I hope you are enjoying there. Today, I am having a lot of work esp. final projects for semester end. My college is off from next week due to Diwali Vacation. So, having a lot of work…
Anyway, I am taking some rest. So, wanna get back to MATLAB.
We are starting with DSB-SC scheme for modulation and demodulation. And then we will discuss Analog Qudrature Amplitude modulation scheme for sending two different signals at the same frequency band modulated with sinusoid carrier. For one signal to be modulated, we are using cosine and, for another is modulated by Sine. And we will also write a code in MATLAB to do the analysis.
Let’s look at the simple modulation scheme.