MicroPython is an implementation of the Python programming language to run on various microcontrollers.
Questions tagged [micropython]
17 questions
2
votes
1 answer
Raspberry Pi Pico: receiving on multiple UARTs
Expected behavior:
In hardware I connect UART of a number 0/1 to the correct pin numbers TX/RX and get it based on that connection
Actual behavior:
In hardware I connect UART of a number 0/1 to the correct pin numbers TX/RX and got it on all of the…

mr.xed
- 33
- 5
2
votes
3 answers
How to flash a bootloader to an ARM MCU from the factory?
I want to build a custom PCB with an ATSAMD21G18A-AU microcontroller, which has an ARM® Cortex®-M0+ processor.
I will get it from LCSC, so it doesn't have any bootloader preinstalled. Right?
In the end I want to run MicroPython on it. How will I be…

Bugsia
- 83
- 5
2
votes
1 answer
Console of ESP01 flashed with Micropython 1.17 can't be accessed
I was able to flash my ESP01 (1MB of Flash) with micropython:
esptool.py --port $PORT erase_flash
esptool.py --chip auto --port $PORT write_flash -z 0x000000 $IMAGE
esptool.py v2.8
Serial port…

Besi
- 715
- 7
- 17
1
vote
0 answers
ESP32 (on a dev-board) doesn't boot
I have an ESP32 dev board which doesn't boot (The chip itself is marked as "ESP32 WROOM-32"). I've played with compiling Micropython and trying to flash it, and probably did something wrong.. I mostly want to recover "factory image" now...
When I…

Zach Moshe
- 159
- 6
1
vote
1 answer
Micropython problems on custom board using RP2040
I am designing a custom board using the RP2040 and have used the PiPico design as a reference design. I have encountered two problems with micropython:
First, an anomaly - I noticed when mounting as a USB drive in bootloader mode to copy the…

Scott
- 171
- 4
1
vote
2 answers
How can I pass serial data through a Raspberry Pi Pico from USB to GPIO pins to be read in another Pi Pico?
I read that the Pi Pico/RP2040 has 2 UARTs.
If I want to send data from a computer to a Pi Pico, how should I create a UART that uses USB? Micropython expects pin numbers to create a UART. If I use one UART to receive from the PC and one to transmit…

Suresh Subedi
- 121
- 1
- 6
1
vote
1 answer
How to connect JTAGICE3/Cortex Debug Connector to PC?
I am designign an custom PCB, that uses an ATSAMD21G18A-AU as the main Chip. Because it comes from the factory it needs a bootloader or another way to add software, so I need a JTAGICE3 connector or an Cortex Debug Connector. Both are supported, as…

Bugsia
- 83
- 5
1
vote
0 answers
Industrial PT100 temperature transmitter and ESP32 with micropython
I'm building a temperature controller using ESP32s and industrial PT100 temperature transmitters.
The transmitter I'm using is this:
MUR-HS-U
It has selectable temperature ranges and outputs 1-10V according to the temperature read from the PT100.
I…

Cleber Goncalves
- 111
- 2
1
vote
2 answers
To reconfigure a pin, is there a difference in MicroPython between `machine.Pin.init` and just running the constructor again?
The MicroPython docs at https://docs.micropython.org/en/latest/library/machine.Pin.html feature the following example:
from machine import Pin
# create an output pin on pin #0
p0 = Pin(0, Pin.OUT)
And then later:
# reconfigure pin #0 in input mode…

finefoot
- 171
- 7
0
votes
1 answer
RC circuit to allow MCU to detect power toggles
I am trying to detect a power toggle event for a smart lamp I am building. Essentially, I want the lamp to behave differently when turned on after a long off period compared to when toggled on/off/on. I want to use a simple RC circuit to achieve…

Andrew M
- 1
0
votes
0 answers
HC-06 module does not receive data RP Pico
So I have a project that I currenty working on and I am also using the HC-06 module as a part of the communication proccess between the RP Pico and my application.
A while agao when I was working on my project I have changed some cables between the…

David
- 1
- 1
0
votes
0 answers
Communicate with light Sensor BH1750 via I2C using CH341A (directly, without other microcontroller)
How can I communicate with the light sensor BH1750 using the CH341A device (like in the photo). Is there a way to do it without an arduino or a Raspberry Pi, just via I2C communication ?

Ardit Selfo
- 13
- 2
0
votes
0 answers
ESP-NOW Maximum Connections
The esspresif documentation for esp-now (MicroPython) states:
The maximum number of paired devices is 20, and the paired encryption
devices are no more than 16, the default is 6. If you want to change
the number of paired encryption devices,…

drew wood
- 131
- 8
0
votes
1 answer
Wired ESP8266 Communication
I have been looking for the cheapest/easiest way to get 100 or so different i/o devices to all talk to a "Master." (Sending temp data, receiving motor information) Since i am looking for a simple solution, I went with the esp8266 ($1.50 - Cheapest…

drew wood
- 131
- 8
0
votes
0 answers
How do I send and receive data using UART on two Pi Picos?
When I connect GP4 (UART1 TX) on one pi pico to GP5 (UART1 RX) on the second pipico and vice versa, I keep getting "NONE" as my received data.
Pico #1:
from machine import Pin, UART
uart = UART(1,115200)
while True:
uart.write ("Hello")
Pico…

gradStudent
- 13
- 3