MicroPython Applications

Keywords: MicroPython Applications, Python in Embedded Systems, AI&ML in Embedded, Mutation Testing, Testing Automation, Pybricks, LEGO, Robotics

Hope for now we all know coding on Micro controllers using Python but why is Python actually needed when I have C/C++, Java etc in Embedded Systems.

Any guess , Yes you got it right.

  1. Python language is object oriented and interpreted not compiled.
  2. Clean and simple code to control hardware.
  3. Interactive REPL– Read Evaluate Print Loop.
  4. MicroPython has built-in libraries – serial,spi,can,socket and many more.
  5. Extensively can be mixed and used together with low-level C/C++ functions.

Python can be used in Real Time Embedded Applications.

  1. Device Control and Debugging
  2. Testing Automation
  3. Data Analysis
  4. Computer Vision
  5. Machine Learning & AI
  6. Audio Application
  7. Robotics

And many more. Here are some interesting few to list.

Case Study – Mutation Testing

Mutation testing using python turns invisible bugs into visible fixes.

Case Study – Testing Automation

Python might be at its strongest when used as a communication between the user and the embedded system working with. Sending messages through Python to or from an embedded system allows us to automate testing. Python scripts can put the system into different states, set configurations, and test all sorts of real-world use cases. Python can also be used to receive embedded system data that can be stored for data analysis.

Case Study – Computer Vision

  1. Face Detection
  2. Color Tracking 
  3. Qr Code Detection etc

Case Study – Audio Application

  1. Sound Spectrum Analyser
  2. Speech Recognition
  3. Audio Recordings etc

Case Study – Robotics

Pybricks bring MicroPython to the realm of robotics and educational construction kits like LEGO and transforms remote-controlled smart hubs into truly autonomous robots.

There are boards available for just about every task: From the tiny, low cost ESP series of WiFi micro controller right up to the powerful, fully featured, Teensy. Here are a few to list.

  1. BBC Microbit
  2. ESP8266 WiFi
  3. Metro M0
  4. OpenMV CAM
  5. Teensy
  6. LEGO bricks

Till now we discussed about only PROS of MicroPython there are CONS as well.

Here are few drawbacks of MicroPython

  1. Speed – Python is slower than C or C++ as interpreted programs execute slower as compared to compiled programs.
  2. Memory Consumption – Due to the flexibility of the data-types, Python’s memory consumption is also high.
  3. RunTime Errors – Because the language is dynamically typed , it requires more testing and has errors that only show up at runtime.

THANK YOU and many more posts coming your way!

Please put your queries in comment section, I will get back to you with answers ASAP.
Please like and share Techawarey. Find and Like Techawarey on Facebook.😊

Leave a comment....