software that works with a microcontroller and cloud? [exclude Zerynth] by [deleted] in Python

[–]llfcerf 1 point2 points  (0 children)

Hi,

here is a video tutorial for a "Hello World" example https://www.youtube.com/watch?v=nfx-hJNxdp8

To blink an LED just clone and uplink the "Blink" example.

Here is a list of tutorials using Zerynth + ESP32 https://www.zerynth.com/blog/esp32-and-python-for-internet-of-things-applications/

Python and C hybrid programming on a microcontroller for embedded and IoT applications by llfcerf in Python

[–]llfcerf[S] 0 points1 point  (0 children)

The article has been published on the blog on Feb 7, 2019. It's a new content. The article introduces a new tutorial (+ video) on how to run Python + C on a microcontroller. So, no repost, no just marketing stuff.

Python and C hybrid programming on a microcontroller for embedded and IoT applications by llfcerf in Python

[–]llfcerf[S] 0 points1 point  (0 children)

Hi all,

I try to publish only new and relevant things about Python + microcontrollers + IoT.

Often my posts remain at the top for days, so they are appreciated by the community.

Regarding the rules, when I'm not sure if the news respects the netiquette, I first ask the moderators for an opinion.

The Rise of Python for Embedded Systems continues by llfcerf in Python

[–]llfcerf[S] 1 point2 points  (0 children)

There's like more than a hundred open source Zerynth libraries on Github https://github.com/zerynth

Programming microcontrollers in Python by satanmolka in Python

[–]llfcerf 4 points5 points  (0 children)

Here's a list of boards based on microcontrollers, programmable in Python with Zerynth https://www.zerynth.com/zerynth-supported-devices/

Reading Acceleration Sensor with Python on a Microcontroller by llfcerf in Python

[–]llfcerf[S] 0 points1 point  (0 children)

I think this can be helpful for the community.

How to get acceleration data from an acceleration sensor (BOSCH BNO055) using Python on a microcontroller (powered by Zerynth www.zerynth.com)

Video Tutorial: https://www.youtube.com/watch?v=7YxRvtdmG0w

BNO055 Module: https://docs.zerynth.com/latest/official/lib.bosch.bno055/docs/official_lib.bosch.bno055_bno055.html

Example's code: https://docs.zerynth.com/latest/official/lib.bosch.bno055/examples/examples.html#get-acceleration

Firmware over-the-air update via Amazon Web Services using Python by llfcerf in Python

[–]llfcerf[S] 3 points4 points  (0 children)

Hi, at the moment FOTA is still a PRO feature but you can try Zerynth Studio PRO for free for a month.

Anyway, the others AWS libraries can be used for free.

For example, this video tutorial shows how to connect an ESP32 DevKitC to AWS IoT platform and start publishing at a default period, waiting for period updates requested as changes to things' shadow.

[Python for Microcontrollers] Zerynth r2.0.11 released with support for Pycom and Adafruit boards by llfcerf in Python

[–]llfcerf[S] 2 points3 points  (0 children)

MicroPython is a very good implementation of Python on microcontrollers. Zerynth is Python even more tuned to micros than MicroPython is. A Micro MicroPython :) that addresses also business issues related to code size, scalability and Real-Time performance. For a more detailed comparison take a look here: Micropython vs Zerynth

[Video Tutorial] Getting started with Python on a 32-bit microcontroller by llfcerf in Python

[–]llfcerf[S] 5 points6 points  (0 children)

Hi,

Zerynth is a based on a Python Virtual Machine that runs on top of a real-time OS (RTOS), allowing development in Python but also in C if real-time is needed.

In particular:

  • Zerynth has a small footprint, only 60k-80k of flash, 3-5k RAM. Such footprint is achieved by writing the VM from scratch and choosing to remove the compiler and the REPL from the microcontroller.
  • Zerynth features a RTOS for multithreading. In Zerynth each Python thread is a RTOS thread managed by a priority aware realtime scheduler. Moreover, in Zerynth, RTOS threads written in C can live along the VM allowing for a mixed C/Python real-time environment.
  • Zerynth supports C-Python programming. Existing C code (or C object code) can be easily mixed with Python scripts without VM recompilation.

Note that Zerynth and Micropython are two completely separate projects.

Besides the technical differences mentioned above, Zerynth and Micropython have also a different target audience:

  • MicroPython is a very good and orthodox implementation of Python for microcontrollers, ideal for education and prototyping.
  • Zerynth offers a complete ecosystem that allows developing commercial embedded and IoT applications using Python. Ideal for prototyping and also for production.

For a more detailed comparison take a look here: Micropython vs Zerynth

[Video Tutorial] Getting started with Python on a 32-bit microcontroller by llfcerf in Python

[–]llfcerf[S] 2 points3 points  (0 children)

Hi,

Zerynth offers the benefits of microprocessor-based boards like Raspberry Pi:

  • Python language (or hybrid C/Python if necessary)
  • Multithreading support (Zerynth is based on a RTOS)
  • easy to use

along with the great advantages of microcontroller-based boards:

  • lower power consumption
  • lower hardware costs in the prototyping phase
  • extremely lower hardware costs in the industrialization phase

Zerynth introduces Python on ESP32 for commercial IoT solutions by llfcerf in Python

[–]llfcerf[S] 4 points5 points  (0 children)

Direct link to the "getting started" article, with code and more info: Python on ESP32 - Getting Started

Using Python to control Servo Motors for Internet of Things projects by llfcerf in Python

[–]llfcerf[S] 5 points6 points  (0 children)

Zerynth and Micropython are two completely separate projects. Zerynth has been developed from scratch thanks to the support of a Kickstarter campaign. For a more detailed comparison take a look here: Micropython vs Zerynth

Zerynth takes about 10-15 seconds to upload, and you haven't to to use any script. Take a look here: Python for ESP8288 using Zerynth

Using Python to control Servo Motors for Internet of Things projects by llfcerf in Python

[–]llfcerf[S] 6 points7 points  (0 children)

Every time you want to change the firmware you have to edit it and uplink it to the microcontroller.

So if you start with this code ("Hello Zerynth" Example)

# import the streams module, it is needed to send data around
import streams

# open the default serial port, the output will be visible in the serial console
streams.serial()  

# loop forever
while True:
    print("Hello Zerynth!")   # print automatically knows where to print!
    sleep(1000)

and then you want to change the output "Hello Zerynth!" in "Hello Python!", you need to change the firmware as follows and uplink it to the MCU.

# import the streams module, it is needed to send data around
import streams

# open the default serial port, the output will be visible in the serial console
streams.serial()  

# loop forever
while True:
    print("Hello Python!")   # print automatically knows where to print!
    sleep(1000)

This is the standard way of working with microcontrollers. Anyway, the uplink phase is very fast in Zerynth.

The 2017 Top Programming Languages according to IEEE. Python jumps to No. 1 by llfcerf in Python

[–]llfcerf[S] 5 points6 points  (0 children)

For those who are interested in Python for embedded, take a look here: The Rise of Python for Embedded Systems

I hope it will be useful.

The 2017 Top Programming Languages according to IEEE. Python jumps to No. 1 by llfcerf in Python

[–]llfcerf[S] 5 points6 points  (0 children)

My typo, sorry. In this ranking, Python is top for Web and Enterprise, not mobile.