Questions tagged [micropython]

MicroPython is a Python interpreter (with partial native code compilation feature). It provides a subset of Python 3.5 features, implemented for embedded processors and constrained systems.

About

MicroPython is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. It was originally created by the Australian programmer and physicist Damien George and first appeared in May of 2014.

The MicroPython board is a small electronic circuit board that runs MicroPython on the bare metal, and gives you a low-level Python operating system that can be used to control all kinds of electronic projects.

MicroPython was successfully funded via a Kickstarter campaign. The software is available to the public under the MIT open source license.

Books

Sites

Damien George's KickStarter project to develop a API to use with ESP8266 WiFi chip, optimised and well supported. ESP8266 is one of the best boards to use with MicroPython.

Example projects

1031 questions
0
votes
0 answers

What Python objects get allocated from the heap (GC)?

We are writing some real-time device controllers with embedded python. We would like to control and predict (to some degree, not perfectly) what is being put on the Python Heap, to minimize and bound our garbage collections (which we will invoke…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
0
votes
0 answers

embed python and pyc files in VxWorks 653 project

We would like to create an embedded python application (interpreter together with a few custom python scripts in pyc format). The application would run on a VxWorks 653 platform (no file system, no Ethernet connection, etc.). I.e. it would be a…
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
0
votes
1 answer

Python - Key detection with simple modules

I'm trying to make a text editor for MicroPython. This 'nano'-like(or vim) text editor should be able to run on the device, what I'm not looking for is modules that would not run on the ESP8266. What I'm using at the moment is simple modules such…
Coolq B
  • 344
  • 5
  • 10
-1
votes
1 answer

Display image from requests via framebuf

I've built an HTTP API returning an image (HTTP GET http://myRaspi/api/latestImage → returns image with content-type image/jpeg). On my Raspberry Pi Pico, I loading the image with the urequests library: import network import urequests wifi =…
mu88
  • 4,156
  • 1
  • 23
  • 47
-1
votes
1 answer

I2C doesn't work on MicroPython with RPi Pico?

i was following the Getting Started with MicroPython on Raspberry Pi Pico book and i am stuck at page 120, the example code did not work for some reason. I am coding in VS Code, but just in case i tried running it in Thonny, still without any…
bcseh202
  • 9
  • 5
-1
votes
1 answer

Running two concurrent infinite loops using asyncio

I've got a program that is pulling UPD data being transmitted by my home weather station. One of those values that is a "rain_accum" which is the total rain accumulation in the past minute. When that "rain_accum" is > 0, I want the light to blink.…
MABeatty1978
  • 115
  • 1
  • 3
  • 14
-1
votes
1 answer

func_timeout equivalent module in micropython

I'm calling a function in micropython which I know may stall and force me to restart the script. How do I call the function or what do I wrap it in so that if it takes longer than 5 seconds the script cancels it and does something else?
-1
votes
2 answers

If Function Being Triggered Despite Not Being Valid

For those who linked to Using global variables in a function How was I supposed to know this was related to my issue before hand? The reason I asked the question was that I didn't even know this (the global tag not the post) existed or applied to my…
djo
  • 119
  • 2
  • 14
-1
votes
2 answers

how to use and debug micropython-aioble library for esp32?

I am using micropython for esp32 to make BLE app using aioble library.i am using as per sample code + add from library but i am facing this problem and don't understand why. Is it because the library is having problems?. I have followed the…
-1
votes
1 answer

Best software to use to program a Pycom FiPy?

The two recommended editors for a pymakr project are: Visual Studio Code alongside the Pymakr plugin, which flat-out doesn't work for me (and based on the predominately 1-star reviews it has, I'm not the only one). Atom, which hasn't worked with…
Joseph_Renerr
  • 229
  • 1
  • 2
  • 7
-1
votes
1 answer

Raspberry Pico W urequest.post problem with send parameters to php script

I want to use raspberry pico W to register current temperature value on MySql server: Raspberry Pico W --> PHP --> MySQL. I am trying to use urequest.post to send temperature value to php script on http server. Script can not recognize posted…
Kamito
  • 77
  • 6
-1
votes
1 answer

Running api on ESP32 with micropython

I am making my home smart using esp32 and micropython. I have a Django project running on a server I have on my LAN and I want to send commands to my esp32 wirelessly through it. Maybe something like running a uvicorn server and a fastapi app and…
-1
votes
1 answer

Where can I find complete micropython documentation

Can anybody tell me where there is compete documentation for the micropython specific libraries. The documentation that I can easily find seems to consist mainly of examples. So for example - you can find several examples that use constants in a…
-1
votes
2 answers

How to Integrate Pysimple Gui With Micropython

I was wondering, if it is possible to integrate pysimplegui with micropython. Here is my example, I am creating a robotic arm, it is controlled with micropython, for simplicity I wanted to create a GUI to control the arm, is it possible to integrate…
-1
votes
1 answer

Is there an e-paper library for micropython to change the font displayed on my e-paper?

I'm using a 2.7 pico e-paper hooked up to a raspberry pi pico, along with a DS3231 RTC so it can display the time. I'm able to display time using the sample code provided on the waveshare page for the pico e-paper, but there's no option within the…