{"id":6453,"date":"2024-11-03T08:00:37","date_gmt":"2024-11-03T07:00:37","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=6453"},"modified":"2024-11-03T10:58:24","modified_gmt":"2024-11-03T09:58:24","slug":"the-lyrat-mini-board-is-supported-now-as-well","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/","title":{"rendered":"Arduino Support for the Lyrat Mini Board"},"content":{"rendered":"<p>I had some open issue, that the <a href=\"https:\/\/docs.espressif.com\/projects\/esp-adf\/en\/latest\/design-guide\/dev-boards\/get-started-esp32-lyrat-mini.html\"><strong>LyraT Mini Audio Board<\/strong><\/a> was not working with my <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\">AudioTools<\/a> and <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-driver\">AudioDrivers<\/a> library, so I was digging into this board a bit deeper.<\/p>\n<p>Here are the main two differences to the regular supported <strong>LyraT<\/strong> or <strong>AudioKit<\/strong> boards:<\/p>\n<ul>\n<li>It uses a <strong>ES8311 codec chip<\/strong> which supports only mono to manage the <strong>amplifer and aux output<\/strong>. My driver library was supporting this chip, so I had the audio output working quite quickly.<\/li>\n<li>You need to switch off the <strong>power amplifier<\/strong> if you want to use the headphones. Otherwise the output is highly distorted. See the output example how to do this.<\/li>\n<li>The <strong>input buttons<\/strong> needs to be determined with the help of an <strong>analogRead()<\/strong>: each pin has it&#8217;s specific value. This is a new concept, so I needed to extend the driver and audio tools library. Now I delegate the check if a button is pressed to the driver library, so that I can handle the different implementations between the different boards.<\/li>\n<li>The <strong>microphone<\/strong> was quite tricky: The <strong>ES7243<\/strong> codec chip is used on a separate I2S port to provide the microphone data. Please note that the <strong>ES8311 codec chip<\/strong> must be active as well! <\/li>\n<li>The SD is working via the <strong>SDMMC library<\/strong> that is included in the ESP32 Arduino in 1 bit mode: you need to make sure to <strong>set the power pin to low<\/strong>!<\/li>\n<\/ul>\n<h3>What&#8217;s not working<\/h3>\n<ul>\n<li>I did not manage to have the <strong>SD library<\/strong> working: I don&#8217;t quite understand what the issue is, because the pins are the same as with the LyraT and there it is working w\/o any issues. Any feed-back from you would be greatly appreciated!<\/li>\n<li>Since the microphone and audio output are on different I2S interfaces, it is not possible to use a single <strong>I2S in douplex mode<\/strong> to read and write audio data.<\/li>\n<\/ul>\n<h3>Arduino Sketches<\/h3>\n<p>Here is the link to the <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\/tree\/main\/examples\/examples-custom-boards\/lyrat-mini\">Arduino Sketches<\/a>, that demonstrate the functionality.<\/p>\n<h3>Dependencies<\/h3>\n<p>You need to install the latest updates of the following libraries:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\">Arduino AudioTools<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-driver\">Arduino Audio Driver<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I had some open issue, that the LyraT Mini Audio Board was not working with my AudioTools and AudioDrivers library, so I was digging into this board a bit deeper. Here are the main two differences to the regular supported LyraT or AudioKit boards: It uses a ES8311 codec chip [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6454,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20,22],"tags":[],"class_list":["post-6453","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-machine-sound"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Arduino Support for the Lyrat Mini Board - Phil Schatzmann<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arduino Support for the Lyrat Mini Board - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"I had some open issue, that the LyraT Mini Audio Board was not working with my AudioTools and AudioDrivers library, so I was digging into this board a bit deeper. Here are the main two differences to the regular supported LyraT or AudioKit boards: It uses a ES8311 codec chip [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-03T07:00:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-03T09:58:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"588\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"Arduino Support for the Lyrat Mini Board\",\"datePublished\":\"2024-11-03T07:00:37+00:00\",\"dateModified\":\"2024-11-03T09:58:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/\"},\"wordCount\":351,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/LyraTMini.jpg\",\"articleSection\":[\"Arduino\",\"Machine Sound\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/\",\"name\":\"Arduino Support for the Lyrat Mini Board - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/LyraTMini.jpg\",\"datePublished\":\"2024-11-03T07:00:37+00:00\",\"dateModified\":\"2024-11-03T09:58:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/LyraTMini.jpg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/LyraTMini.jpg\",\"width\":1000,\"height\":588},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2024\\\/11\\\/03\\\/the-lyrat-mini-board-is-supported-now-as-well\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arduino Support for the Lyrat Mini Board\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Arduino Support for the Lyrat Mini Board - Phil Schatzmann","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/","og_locale":"en_US","og_type":"article","og_title":"Arduino Support for the Lyrat Mini Board - Phil Schatzmann","og_description":"I had some open issue, that the LyraT Mini Audio Board was not working with my AudioTools and AudioDrivers library, so I was digging into this board a bit deeper. Here are the main two differences to the regular supported LyraT or AudioKit boards: It uses a ES8311 codec chip [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/","og_site_name":"Phil Schatzmann","article_published_time":"2024-11-03T07:00:37+00:00","article_modified_time":"2024-11-03T09:58:24+00:00","og_image":[{"width":1000,"height":588,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"Arduino Support for the Lyrat Mini Board","datePublished":"2024-11-03T07:00:37+00:00","dateModified":"2024-11-03T09:58:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/"},"wordCount":351,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg","articleSection":["Arduino","Machine Sound"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/","url":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/","name":"Arduino Support for the Lyrat Mini Board - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg","datePublished":"2024-11-03T07:00:37+00:00","dateModified":"2024-11-03T09:58:24+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2024\/11\/LyraTMini.jpg","width":1000,"height":588},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2024\/11\/03\/the-lyrat-mini-board-is-supported-now-as-well\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"Arduino Support for the Lyrat Mini Board"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/6453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=6453"}],"version-history":[{"count":22,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/6453\/revisions"}],"predecessor-version":[{"id":6477,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/6453\/revisions\/6477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/6454"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=6453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=6453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=6453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}