• M5Stack, MicroPython
      6 min | 138

      #MicroPython: Google Cloud Platform getting data from an M5Stack ATOM sensing the air-quality

      M5Stack, MicroPython | 6 min | 138


      air-quality
      esp32
      esp8266
      google cloud platform
      google iot core
      m5stack atom
      micropython

      Spring in Europe has already started and many people are having allergy problems. Therefore, I thought of making a project to measure air quality and collect this data to train a model that can tell me, when is the best time to open my apartment windows to let some fresh air into the apartment and thus minimize possible allergy attacks and sneezing! Like almost everyone right now (thanks to COVID-19), I'm working from home and this beautiful ...

    • LoRa, M5Stack, MicroPython
      3 min | 504

      #M5Stack Atom Matrix: LoRaWAN node running MicroPython

      LoRa, M5Stack, MicroPython | 3 min | 504


      lorawan
      m5stack
      m5stack atom
      micropython
      the things network

      This tutorial is about programming the M5Stack Atom using MicroPython to transfer data to a LoRaWAN gateway. The gateway is then connected to the "The Things Network" (TTN) to process the data.

      Before you start reading, check out the video of this setup!

      The M5Stack ATOM Matrix is the most compact development board in the M5Stack development kit series with a size of only 24 x 24 x 14 mm and a weight of 14 g.

      It has:

      • 6 GPIO (Dupont Pins)
      • GROVE/4Pin PH2.0 interface
      • 5 x 5...
    • M5Stack, MicroPython
      4 min | 180

      Tutorial: Getting Started with MicroPython on ESP32, M5Stack and ESP8266

      M5Stack, MicroPython | 4 min | 180


      diy projects
      esp32
      esp32 projects
      esp8266
      m5stack
      micropython
      tutorial

      MicroPython has almost all the features of Python, and allows you to easily interact with microcontrollers and sensors, making them accessible to both beginners and experienced Python programmers.

      If you are new to MicroPython, I quote the official MicroPython page for you:

      MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimized to run on microcontrollers and in "constrai...

    • MicroPython
      4 min | 1665

      #MicroPython: a three-color E-INK display controlled using an ESP32

      MicroPython | 4 min | 1665


      diy projects
      e-ink display
      e-paper
      getting started
      micropython
      micropython extensions
      tutorial

      This is a tutorial to control and display widgets on an E-INK display using an ESP32. Three widgets are available:

      • Weather: weather forecast obtained using the OpenWeatherMap API.
      • News: news highlights obtained using the NewsApi API.
      • Notes: notes that can be added using a web-server that runs on the ESP32.

      The result can be seen in this video:

      Thus, in this tutorial, I will try to achieve the following:

      • A guide to compile MicroPython to freeze modules;
      • A setup guide for ...
    • MicroPython
      2 min | 1836

      #MicroPython: Portable time-lapse camera using an ESP32-CAM

      MicroPython | 2 min | 1836


      diy projects
      esp32
      esp32-cam
      timelapse
      tutorial
      video

      This tutorial extends the article MicroPython: Taking photos with an ESP32 and in this case, the ESP32-CAM running MicroPython takes a photo every 5 seconds and saves it on the microSD card. The photos can be then combined into a time-lapse video! :)

      The MicroPython official version doesn't support I2S interface. However, tsaarni wrote a driver for the OV2640 and forked the MicroPython repository to include it. Thus, you need to follow the instructions in this article: MicroPyt...

    • MicroPython
      8 min | 1857

      #Tutorial: ESP32 running MicroPython sends data over LoRaWAN

      MicroPython | 8 min | 1857


      esp32
      getting started
      lora
      lorawan
      micropython
      tutorial
      wireless communication

      LoRa is a wireless data communication technology that enables you to transmit data over a very-long-range (more than 10 km in rural areas) with low power consumption. It uses license-free sub-gigahertz radio frequency bands as the 169 MHz, 433 MHz, 868 MHz for Europe, and 915 MHz for North America.

      In October 2018, I published an article about LoRa and ESP32, and I uploaded a project to GitHub. The project includes a SX127x driver for ESP32 running MicroPython. However,...

    • M5Stack, MicroPython
      6 min | 1638

      #Tutorial: MicroPython and Bluetooth (BLE) on M5Stack

      M5Stack, MicroPython | 6 min | 1638


      bluetooth
      diy projects
      m5stack fire
      micropython
      tutorial
      vscode

      The M5Stack is a modular open-source toolkit for developing IoT applications. It is based on an ESP32, which is the core module and there are a lot of stackable modules that you can use for different projects. This enables to do rapid and high-quality prototyping!

      You can program the core device using the ESP-IDF framework, the Arduino-IDE, Blockly or MicroPython. Unfortunately, the BLE is still not available using the official M5Stack MicroPython firmware (forked from LoBo). Howeve...

    • MicroPython
      3 min | 643

      #MicroPython: an IoT BRIO Locomotive

      MicroPython | 3 min | 643


      esp32
      iot
      micropython
      web server

      This tutorial helps you update a BRIO locomotive using an ESP32 that runs MicroPython. As a result, you can control the speed of the BRIO using a cell phone or a laptop (basically, everything that has a browser).

      If you don't know what a BRIO locomotive is, check out the following picture:

      BRIO World 33594
      Fig. 1: BRIO World 33594

      In this tutorial, I will try to accomplish the following points:

      1. Hardware modifications on a ESP32 board;
      2. MicroPython installation;
      3. Controlling the locomot...
    • MicroPython
      11 min | 3537

      #MAixPy: Object detector - MobileNet and YOLOv2 on Sipeed MAix Dock

      MicroPython | 11 min | 3537


      aiot
      keras
      machine learning
      maix dock
      micropython
      object detection
      tensorflow lite
      yolov2

      This tutorial is about training (on PC) and deploying a YOLOv2 object detector on a MAix M1w Dock Suit running MicroPython. The MobileNet is used as a pre-trained model for the training.

      Therefore, this tutorial will try to accomplish the following points:

      1. A quick introduction to YOLO(v2)
      2. A quick introduction to MAix KPU
      3. Training, evaluation, and testing of the object detector model (on Jupyter-Notebooks running on Docker)
      4. Flashing the trained model on the MAi...
    • M5Stack, MicroPython
      4 min | 1276

      #M5Stack: Christmas Lights using MicroPython & WS2812B Leds

      M5Stack, MicroPython | 4 min | 1276


      esp32
      esp32 projects
      m5stack
      m5stack fire
      micropython
      micropython extensions
      ws2812b
      ws2812b leds

      Holiday season has begun and Christmas and the New Year 2020 are approaching! This means, time to reflect and to clean up code and, therefore, I am updating some of the GitHub's projects to summarize the year. I started with the Christmas lights project! But, this time, I took the M5Stack Fire and a new LED panel (WS2812b - 16x16 pixel) and with the XMasLight project, these are the results (Fig. 1 & 2):

      xmas_2020-min (1).png
      Fig. 1: M5Stack and a new WS2812b Panel (16x16 pixel).

      Hardw...