{"id":2919,"date":"2021-12-03T06:41:53","date_gmt":"2021-12-03T14:41:53","guid":{"rendered":"https:\/\/www.donluc.com\/?p=2919"},"modified":"2021-12-03T06:41:53","modified_gmt":"2021-12-03T14:41:53","slug":"project-20-circuitpython-metro-m0-express-blink-mk01","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2919","title":{"rendered":"Project #20: CircuitPython \u2013 Metro M0 Express Blink \u2013 Mk01"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2919-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #AdafruitMETROM0Express #CircuitPython #Project #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01a.png\" alt=\"Metro M0 Express Blink\" width=\"720\" height=\"292\" class=\"alignnone size-full wp-image-2922\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01a-300x122.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01b.png\" alt=\"Metro M0 Express Blink\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2923\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01c.png\" alt=\"Metro M0 Express Blink\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2924\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01d.png\" alt=\"Metro M0 Express Blink\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2925\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01d.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2021\/12\/DL2111Mk01d-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p>Metro is our series of microcontroller boards for use with the Arduino IDE. This new Metro M0 Express board looks a whole lot like our original Metro 328, but with a huge upgrade. Instead of the ATmega328, this Metro features a ATSAMD21G18 chip, an ARM Cortex M0+. It&#8217;s our first Metro that is designed for use with CircuitPython. CircuitPython is our beginner-oriented flavor of MicroPython, and as the name hints at, its a small but full-featured version of the popular Python programming language specifically for use with circuitry and electronics.<\/p>\n<p>Not only can you use CircuitPython, but the Metro M0 is also usable in the Arduino IDE.<\/p>\n<p>At the Metro M0&#8217;s heart is an ATSAMD21G18 ARM Cortex M0 processor, clocked at 48 MHz and at 3.3V logic, the same one used in the new Arduino Zero. This chip has a whopping 256K of FLASH and 32K of RAM. This chip comes with built in USB so it has USB-to-Serial program and debug capability built in with no need for an FTDI-like chip.<\/p>\n<ul>\n<li>Power the METRO with 7-9V polarity protected DC or the micro USB connector to any 5V USB source. The 2.1mm DC jack has an on\/off switch next to it so you can turn off your setup easily. The METRO will automagically switch between USB and DC.<\/li>\n<li>METRO has 25 GPIO pins, 12 of which are analog in, and one of which is a true analog out. There&#8217;s a hardware SPI port, hardware I2C port and hardware UART. Logic level is 3.3V<\/li>\n<li>Native USB, there&#8217;s no need for a hardware USB to Serial converter as the Metro M0 has built in USB support. When used to act like a serial device, the USB interface can be used by any computer to listen\/send data to the METRO, and can also be used to launch and update code via the bootloader. It can also act like a keyboard, mouse or MIDI device as well.<\/li>\n<li>Four indicator LEDs and one NeoPixel, on the front edge of the PCB, for easy debugging. One green power LED, two RX\/TX LEDs for data being sent over USB, and a red LED connected. Next to the reset button there is an RGB NeoPixel that can be used for any purpose.<\/li>\n<li>2 MB SPI Flash storage chip is included on board. You can use the SPI Flash storage like a very tiny hard drive. When used in Circuit Python, the 2 MB flash acts as storage for all your scripts, libraries and files. When used in Arduino, you can read\/write files to it, like a little datalogger or SD card, and then with our helper program, access the files over USB.<\/li>\n<li>Easy reprogramming, comes pre-loaded with the UF2 bootloader, which looks like a USB storage key. Simply drag firmware on to program, no special tools or drivers needed. It can be used to load up CircuitPython, PXT\/MakeCode or Arduino IDE (it is bossa-compatible)<\/li>\n<\/ul>\n<p><strong>DL2112Mk01<\/strong><\/p>\n<p>1 x Adafruit METRO M0 Express<\/p>\n<p><strong>Adafruit METRO M0 Express<\/strong><\/p>\n<p>VIN &#8211; +3.3V<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>code.py<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\n\"\"\"\r\n***** Don Luc Electronics \u00a9 *****\r\nSoftware Version Information\r\nProject #20: CircuitPython \u2013 Metro M0 Express Blink \u2013 Mk01\r\n12-01\r\nDL2112Mk01\r\ncode.py\r\n1 x Adafruit METRO M0 Express\r\n\"\"\"\r\n# Module\r\nimport board\r\nimport digitalio\r\nimport time\r\n\r\n# Red LED Connected\r\nled = digitalio.DigitalInOut(board.LED)\r\nled.direction = digitalio.Direction.OUTPUT\r\n\r\n# Blink\r\nwhile True:\r\n    led.value = True\r\n    time.sleep(1.5)\r\n    led.value = False\r\n    time.sleep(1.5)\r\n\r\n<\/pre>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Technology Experience<\/strong><\/p>\n<ul>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Robotics<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc&#8230;)<\/li>\n<li>Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc&#8230;)<\/li>\n<li>Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc&#8230;)<\/li>\n<li>Social Media Programming &#038; Integration (Facebook, Twitter, YouTube, Pinterest, etc&#8230;)<\/li>\n<li>Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc&#8230;)<\/li>\n<li>Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc&#8230;)<\/li>\n<li>eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc&#8230;)<\/li>\n<\/ul>\n<p><strong>Instructor and E-Mentor<\/strong><\/p>\n<ul>\n<li>IoT<\/li>\n<li>PIC Microcontrollers<\/li>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<li>DOS, Windows, OSX, Linux, iOS, Android, Multi-OS<\/li>\n<li>Linux-Apache-PHP-MySQL<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>J. Luc Paquin \u2013 Curriculum Vitae &#8211; 2021 English &#038; Espa\u00f1ol<\/strong><br \/>\nhttps:\/\/www.jlpconsultants.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.jlpconsultants.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/channel\/UC5eRjrGn1CqkkGfZy0jxEdA<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #AdafruitMETROM0Express #CircuitPython #Project #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Metro is our series of microcontroller boards for use with the Arduino IDE. This new Metro M0 Express board looks a whole lot like our original Metro 328, but with a huge upgrade. Instead of the ATmega328, this Metro features &#8230; <a title=\"Project #20: CircuitPython \u2013 Metro M0 Express Blink \u2013 Mk01\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2919\" aria-label=\"Read more about Project #20: CircuitPython \u2013 Metro M0 Express Blink \u2013 Mk01\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189,47,191,49,38,59,5,190,10],"tags":[86,193,102,4,19,85,192,24,9,27,33],"class_list":["post-2919","post","type-post","status-publish","format-standard","hentry","category-circuitpython","category-adafruit","category-mcircuitpython","category-consultant","category-digitalelectronics","category-fritzing","category-microcontrollers","category-programcircuitpython","category-projects","tag-adafruit","tag-circuitpython","tag-components","tag-consultant","tag-electronics","tag-fritzing","tag-metro-m0-express","tag-microcontroller","tag-programming","tag-projects-2","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2919","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2919"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2919\/revisions"}],"predecessor-version":[{"id":2926,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2919\/revisions\/2926"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}