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
2 answers

No DFU devices detected while trying to implement MicroPython on STM32F4Discovery

I am trying to use Python on the STM32 micro controller family and am using the STM32F4 Discovery board with the STM32F429 MCU for experimentation. The MicroPython Github ReadMe has a walk through for the STMs but I keep failing at the deployment…
mkirche
  • 11
  • 1
  • 2
0
votes
2 answers

USB visible in firmware flasher tool, but not Visual Studio Code

I'm using MicroPython extension, and have successfully flashed the MicroPython firmware (Operating System) to the ESP8266 target device using the NodeMCU flasher tool through a serial COM port. After creating a new project by selecting the project…
Tirna
  • 383
  • 1
  • 12
0
votes
0 answers

How to set client's port when sending REST GET in Python?

I have some very basic networking-related questions: In the Python requests library, if I want to make a REST GET call, I know that internally a socket is created to send and receive the GET request and response. As for the port on which the socket…
Jamboree
  • 83
  • 1
  • 9
0
votes
2 answers

ESP8266 Micropython scheduler

I am looking for an easy way to schedule a daily reboot of my ESP8266, currently running on Micropython. I did a fair amount of research and haven't find anything that I can use/understand. I m wondering if this need to be done through Micropython…
0
votes
1 answer

Create class in a different file in MicroPython

I'm trying to use the MPU6050 module for MicroPython in NodeMCU, using uPyCraft as an editor. (https://github.com/larsks/py-mpu6050/blob/master/mpu6050.py) I've got some troubles and I tried to simplify the code to the point I just try to call a…
javirs
  • 1,049
  • 26
  • 52
0
votes
2 answers

ESP32 TCP client

I want to set up TCP server on windows and TCP client on ESP32. Main idea is to send String to ESP32 change it and send it back to server, but I'm really new with all of this stuff and got stuck on setting up TCP client on ESP32. Examples or…
Tadas
  • 7
  • 6
0
votes
1 answer

Access modules and module variables at runtime from python via String

In my Python programm I want to dynamically load modules and access variables of the module by converting a string parameter into a variable name. Use Case I have different Fonts on SD Card which are python files, and a display function which loads…
A. L
  • 131
  • 2
  • 12
0
votes
1 answer

How to handle http JSON POST response in MicroPyton? (ESP8266)

I'm an absolute beginner in get/post requests and micropython. I'm programming my ESP8266 Wemos D1 mini as a HTTP server with micropython. My project consists of using a website to control the RGB values of a neopixel matrix hooked up to the D1 (all…
0
votes
1 answer

Micropython paho module missing?

I'm trying to build a basic MQTT publisher using a nodemcu v3 and a dht11 to send temperature data. I'm using ESPlorer and when I try to upload my code it tells me that the paho module does not exist. My code is as follows: import time import…
Variomatic
  • 21
  • 1
  • 5
0
votes
1 answer

Getting unexpected output from BBC MicroBit robot when moving forwards and then reverse

I’m using a Micro:Bit and Bit:Bot to do some simple things but am getting unexpected results from the Bit:Bot motor. Simply put, i’m trying to: move the Bit:Bot forward for 1 second (with a few Green Neopixels on) Stop motors (& clear all…
Tiny
  • 409
  • 2
  • 8
  • 20
0
votes
2 answers

ESP8266 (MicroPython): how to poll without locking?

I’m new to micro-controller programming and trying to take a temp and humidity reading from a DHT11 connected to my ESP8266 every 2 minutes. My initial attempt was a naive while loop with a sleep in each iteration... this locked the device but did…
JTW
  • 3,546
  • 8
  • 35
  • 49
0
votes
1 answer

How is the micropython's pyboard module generated from C implementation

There is a lot of pyboard module which can be use by micropython. Currently I just know that these module's real implementation is done in C. My question is: How is the relationship mapped between the Python module and C implementation? Such as we…
hustzhuch
  • 3
  • 1
0
votes
1 answer

ESP8266 Micropython webserver with AJAX

i have RC car project with ESP8266 12E running Micropython. ESP is in AP mode and it hosts HTML page that contains two sliders (one for steering and one for drive speed). Values of both sliders are sent by AJAX request every 200 milliseconds. When…
R. Svec
  • 1
  • 2
0
votes
1 answer

Socket error ECONNABORTED connecting two MicroPython boards

I'm using MicroPython with two NodeMCU ESP8266 dev boards. My goal is to connect one to the other, so they can interchange information. One of the boards is running a server program and its AP is up. The other connects to the other board's AP and…
sysseon
  • 177
  • 3
  • 14
0
votes
1 answer

How to set max connections in AP configuration of esp8266?

I want to connect only one client at a time with esp8266. Second client trying to connect should disconnect immediately.But I can't find 'max_connection' like parameter in ap.configuration() Allowed parameters are essid, password, channel,…
Yugandhar Chaudhari
  • 3,831
  • 3
  • 24
  • 40