{"id":1718,"date":"2017-02-04T19:22:52","date_gmt":"2017-02-04T18:22:52","guid":{"rendered":"https:\/\/www.turborebop.net\/?p=1718"},"modified":"2025-01-23T21:44:26","modified_gmt":"2025-01-23T20:44:26","slug":"cirkulino-4","status":"publish","type":"post","link":"https:\/\/www.turborebop.net\/?p=1718","title":{"rendered":"Cirkulino 4"},"content":{"rendered":"<h3>Cirkulino 4 is <span style=\"font-size: 1rem;\">a midi sequencer based on Arduino UNO R3 development board. It is an advancement from previous ones &#8211; and is final. The pcb&#8217;s were ordered to be made to professional standards.<\/span><\/h3>\n<p>A double boot option for arduino was found &#8211; to launch it as a native midi device -&gt; <a href=\"https:\/\/diyelectromusic.com\/2022\/03\/22\/arduino-and-usb-midi\/\" target=\"_blank\" rel=\"noopener\">https:\/\/diyelectromusic.com\/2022\/03\/22\/arduino-and-usb-midi\/<\/a><\/p>\n<p><a href=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-scaled.jpg\" class=\"thickbox no_icon\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1721\" src=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-169x300.jpg 169w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-576x1024.jpg 576w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-768x1365.jpg 768w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-864x1536.jpg 864w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-1152x2048.jpg 1152w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182729-02-scaled.jpg 1440w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a> <a href=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-scaled.jpg\" class=\"thickbox no_icon\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1722\" src=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-169x300.jpg 169w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-576x1024.jpg 576w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-768x1365.jpg 768w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-864x1536.jpg 864w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-1152x2048.jpg 1152w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182835-05-scaled.jpg 1440w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/> <\/a><a href=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-scaled.jpg\" class=\"thickbox no_icon\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1720\" src=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-169x300.jpg 169w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-576x1024.jpg 576w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-768x1365.jpg 768w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-864x1536.jpg 864w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-1152x2048.jpg 1152w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG_20241001_182906-01-scaled.jpg 1440w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><a href=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005.jpg\" class=\"thickbox no_icon\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1728 \" src=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005-1024x512.jpg\" alt=\"\" width=\"521\" height=\"261\" srcset=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005-1024x512.jpg 1024w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005-300x150.jpg 300w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005-768x384.jpg 768w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005-1536x768.jpg 1536w, https:\/\/www.turborebop.net\/wp-content\/uploads\/2017\/02\/IMG-20240803-WA0005.jpg 2000w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/a><\/p>\n<p><strong>mocoLUFA <\/strong>MIDI firmware for Arduino Uno -&gt; <a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/midi-firmware-for-arduino-uno-moco\/?lang=en\" target=\"_blank\" rel=\"noopener\">http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/aruino\/midi-firmware-for-arduino-uno-moco\/?lang=en<\/a><\/p>\n<p>This is dual mode firmware for Arduino Uno with 16u2 Midi Serial interface chip. There are two modes in this firmware: USB-MIDI(MocoLUFA) and Arduino-Serial.<br \/>\nINSTRUCTIONS:<br \/>\n&#8211; Burn 16u2 on Arduino Uno (check original document) &#8211; Windows -&gt; Atmel Flip<br \/>\n&#8211; USB-MIDI formware works as default<br \/>\n&#8211; To enable Arduino-Serial, add jumper to PIN 4(MOSI PB2) and PIN6 (grand) on ICSP connector of 16U2<br \/>\n&#8211; Reset is required to switch the firmware mode<\/p>\n<p>DESCRIPTION:<\/p>\n<p>NEW CIRKULINO SERIES: version 4 &#8211; chinese board<br \/>\n&#8211; smd 4051 on 8 pins used as IO switches -&gt; switch=input \/ led=output<br \/>\n&#8211; only for 5V 16Mhz atmega 328 based boards: ARDUINO UNO R3<br \/>\n&#8211; 8 LEDs \/ 3 segments &#8211; segments of 8 steps programmable via switches<br \/>\n&#8211; default step programming is for both segments on midi channel 1 &#8211; the basic usage layer -&gt; 8 steps<br \/>\n&#8211; variations of this via two top buttons for two midi channels and via two bottom buttons for three segments (1st segment: left button, 2nd segment: right button; 3rd segment: both buttons<br \/>\n&#8211; stop\/ reset button: brief push = reset sequence<br \/>\n&#8211; stop\/ reset button for pause=stop: longer push; also selective stop for a single midi channel: a combined push of one of the two midi channel buttons + stop\/ reset button<br \/>\n&#8211; mode button for forward, backward and palindrome (forth and back)- ping pong<br \/>\n&#8211; selective emptying of the single segment: selected segment switch + mode button<\/p>\n<p>ROTARY ENCODER:<\/p>\n<p>&#8211; rotary encoder with switch<br \/>\n&#8211; basic function: clock speed change<br \/>\n&#8211; to set some options use rotary switch to enter this state<br \/>\n&#8211; basic mode: sequencer mode: eight led switches select eight basic steps &#8211; over three segments<br \/>\n&#8211; melodic mode: eight led switches select eight notes to be used<br \/>\n&#8211; tonality select mode: eight led switches to select one of eight tonalities<\/p>\n<p>IO pins:<\/p>\n<p>&#8211; 10K-22K resistor in series with switches limits the load on pin when in output mode<br \/>\n&#8211; normally as output to drive LED<br \/>\n&#8211; additional Si diode in series with LED adds 0.7V to about 3V threshold LED &#8211; to have high level for reading (high for arduino UNO at 5V is around 3V)<br \/>\n&#8211; reading the switches is done in each loop very briefly:<br \/>\n+ switch to input, pull up internal resistor, read the state<br \/>\n+ turn off the internal pull up, switch pin back to output<\/p>\n<p>MULTIPLEXER:<\/p>\n<p>&#8211; analog multiplexer HCF4051 to read 8 switches and send to the LEDs the individual pwm values<br \/>\n&#8211; multiplexer combines readings (digitalRead()) and writings (analogWrite()) on digital pin (LED_PWM)<br \/>\n&#8211; multiplexer switched channel on-resistance is around 60 to 125 ohms &#8211; LED limiting resistor not needed<br \/>\n&#8211; read switches through multiplexer: internal pullup resistor on pin LED_PWM (20Kohms) pulls input to high<br \/>\n&#8211; resistor 10-22Kohms from switch to ground is current limiter when switch pushed and pin is set to write<br \/>\n&#8211; white, blue or pink LEDs because of the 3.4 to 3.6V threshold &#8211; high luminiscence LEDs needed\u00a0 because of high speed scanning<br \/>\n&#8211; additional Si diode on common cathode of all circle LEDs going to the ground &#8211; to work on laptops (lower USB 5V psu?)<br \/>\n&#8211; potentiometers: analogRead makes problems if slider on top &#8211; voltage equals Vcc!? Does not return values! Put a diode or 1K ohms resistor there<br \/>\n&#8211; or use only two terminals of 100K to 1Mohms potentiometers -&gt; define internal pullup 20K resistors on analog inputs<\/p>\n<p>OUTPUTS:<\/p>\n<p>&#8211; USB-MIDI with mocoLUFA (MIDI firmware for Arduino Uno 16u2 chip &#8211; set baudrate to 31250 Hz ) is main data output<\/p>\n<p>OTHER<\/p>\n<p>&#8211; with two pots at the bottom set transposition of notes on two channels<br \/>\n&#8211; with two pots above set progressive variations of:<br \/>\n&#8211; notes and predefined scales<br \/>\n&#8211; steps and predefined rhythmic patterns?<\/p>\n<p>Concept view at Ljubljana Mini Maker Faire 2017: <a href=\"https:\/\/www.turborebop.net\/wp-content\/uploads\/2019\/05\/Cirkulino_print.pdf\">Cirkulino_print<\/a><\/p>\n<p>The previous versions&#8230;<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"V9m4nuJVgS\"><p><a href=\"https:\/\/www.turborebop.net\/?p=154\">Cirkulino<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Cirkulino&#8221; &#8212; T U R B O R E B O P\" src=\"https:\/\/www.turborebop.net\/?p=154&#038;embed=true#?secret=Fwf73Nkbb7#?secret=V9m4nuJVgS\" data-secret=\"V9m4nuJVgS\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>&#8230; will continue<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cirkulino 4 is a midi sequencer based on Arduino UNO R3 development board. It is an advancement from previous ones &#8211; and is final. The pcb&#8217;s were ordered to be made to professional standards. <\/p>\n","protected":false},"author":1,"featured_media":1721,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,1,28,5,3],"tags":[16,40,42],"class_list":["post-1718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devices","category-archive","category-concepts","category-sound","category-tech","tag-arduino","tag-builds","tag-midi"],"_links":{"self":[{"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/posts\/1718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1718"}],"version-history":[{"count":3,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions"}],"predecessor-version":[{"id":2586,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/posts\/1718\/revisions\/2586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=\/wp\/v2\/media\/1721"}],"wp:attachment":[{"href":"https:\/\/www.turborebop.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.turborebop.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}