All Questions
Tagged with micropython embedded
15 questions
0
votes
1
answer
44
views
micropython stm32F722ze, ValueError: Pin(PC13) doesn't exist
I am using stm32f722ze and trying to write a program to control led using push button but it always says value error. With the help of user manual figure out the Arduino mapping for PC0 but cannot ...
0
votes
1
answer
149
views
How to convert binary I2C output of L76K GPS module to ascii symbols?
I write MicroPython code for my Raspberry Pi Pico. I faced the problem with converting bytes to the string. I receive the following data from the GPS module:
32
b'\x07\xe8\x05\x1f\t"\r,\x19\x00!...
0
votes
0
answers
60
views
Difficulty Converting Python SHT4X Tirnkey Program to C/C++
I have developed a Console Python Program that reads text data from the SHT4X Tirnkey Sensor on the Port COM7 and with a baudrate of 115200. I have attempted to create a similar Console C++ Program ...
0
votes
0
answers
96
views
Using Rpi pico and flex sensors to control a specific number of laptop inputs
I am using three flex sensors and a raspberry pi pico board. What I am trying to do is take the inputs of sensors and process it through raspberry pi pico and then use the pico to do a certain task on ...
0
votes
1
answer
139
views
Handling the receiving data from the sensor as it creates a queue I guess because it shows data on the terminal even when sensor is disconnected?
I am using PMS sensor with the environment of micropython with thonny and using the RP pico W as my controller and I am just trying to receive the data from the sensor and so when I disconnect the ...
1
vote
1
answer
162
views
AttributeError: 'function' object has no attribute 'POLLIN' in micropython script
whenever i try to run the captive portal script i begins to work by creating the AP and configuring the servers but once it is about to start printing http request it cast this error
Traceback (most ...
1
vote
0
answers
2k
views
How do I correct an "ETIMEDOUT" error on an ESP32?
I am using a System on Chip (SoC) ESP32 microcontroller and a MPU6050 (an sensor that contains a gyroscope and an accelerometer). I used a piece of code to activate the accelerometer and get readings ...
0
votes
0
answers
76
views
Flash Micropython from Browser
I am building a website, in which I am adding a feature to upload micropython code to ESP32 from the browser. What are the best ways to achieve this functionality?
0
votes
0
answers
2k
views
Write output of CircuitPython program to file
Similarly to how CircuitPython automatically writes the output of boot.py to boot_out.txt, how can I get the output of code.py (including error messages) to go into something like code_out.txt?
(CDC ...
1
vote
1
answer
852
views
How call python function from C in MicroPython
I have a function in my C-code and I want to call a python function that has been written in python script. Is it possible in MicroPython? If yes, how can I do it?
My C-Code Function:
float bar_C_Fun(...
-1
votes
2
answers
963
views
IndentationError from downloaded example code [duplicate]
For a Raspberry Pi Pico using Thonny IDE and MicroPython I downloaded code:
from machine import Pin
import time
led = Pin(15, Pin.OUT)
button = Pin(14, Pin.IN, Pin.PULL_DOWN)
while True:
if button....
2
votes
0
answers
376
views
Is there a simple way to transfer image from openMV to PC?
I am working on the flir lapton3.5 with openMV. With the help of openMV, it's easy for me to get the thermal image from filr lapton3.5, don't have to concern about the complicated spi/iic agreement.
...
2
votes
1
answer
624
views
Building micropython in stm32 port in windows
I am currently trying to build a MicroPython application on Windows 10 using the Atollic TrueSTUDIO IDE for a NUCLEO-H743ZI development board.
I get the following error.
c:/program files (x86)/gnu ...
2
votes
2
answers
2k
views
The most efficient way to store a very large 2D array in Python/MicroPython
I have a project in an embedded system (NodeMCU running MicroPython), where I need to store a very large array of variables, which have values of either 0 or 1. I need to be able to read/write them ...
1
vote
1
answer
108
views
how to jump out of and resume at arbitrary locations in c-code without refactoring
BACKGROUND
I'm integrating micropython into my custom cooperative multitasking OS (no, my company won't change to pre-preemptive)
Micropython uses garbage collection and this takes much more time ...